Skip to content

from main #222

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 198 commits into from
May 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
198 commits
Select commit Hold shift + click to select a range
3aa6be6
A simple rapid filling
wanqing0421 Feb 10, 2025
29d922e
A simple rapid filling demo
wanqing0421 Feb 10, 2025
ff2f1d4
New tutorial on hemogenization silo is added
hamidrezanorouzi Feb 14, 2025
3c1d4d5
Merge pull request #168 from PhasicFlow/siloHemogenization
PhasicFlow Feb 14, 2025
0532c44
Merge pull request #167 from PhasicFlow/develop
PhasicFlow Feb 14, 2025
bd4e566
layeredSiloFilling
ramin1728 Feb 14, 2025
2527258
layeredSiloFilling is Updated.
ramin1728 Feb 14, 2025
5e272cf
RotaryAirLockValve is Updated.
ramin1728 Feb 14, 2025
8e13c37
Merge pull request #169 from ramin1728/main
PhasicFlow Feb 15, 2025
fd6b3eb
correction for layeredSiloFilling
hamidrezanorouzi Feb 15, 2025
2a8146c
add operator << for Set
hamidrezanorouzi Feb 15, 2025
ae25159
update rapid filling
wanqing0421 Feb 16, 2025
9ccc487
Merge branch 'PhasicFlow:main' into main
wanqing0421 Feb 16, 2025
d5b9ca4
remove rapid filling tutorial
wanqing0421 Feb 16, 2025
ed4fe6f
Donwloading kokkos and installing tbb is now automatic
hamidrezanorouzi Feb 16, 2025
354daab
now accepts both kokkos on Home folder and automatic download
hamidrezanorouzi Feb 17, 2025
ef1fa1d
Merge branch 'PhasicFlow:main' into main
wanqing0421 Feb 18, 2025
3954fcf
A new screwConveyor tutorial
hamidrezanorouzi Feb 20, 2025
12059fa
corrections for tutorial of screw conveyor
hamidrezanorouzi Feb 20, 2025
fa1211a
some minor correction for homogenization silo simulation
hamidrezanorouzi Feb 20, 2025
98c8116
rotaryAirlock settingsDict
hamidrezanorouzi Feb 20, 2025
4552d90
Merge branch 'PhasicFlow:main' into main
wanqing0421 Feb 21, 2025
3e0161a
version control for cmake_policy 0169
hamidrezanorouzi Feb 21, 2025
fd45625
cmake_policy
hamidrezanorouzi Feb 21, 2025
89896c0
binarySystemOfParticles is Updated.
ramin1728 Feb 23, 2025
a2561f0
Merge branch 'PhasicFlow:main' into main
wanqing0421 Feb 23, 2025
25b2e37
Merge pull request #175 from ramin1728/banarySystemOfParticles
PhasicFlow Feb 24, 2025
05b256b
Merge pull request #170 from wanqing0421/main
PhasicFlow Feb 24, 2025
b44c4de
reading particle position from file for partilclesPhasicFlow
hamidrezanorouzi Feb 24, 2025
05ecf37
box now checks for min and max point consistency
hamidrezanorouzi Feb 24, 2025
a33ec7d
corrections for readMe.md v-1.0
hamidrezanorouzi Feb 24, 2025
1cbeb1c
drum-PeriodictBoundary tutorial added
hamidrezanorouzi Feb 25, 2025
099e85c
Vector now only accepts one type of allocator, the default allocator
hamidrezanorouzi Feb 26, 2025
e8e1081
update rotatingDrumSmall tutorial
wanqing0421 Feb 26, 2025
cfd1885
revise the readme and domainDict
wanqing0421 Feb 27, 2025
282d973
correctiont for rotatingDrumSmall
wanqing0421 Feb 27, 2025
0ed5b23
Merge pull request #178 from wanqing0421/main - rotartyDrumSmall
PhasicFlow Feb 27, 2025
c87c971
Update README.md
PhasicFlow Feb 27, 2025
8b9a9ac
RotaryAirLockValve is Updated.
ramin1728 Feb 27, 2025
27dfdfa
stationary motion now does not require the dictionary
hamidrezanorouzi Feb 28, 2025
dc0504d
Merge branch 'main' of github.com:PhasicFlow/phasicFlow into main
hamidrezanorouzi Feb 28, 2025
2df8133
RotaryAirLockValve is Updated.
ramin1728 Mar 2, 2025
67df8ad
Merge pull request #181 from ramin1728/RotaryAirLockValve
PhasicFlow Mar 2, 2025
b03d482
Update ReadMe.md
PhasicFlow Mar 2, 2025
d5dd7af
Update particlesDict
PhasicFlow Mar 2, 2025
c4c6c2f
Update settingsDict
PhasicFlow Mar 2, 2025
0820e00
Update particleInsertion
PhasicFlow Mar 2, 2025
09c303a
Update interaction
PhasicFlow Mar 2, 2025
c32789f
Update ReadMe.md
PhasicFlow Mar 2, 2025
75f679a
correction for particle insertion region
wanqing0421 Mar 4, 2025
07b54c4
RotatingDrumWithBaffles is Updated.
ramin1728 Mar 4, 2025
ab21acd
update rotatingDrumMedium tutorial
wanqing0421 Mar 5, 2025
c408b60
correction for shapes file
wanqing0421 Mar 5, 2025
8038a76
Correction for settingsDict
wanqing0421 Mar 5, 2025
5394dce
Merge pull request #182 from wanqing0421/main
PhasicFlow Mar 5, 2025
eb62adc
update benchmarks file and romove the unused comments in rotatingDrum…
wanqing0421 Mar 5, 2025
8dcd578
RotatingDrumWithBaffles is Updated.
ramin1728 Mar 5, 2025
08d0d62
ReadMe.md is corrected.
ramin1728 Mar 5, 2025
baa99c6
bug fix for compiling on ubuntu-24
hamidrezanorouzi Mar 5, 2025
169dd73
Update README.md
PhasicFlow Mar 5, 2025
84197bf
Merge branch 'PhasicFlow:main' into main
wanqing0421 Mar 6, 2025
bff34bb
Merge pull request #185 from ramin1728/RotatingDrumWithBaffles
PhasicFlow Mar 6, 2025
b007426
Merge pull request #184 from wanqing0421/main
PhasicFlow Mar 6, 2025
5a5a3c6
delete the unused comments
wanqing0421 Mar 6, 2025
3ff4ad1
Merge branch 'PhasicFlow:main' into main
wanqing0421 Mar 6, 2025
7f7e06a
bug fix for compiling on Ubuntu-24.04LTS
hamidrezanorouzi Mar 9, 2025
389e42e
Merge branch 'main' of github.com:PhasicFlow/phasicFlow
hamidrezanorouzi Mar 9, 2025
23783b7
toteBlender for v-1.0
hamidrezanorouzi Mar 11, 2025
b65be88
end of file corrections
hamidrezanorouzi Mar 13, 2025
892f539
Bug fix for observed in particles, getNth and naming for contact lists
hamidrezanorouzi Mar 14, 2025
5eef26a
Bug fix for memory leak on CPU
hamidrezanorouzi Mar 15, 2025
797334a
adapt the multiRotatingAxisMotion to v-1.0
wanqing0421 Mar 15, 2025
0613b15
init commit of rotatingDrum
wanqing0421 Mar 15, 2025
71057e9
fill the multiRotatingAxis
wanqing0421 Mar 16, 2025
be7b2eb
multiRotaingAxis debug
wanqing0421 Mar 16, 2025
340f3a5
Multirotating axis motion for version 1.0
hamidrezanorouzi Mar 19, 2025
3441b03
Merge pull request #191 from PhasicFlow/multiRotatingAxis
PhasicFlow Mar 19, 2025
b7d47a6
fix the cuda build error with multiRotatingAxis
wanqing0421 Mar 19, 2025
97e6592
Merge pull request #192 from wanqing0421/main
PhasicFlow Mar 19, 2025
7b534a9
Merge branch 'PhasicFlow:main' into benchmarks
wanqing0421 Mar 22, 2025
8fe63cc
Create codingStyle.md
PhasicFlow Mar 24, 2025
5fee39c
Update codingStyle.md
PhasicFlow Mar 24, 2025
577a94d
Contribute README.md
PhasicFlow Mar 26, 2025
7bb0a04
Update README.md
PhasicFlow Mar 26, 2025
9e3bb1c
Contribution-readme
PhasicFlow Mar 26, 2025
ccb7a6d
Update README.md
PhasicFlow Mar 26, 2025
d1189c0
Update Kokkos dependencies description in README
dalg24 Mar 28, 2025
c78ab39
Merge pull request #195 from dalg24/patch-1
PhasicFlow Mar 28, 2025
671b929
Merge branch 'PhasicFlow:main' into benchmarks
wanqing0421 Apr 7, 2025
ab7f700
first commit for post-processing
hamidrezanorouzi Apr 9, 2025
162cfd3
The main structure is tested. functons like execute and write are add…
hamidrezanorouzi Apr 10, 2025
8e87333
Push after adding PostptocessData lib
hamidrezanorouzi Apr 10, 2025
c3acea1
Merge pull request #197 from PhasicFlow/postProcessing
PhasicFlow Apr 10, 2025
d136ac0
autoComplete improved for better time folder filtering and fields imp…
hamidrezanorouzi Apr 11, 2025
077f258
Merge branch 'main' of github.com:PhasicFlow/phasicFlow
hamidrezanorouzi Apr 11, 2025
093160b
Postprocess framework
hamidrezanorouzi Apr 15, 2025
35f10e5
Operations averge, mass velocity and region multisphereRegion are added
hamidrezanorouzi Apr 15, 2025
abd36d4
Merge pull request #198 from PhasicFlow/postProcessing
PhasicFlow Apr 15, 2025
7c9a724
Postprocessing: IncludeMask documentation
hamidrezanorouzi Apr 15, 2025
98a30bc
keepHistory for integration to automatically remove the fields relate…
hamidrezanorouzi Apr 16, 2025
549cb2f
Merge branch 'main' of github.com:PhasicFlow/phasicFlow
hamidrezanorouzi Apr 16, 2025
61be8c6
Merge branch 'main' into postProcessing
hamidrezanorouzi Apr 16, 2025
d692031
PostprocessData update
hamidrezanorouzi Apr 18, 2025
40deb1f
PostprocessData-update to work after simulation too
PhasicFlow Apr 18, 2025
3710b19
minor correction
Nimajhi Apr 20, 2025
14954b3
minor correction
Nimajhi Apr 20, 2025
1100556
minor correction
Nimajhi Apr 20, 2025
58ef463
Merge branch 'PhasicFlow:main' into benchmarks
wanqing0421 Apr 20, 2025
245ff96
update rotatingDrum benchmarks
wanqing0421 Apr 20, 2025
b33fb61
fixed the cuda compilation error
wanqing0421 Apr 20, 2025
9de1fa2
postprocessPhasicFlow is now updated with new postprocessData auxFunc…
hamidrezanorouzi Apr 20, 2025
1a2ad8f
Merge pull request #201 from wanqing0421/main
PhasicFlow Apr 20, 2025
b679b9d
Merge pull request #203 from Nimajhi/main
PhasicFlow Apr 21, 2025
c80ee03
Merge pull request #200 from wanqing0421/benchmarks
PhasicFlow Apr 21, 2025
cde93e9
Merge pull request #202 from PhasicFlow/postprocessPhasicFlow
PhasicFlow Apr 21, 2025
8da8afb
V-blender finalized for v-1.0
hamidrezanorouzi Apr 21, 2025
5f8ea2d
fixed selectorStride bug
wanqing0421 Apr 22, 2025
73f4b35
readme.md file is added for postprocessing
hamidrezanorouzi Apr 22, 2025
19fa3e2
Merge pull request #208 from PhasicFlow/postProcessing
PhasicFlow Apr 22, 2025
acb8d0e
corrections for readme.md file postprocessing
hamidrezanorouzi Apr 22, 2025
77eda47
Merge pull request #209 from PhasicFlow/postProcessing
PhasicFlow Apr 22, 2025
a9e5b9b
Update readme.md
PhasicFlow Apr 22, 2025
f2e8e69
prime2 is added and readme update
hamidrezanorouzi Apr 24, 2025
e2582f5
minor change to readme.md
hamidrezanorouzi Apr 24, 2025
a448ce5
minor changes to readme.md
hamidrezanorouzi Apr 24, 2025
d5ea338
spell check readme.md
hamidrezanorouzi Apr 24, 2025
be807e4
change of namespace from pFlow to pFlow::postprocessData
hamidrezanorouzi Apr 24, 2025
8c543e1
Merge pull request #210 from PhasicFlow/postProcessing
PhasicFlow Apr 24, 2025
cbac1e9
pFlow -> pFlow::postprocessData
hamidrezanorouzi Apr 24, 2025
544624d
Merge pull request #211 from PhasicFlow/postProcessing
PhasicFlow Apr 24, 2025
d8c9135
readme.md file for postprocessPhasicFlow
hamidrezanorouzi Apr 24, 2025
6cc4b39
readme.md file for pFlowToVTK
hamidrezanorouzi Apr 25, 2025
59fbee9
Merge pull request #212 from PhasicFlow/postprocessPhasicFlow
PhasicFlow Apr 25, 2025
a545acb
readme.md for particlesPhasicFlow and change diameter to distance in …
hamidrezanorouzi Apr 25, 2025
72b9b74
Merge pull request #213 from PhasicFlow/postprocessPhasicFlow
PhasicFlow Apr 25, 2025
7c3b90a
tutorials-1 after diameter->distance
hamidrezanorouzi Apr 25, 2025
2593e2a
diameter->distance, update in tutorials, v-Blender readme.md
hamidrezanorouzi Apr 25, 2025
953059c
tutorials readme.md
hamidrezanorouzi Apr 25, 2025
3fc121e
Merge pull request #214 from PhasicFlow/postprocessPhasicFlow
PhasicFlow Apr 25, 2025
1cd64fb
Merge branch 'PhasicFlow:main' into main
wanqing0421 Apr 25, 2025
8863234
update stride selector
wanqing0421 Apr 25, 2025
5f6400c
add scale and transform function during the stl model importing process
wanqing0421 Apr 25, 2025
cb40e01
Merge pull request #206 from wanqing0421/main
PhasicFlow Apr 25, 2025
d876bb6
correction for tab
wanqing0421 Apr 25, 2025
c12022f
Merge pull request #215 from wanqing0421/importStl
PhasicFlow Apr 25, 2025
53f0e95
readme.md for geometryPhasicFlow
hamidrezanorouzi Apr 25, 2025
bbd3afe
Merge pull request #216 from PhasicFlow/postprocessPhasicFlow
PhasicFlow Apr 25, 2025
1f6a953
fix bug when endsolid with a suffix name
wanqing0421 Apr 26, 2025
b423b6c
upload readme for benchmarks
wanqing0421 Apr 26, 2025
dc0edbc
diameter -> distance for benchmarks
hamidrezanorouzi Apr 26, 2025
a1b5a9b
Merge pull request #218 from wanqing0421/benchmarks
PhasicFlow Apr 27, 2025
c0d12f4
Merge pull request #219 from PhasicFlow/postprocessPhasicFlow
PhasicFlow Apr 27, 2025
eb37aff
update readme
wanqing0421 Apr 27, 2025
8b5d14a
update readme figure
wanqing0421 Apr 27, 2025
cd051a6
Merge pull request #220 from wanqing0421/benchmarks
PhasicFlow Apr 27, 2025
37282f1
Merge branch 'PhasicFlow:main' into importStl
wanqing0421 Apr 28, 2025
8986c47
readmd.md for benchmark is updated
hamidrezanorouzi Apr 28, 2025
69909b3
bug fix in reading stl file
PhasicFlow Apr 28, 2025
c69bfc7
endsolid bug fix for space separated names
hamidrezanorouzi Apr 28, 2025
27f0202
workflow for wiki
hamidrezanorouzi Apr 28, 2025
4687302
test for wiki
hamidrezanorouzi Apr 28, 2025
a50ceee
update readme and figure
wanqing0421 Apr 29, 2025
4dab700
update image
wanqing0421 Apr 29, 2025
d8c3fc0
update phasicFlow snapshot
wanqing0421 Apr 29, 2025
8b3530c
Merge pull request #221 from wanqing0421/benchmarks
PhasicFlow Apr 29, 2025
3228740
workflow update
hamidrezanorouzi Apr 29, 2025
a7dc69a
Merge branch 'main' of github.com:PhasicFlow/phasicFlow
hamidrezanorouzi Apr 29, 2025
2c5b4f5
readme.test
hamidrezanorouzi Apr 29, 2025
2afea7b
workflow update
hamidrezanorouzi Apr 29, 2025
16b6084
readme update
hamidrezanorouzi Apr 29, 2025
7104a33
r
hamidrezanorouzi Apr 29, 2025
c126f9a
rr
hamidrezanorouzi Apr 29, 2025
166d7e7
rrr
hamidrezanorouzi Apr 29, 2025
c7f790a
readmd.md update
hamidrezanorouzi Apr 30, 2025
8b324bc
readmd.md update1
hamidrezanorouzi Apr 30, 2025
a048c2f
readmd.md update2
hamidrezanorouzi Apr 30, 2025
dd36e32
readmd.md update3
hamidrezanorouzi Apr 30, 2025
20c9439
readmd.md update4
hamidrezanorouzi Apr 30, 2025
701baf0
readmd.md update5
hamidrezanorouzi Apr 30, 2025
253d6fb
readmd.md update6
hamidrezanorouzi Apr 30, 2025
c672562
readmd.md update7
hamidrezanorouzi Apr 30, 2025
edfbdb2
readmd.md update8
hamidrezanorouzi Apr 30, 2025
7a4a33e
a new workflow for readme.md files to wiki
hamidrezanorouzi Apr 30, 2025
316e71f
test readme.md
hamidrezanorouzi Apr 30, 2025
196b7a1
how to build readme.md to wiki
hamidrezanorouzi Apr 30, 2025
4c96c6f
test
hamidrezanorouzi Apr 30, 2025
be16fb0
tutorials link added
hamidrezanorouzi May 2, 2025
32fd6cb
features update
hamidrezanorouzi May 2, 2025
97f4637
image resize
hamidrezanorouzi May 2, 2025
6b04d17
sync-wiki to process img<> tags
hamidrezanorouzi May 2, 2025
343ac1f
yaml update
hamidrezanorouzi May 2, 2025
5e56bf1
yaml update1
hamidrezanorouzi May 2, 2025
a7e51a9
yaml update2
hamidrezanorouzi May 2, 2025
86367c7
yaml update3
hamidrezanorouzi May 2, 2025
cf4d22c
yaml update4
hamidrezanorouzi May 2, 2025
3933d65
yaml update5
hamidrezanorouzi May 2, 2025
ee33469
readme helical
hamidrezanorouzi May 2, 2025
b4bc724
readme helical
hamidrezanorouzi May 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
153 changes: 153 additions & 0 deletions .github/scripts/sync-wiki.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
#!/usr/bin/env python3

import os
import re
import yaml
import sys

# Constants
REPO_URL = "https://github.com/PhasicFlow/phasicFlow"
REPO_PATH = os.path.join(os.environ.get("GITHUB_WORKSPACE", ""), "repo")
WIKI_PATH = os.path.join(os.environ.get("GITHUB_WORKSPACE", ""), "wiki")
MAPPING_FILE = os.path.join(REPO_PATH, ".github/workflows/markdownList.yml")

def load_mapping():
"""Load the markdown to wiki page mapping file."""
try:
with open(MAPPING_FILE, 'r') as f:
data = yaml.safe_load(f)
return data.get('mappings', [])
except Exception as e:
print(f"Error loading mapping file: {e}")
return []

def convert_relative_links(content, source_path):
"""Convert relative links in markdown content to absolute URLs."""
# Find markdown links with regex pattern [text](url)
md_pattern = r'\[([^\]]+)\]\(([^)]+)\)'

# Find HTML img tags
img_pattern = r'<img\s+src=[\'"]([^\'"]+)[\'"]'

def replace_link(match):
link_text = match.group(1)
link_url = match.group(2)

# Skip if already absolute URL or anchor
if link_url.startswith(('http://', 'https://', '#', 'mailto:')):
return match.group(0)

# Get the directory of the source file
source_dir = os.path.dirname(source_path)

# Create absolute path from repository root
if link_url.startswith('/'):
# If link starts with /, it's already relative to repo root
abs_path = link_url
else:
# Otherwise, it's relative to the file location
abs_path = os.path.normpath(os.path.join(source_dir, link_url))
if not abs_path.startswith('/'):
abs_path = '/' + abs_path

# Convert to GitHub URL
github_url = f"{REPO_URL}/blob/main{abs_path}"
return f"[{link_text}]({github_url})"

def replace_img_src(match):
img_src = match.group(1)

# Skip if already absolute URL
if img_src.startswith(('http://', 'https://')):
return match.group(0)

# Get the directory of the source file
source_dir = os.path.dirname(source_path)

# Create absolute path from repository root
if img_src.startswith('/'):
# If link starts with /, it's already relative to repo root
abs_path = img_src
else:
# Otherwise, it's relative to the file location
abs_path = os.path.normpath(os.path.join(source_dir, img_src))
if not abs_path.startswith('/'):
abs_path = '/' + abs_path

# Convert to GitHub URL (use raw URL for images)
github_url = f"{REPO_URL}/raw/main{abs_path}"
return f'<img src="{github_url}"'

# Replace all markdown links
content = re.sub(md_pattern, replace_link, content)

# Replace all img src tags
content = re.sub(img_pattern, replace_img_src, content)

return content

def process_file(source_file, target_wiki_page):
"""Process a markdown file and copy its contents to a wiki page."""
source_path = os.path.join(REPO_PATH, source_file)
target_path = os.path.join(WIKI_PATH, f"{target_wiki_page}.md")

print(f"Processing {source_path} -> {target_path}")

try:
# Check if source exists
if not os.path.exists(source_path):
print(f"Source file not found: {source_path}")
return False

# Read source content
with open(source_path, 'r') as f:
content = f.read()

# Convert relative links
content = convert_relative_links(content, source_file)

# Write to wiki page
with open(target_path, 'w') as f:
f.write(content)

return True

except Exception as e:
print(f"Error processing {source_file}: {e}")
return False

def main():
# Check if wiki directory exists
if not os.path.exists(WIKI_PATH):
print(f"Wiki path not found: {WIKI_PATH}")
sys.exit(1)

# Load mapping
mappings = load_mapping()
if not mappings:
print("No mappings found in the mapping file")
sys.exit(1)

print(f"Found {len(mappings)} mappings to process")

# Process each mapping
success_count = 0
for mapping in mappings:
source = mapping.get('source')
target = mapping.get('target')

if not source or not target:
print(f"Invalid mapping: {mapping}")
continue

if process_file(source, target):
success_count += 1

print(f"Successfully processed {success_count} of {len(mappings)} files")

# Exit with error if any file failed
if success_count < len(mappings):
sys.exit(1)

if __name__ == "__main__":
main()
18 changes: 18 additions & 0 deletions .github/workflows/markdownList.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# This file maps source markdown files to their target wiki pages
# format:
# - source: path/to/markdown/file.md
# target: Wiki-Page-Name
mappings:
- source: benchmarks/readme.md
target: Performance-of-phasicFlow
- source: benchmarks/helicalMixer/readme.md
target: Helical-Mixer-Benchmark
- source: benchmarks/rotatingDrum/readme.md
target: Rotating-Drum-Benchmark
- source: doc/mdDocs/howToBuild-V1.0.md
target: How-to-build-PhasicFlow‐v‐1.0
- source: tutorials/README.md
target: Tutorials
- source: doc/mdDocs/phasicFlowFeatures.md
target: Features-of-PhasicFlow
# Add more mappings as needed
60 changes: 60 additions & 0 deletions .github/workflows/sync-wiki.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Sync-Wiki

on:
push:
branches:
- main
paths:
- "**/*.md"
- ".github/workflows/sync-wiki.yml"
- ".github/workflows/markdownList.yml"
- ".github/scripts/sync-wiki.py"
workflow_dispatch:

jobs:
sync-wiki:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
path: repo
- name: Checkout Wiki
uses: actions/checkout@v3
with:
repository: ${{ github.repository }}.wiki
path: wiki
continue-on-error: true
- name: Create Wiki Directory if Not Exists
run: |
if [ ! -d "wiki" ]; then
mkdir -p wiki
cd wiki
git init
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
git remote add origin "https://github.com/${{ github.repository }}.wiki.git"
fi
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: pip install pyyaml
- name: Sync markdown files to Wiki
run: |
python $GITHUB_WORKSPACE/repo/.github/scripts/sync-wiki.py
env:
GITHUB_REPOSITORY: ${{ github.repository }}
- name: Push changes to wiki
run: |
cd wiki
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
git add .
if git status --porcelain | grep .; then
git commit -m "Auto sync wiki from main repository"
git push --set-upstream https://${{ github.actor }}:${{ github.token }}@github.com/${{ github.repository }}.wiki.git master -f
else
echo "No changes to commit"
fi
25 changes: 8 additions & 17 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,26 @@ cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
# set the project name and version
project(phasicFlow VERSION 1.0 )

set(CMAKE_CXX_STANDARD 17 CACHE STRING "" FORCE)
set(CMAKE_CXX_STANDARD 20 CACHE STRING "" FORCE)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_INSTALL_PREFIX ${phasicFlow_SOURCE_DIR} CACHE PATH "Install path of phasicFlow" FORCE)
set(CMAKE_BUILD_TYPE Release CACHE STRING "build type" FORCE)
set(CMAKE_BUILD_TYPE Release CACHE STRING "build type")
set(BUILD_SHARED_LIBS ON CACHE BOOL "Build using shared libraries" FORCE)
mark_as_advanced(FORCE var BUILD_SHARED_LIBS)

message(STATUS ${CMAKE_INSTALL_PREFIX})
message(STATUS "Install prefix is:" ${CMAKE_INSTALL_PREFIX})

include(cmake/globals.cmake)

#Kokkos directory to be included
set(Kokkos_Source_DIR)

if(DEFINED ENV{Kokkos_DIR})
set(Kokkos_Source_DIR $ENV{Kokkos_DIR})
else()
set(Kokkos_Source_DIR $ENV{HOME}/Kokkos/kokkos)
endif()
message(STATUS "Kokkos source directory is ${Kokkos_Source_DIR}")
add_subdirectory(${Kokkos_Source_DIR} ./kokkos)
Kokkos_cmake_settings()


option(pFlow_STD_Parallel_Alg "Use TTB std parallel algorithms" ON)
option(pFlow_Build_Serial "Build phasicFlow and backends for serial execution" OFF)
option(pFlow_Build_OpenMP "Build phasicFlow and backends for OpenMP execution" OFF)
option(pFlow_Build_Cuda "Build phasicFlow and backends for Cuda execution" OFF)
option(pFlow_Build_Double "Build phasicFlow with double precision floating-oint variables" ON)
option(pFlow_Build_MPI "Build for MPI parallelization. This will enable multi-gpu run, CPU run on clusters (distributed memory machine). Use this combination Cuda+MPI, OpenMP + MPI or Serial+MPI " OFF)

#for installing the required packages
include(cmake/preReq.cmake)

if(pFlow_Build_Serial)
set(Kokkos_ENABLE_SERIAL ON CACHE BOOL "Serial execution" FORCE)
Expand All @@ -46,7 +35,8 @@ elseif(pFlow_Build_OpenMP )
set(Kokkos_ENABLE_OPENMP ON CACHE BOOL "OpenMP execution" FORCE)
set(Kokkos_ENABLE_CUDA OFF CACHE BOOL "Cuda execution" FORCE)
set(Kokkos_ENABLE_CUDA_LAMBDA OFF CACHE BOOL "Cuda execution" FORCE)
set(Kokkos_DEFAULT_HOST_PARALLEL_EXECUTION_SPACE SERIAL CACHE STRING "" FORCE)
set(Kokkos_DEFAULT_HOST_PARALLEL_EXECUTION_SPACE Serial CACHE STRING "" FORCE)
set(Kokkos_DEFAULT_DEVICE_PARALLEL_EXECUTION_SPACE OpenMP CACHE STRING "" FORCE)
set(Kokkos_ENABLE_CUDA_CONSTEXPR OFF CACHE BOOL "Enable constexpr on cuda code" FORCE)
elseif(pFlow_Build_Cuda)
set(Kokkos_ENABLE_SERIAL ON CACHE BOOL "Serial execution" FORCE)
Expand All @@ -65,6 +55,7 @@ include(cmake/makeExecutableGlobals.cmake)

configure_file(phasicFlowConfig.H.in phasicFlowConfig.H)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

#add a global include directory
include_directories(src/setHelpers src/demComponent "${PROJECT_BINARY_DIR}")

Expand Down
2 changes: 1 addition & 1 deletion DEMSystems/DEMSystem/DEMSystem.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,4 +183,4 @@ class DEMSystem

} // pFlow

#endif // __DEMSystem_hpp__
#endif // __DEMSystem_hpp__
Loading