Skip to content
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

New Example CI + Fixes to some broken example! #525

Closed
wants to merge 72 commits into from
Closed
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
22abc46
#474: Kickstart
henryleberre Jul 4, 2024
f1bd842
Merge branch 'henry/474' of https://github.com/henryleberre/ChemMFC i…
okBrian Jul 14, 2024
6c0af87
test example workflow
okBrian Jul 14, 2024
5bd78e9
fix example
okBrian Jul 14, 2024
e0e3cdc
test
okBrian Jul 15, 2024
264fede
test 2
okBrian Jul 16, 2024
7298bf8
yay
okBrian Jul 17, 2024
c3af570
Merge branch 'MFlowCode:master' into exampleCI2
okBrian Jul 17, 2024
ff4290d
final changes
okBrian Jul 17, 2024
fd7f68e
Merge branch 'exampleCI2' of https://github.com/okBrian/MFC into exam…
okBrian Jul 17, 2024
3e85cf2
final v2
okBrian Jul 17, 2024
8e302e9
fianl v3
okBrian Jul 17, 2024
01c069c
final v4
okBrian Jul 17, 2024
9bb0796
final v5
okBrian Jul 17, 2024
9fb6279
added a comment
okBrian Jul 17, 2024
112bb89
Switch to fastjsonschema
henryleberre Jul 17, 2024
86d5db2
fixed tol, reduced TestSize, fixed parralel_io w/o mpi, fixed format …
okBrian Jul 24, 2024
2936a95
fixed remaining 4 broken example, todo fix no-mpi possibly
okBrian Jul 27, 2024
b940337
merge w/ master
okBrian Jul 27, 2024
8ee7ca2
fixed new broken examples & temp fix D error
okBrian Jul 28, 2024
5fda4cb
Merge remote-tracking branch 'origin' into exampleCI2
okBrian Jul 31, 2024
e83c13f
fixed no mpi and mpi ?
okBrian Jul 31, 2024
3829807
fix case bug hopefully
okBrian Jul 31, 2024
e071a9c
fix gpu?? and fix no-mpi final
okBrian Aug 1, 2024
af2f7d1
Merge remote-tracking branch 'origin' into exampleCI2
okBrian Aug 1, 2024
bf821bf
add generate on workflow to fix no-mpi'
okBrian Aug 1, 2024
a9361a0
Merge remote-tracking branch 'origin' into exampleCI2
okBrian Aug 2, 2024
1bdb66f
fix lfs issue and revert some changes + merge w/ master
okBrian Aug 10, 2024
7446ce4
temp fix merge conflict
okBrian Aug 10, 2024
e46fe3f
remove 0dqbmm and fix lint
okBrian Aug 10, 2024
722f772
revert changes and some formatting
okBrian Aug 13, 2024
2b25651
Merge remote-tracking branch 'origin' into exampleCI2
okBrian Aug 13, 2024
9ca124f
fix 2d artifical MA bug
okBrian Aug 13, 2024
0c99ff5
fix all broken case files
okBrian Aug 13, 2024
6296758
rerevert the D directory temp
okBrian Aug 13, 2024
b14ba57
Merge remote-tracking branch 'upstream/master' into exampleCI2
okBrian Aug 19, 2024
d3b2db3
test compiled w/ gcc 12
okBrian Aug 19, 2024
f351c7c
decreased tolerence
okBrian Aug 20, 2024
5b8fcea
increase tol & fix lint?
okBrian Aug 20, 2024
0252536
Merge remote-tracking branch 'upstream/master' into exampleCI2
okBrian Aug 21, 2024
f23c748
test fix for gt phoneix?
okBrian Aug 21, 2024
06fca35
Merge remote-tracking branch 'upstream/master' into exampleCI2
okBrian Aug 22, 2024
92415b9
Merge remote-tracking branch 'origin/master' into exampleCI2
okBrian Aug 23, 2024
4635550
fix docker
okBrian Aug 26, 2024
3b40332
Merge remote-tracking branch 'origin' into exampleCI2
okBrian Aug 26, 2024
61baf3d
Merge remote-tracking branch 'origin/master' into exampleCI2
okBrian Sep 12, 2024
9adac3c
regenerate examples
okBrian Sep 12, 2024
f2d33e0
add support ibm_cfl_dt
okBrian Sep 13, 2024
fcd4454
try 13.3 gcc
okBrian Sep 13, 2024
b2de66e
merge origin master
okBrian Sep 13, 2024
03b5f72
added strict floating point and regnerated examples w/ it
okBrian Sep 20, 2024
acc8228
merge w/ master
okBrian Sep 20, 2024
ddabee4
fix req.txt
okBrian Sep 20, 2024
e0c1dd3
fix frontier cas
okBrian Sep 20, 2024
98f9b3d
regenerate all files and fix frontier
okBrian Sep 25, 2024
99465ee
Merge remote-tracking branch 'origin' into exampleCI2
okBrian Sep 30, 2024
b4e958f
fixed time_step_save issue
okBrian Sep 30, 2024
fdd5162
mimi pr for exampleCI
okBrian Oct 7, 2024
e1ac8f4
test lower tol + regenerating with debug
okBrian Oct 18, 2024
f34a911
regenerate hypo_2materials?
okBrian Oct 18, 2024
7d90327
--regenerate with strict flag
okBrian Oct 18, 2024
aad1300
add strict back to workflow
okBrian Oct 18, 2024
480c76d
Merge branch 'MFlowCode:master' into exampleCI2
okBrian Oct 21, 2024
f27d0ce
inital viscous edit
okBrian Oct 21, 2024
1d47274
regen viscous
okBrian Oct 21, 2024
4c9636d
test 2525 on exampleCI2
okBrian Oct 21, 2024
04a901a
remove cases for merge
okBrian Oct 25, 2024
c4db9d6
remove strict flag & retest with default flags
okBrian Oct 28, 2024
527a859
w/ correct weno_eps for testing
okBrian Oct 28, 2024
0e4fe57
fix removal of strict in workflow
okBrian Oct 28, 2024
33ab525
close to done?
okBrian Oct 28, 2024
1c99f12
remove strict on frontier
okBrian Oct 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: 'Example Suite'

on: [push, pull_request, workflow_dispatch]

jobs:
file-changes:
name: Detect File Changes
runs-on: 'ubuntu-latest'
outputs:
checkall: ${{ steps.changes.outputs.checkall }}
steps:
- name: Clone
uses: actions/checkout@v4

- name: Detect Changes
uses: dorny/paths-filter@v3
id: changes
with:
filters: ".github/file-filter.yml"

github:
name: Github
if: needs.file-changes.outputs.checkall == 'true'
needs: file-changes
continue-on-error: true
runs-on: macos-latest

steps:
- name: Clone
uses: actions/checkout@v4

- name: Setup MacOS
run: |
brew install wget make python make cmake coreutils gcc@14
echo "CC=gcc-14" >> $GITHUB_ENV
echo "CXX=g++-14" >> $GITHUB_ENV
echo "FC=gfortran-14" >> $GITHUB_ENV

- name: (MacOS) Build OpenMPI
run: |
brew install mpich

- name: Build
run: |
/bin/bash mfc.sh build -j $(nproc) --no-debug --mpi

- name: Test
run: |
/bin/bash mfc.sh test -o Example -j $(nproc) -r --generate
154 changes: 0 additions & 154 deletions examples/0D_qbmm/case.py

This file was deleted.

1 change: 1 addition & 0 deletions examples/1D_bubblescreen/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@
# Acoustic source ==========================================
'Monopole' : 'T',
'num_mono' : 1,
'Mono(1)%support' : 1,
'Mono(1)%loc(1)' : -5.E-03/x0,
'Mono(1)%npulse' : 1,
'Mono(1)%dir' : 1.,
Expand Down
1 change: 1 addition & 0 deletions examples/1D_exp_bubscreen/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@
# Acoustic source ==========================================
'Monopole' : 'T',
'num_mono' : 1,
'Mono(1)%support' : 1,
'Mono(1)%loc(1)' : -0.05/x0,
'Mono(1)%npulse' : 1,
'Mono(1)%dir' : 1.,
Expand Down
16 changes: 8 additions & 8 deletions examples/1D_impact/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,18 @@
'model_eqns' : 2,
'alt_soundspeed' : 'F',
'num_fluids' : 1,
'adv_alphan' : 'T',
'mpp_lim' : 'F',
'mixture_err' : 'F',
'time_stepper' : 3,
'adv_alphan' : 'T',
'mpp_lim' : 'F',
'mixture_err' : 'F',
'time_stepper' : 3,
'weno_order' : 3,
'weno_eps' : 1.E-16,
'weno_Re_flux' : 'F',
'weno_avg' : 'F',
'weno_Re_flux' : 'F',
'weno_avg' : 'F',
'mapped_weno' : 'F',
'null_weights' : 'F',
'mp_weno' : 'F',
'riemann_solver' : 1,
'riemann_solver' : 1,
'wave_speeds' : 1,
'avg_state' : 2,
'bc_x%beg' : -3,
Expand All @@ -59,7 +59,7 @@
'format' : 1,
'precision' : 2,
'prim_vars_wrt' :'T',
'parallel_io' :'F',
'parallel_io' :'F',
# ==========================================================

# Patch 1 L ================================================
Expand Down
2 changes: 1 addition & 1 deletion examples/1D_qbmm/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
'format' : 1,
'precision' : 2,
'prim_vars_wrt' :'T',
'parallel_io' :'F',
'parallel_io' :'T',
'fd_order' : 1,
#'schlieren_wrt' :'T',
'probe_wrt' :'T',
Expand Down
2 changes: 1 addition & 1 deletion examples/1D_shuosher_teno/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
# ==========================================================================

# Formatted Database Files Structure Parameters ============================
'format' : 2,
'format' : 1,
'precision' : 2,
'prim_vars_wrt' :'T',
'rho_wrt' :'T',
Expand Down
2 changes: 1 addition & 1 deletion examples/1D_shuosher_wenojs/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
# ==========================================================================

# Formatted Database Files Structure Parameters ============================
'format' : 2,
'format' : 1,
'precision' : 2,
'prim_vars_wrt' :'T',
'rho_wrt' :'T',
Expand Down
2 changes: 1 addition & 1 deletion examples/1D_shuosher_wenom/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
# ==========================================================================

# Formatted Database Files Structure Parameters ============================
'format' : 2,
'format' : 1,
'precision' : 2,
'prim_vars_wrt' :'T',
'rho_wrt' :'T',
Expand Down
2 changes: 1 addition & 1 deletion examples/1D_shuosher_wenoz/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
# ==========================================================================

# Formatted Database Files Structure Parameters ============================
'format' : 2,
'format' : 1,
'precision' : 2,
'prim_vars_wrt' :'T',
'rho_wrt' :'T',
Expand Down
2 changes: 1 addition & 1 deletion examples/1D_titarevtorro/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
# ==========================================================================

# Patch 2 R (-4.5 < x < 5) =================================================
'patch_icpp(2)%geometry' : 15,
'patch_icpp(2)%geometry' : 1,
'patch_icpp(2)%x_centroid' : 0.25,
'patch_icpp(2)%length_x' : 9.5,
'patch_icpp(2)%vel(1)' : 0.,
Expand Down
4 changes: 2 additions & 2 deletions examples/2D_isentropicvortex/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
'x_domain%end' : 3,
'y_domain%beg' : -3,
'y_domain%end' : 3,
'stretch_x' : True,
'stretch_y' : True,
'stretch_x' : 'T',
'stretch_y' : 'T',
'loops_x' : 2,
'loops_y' : 2,
'a_x' : 1.03,
Expand Down
1 change: 1 addition & 0 deletions examples/2D_whale_bubble_annulus/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@

'Monopole' : 'T',
'num_mono' : 1,
'Mono(1)%support' : 1,
'Mono(1)%loc(1)' : -1.5,
'Mono(1)%loc(2)' : 0.0,
'Mono(1)%npulse' : 4,
Expand Down
6 changes: 3 additions & 3 deletions src/pre_process/m_patches.fpp
Original file line number Diff line number Diff line change
Expand Up @@ -969,9 +969,6 @@ contains

@:analytical()

call s_assign_patch_primitive_variables(patch_id, i, j, 0, &
eta, q_prim_vf, patch_id_fp)

if ((q_prim_vf(1)%sf(i, j, 0) < 1.e-10) .and. (model_eqns == 4)) then
!zero density, reassign according to Tait EOS
q_prim_vf(1)%sf(i, j, 0) = &
Expand Down Expand Up @@ -2067,6 +2064,9 @@ contains
! if defining them analytically.
@:analytical()

call s_assign_patch_primitive_variables(patch_id, i, j, k, &
eta, q_prim_vf, patch_id_fp)

end do; end do; end do

if (proc_rank == 0) then
Expand Down
Loading