Skip to content

Commit

Permalink
Merge branch 'vof' of github.com:IFDL-WSU/incflo into vof
Browse files Browse the repository at this point in the history
  • Loading branch information
Hua Tan committed Jun 22, 2024
2 parents 6ee1d1c + 1356ac7 commit 39448dd
Show file tree
Hide file tree
Showing 51 changed files with 1,413 additions and 1,247 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cleanup-cache-postpr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Clean up ccahe
run: |
gh extension install actions/gh-actions-cache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cleanup-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Clean up ccahe
run: |
gh extension install actions/gh-actions-cache
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@ jobs:
env: {CXXFLAGS: "-Werror -Wall -Wextra -Wpedantic -Wnull-dereference -Wfloat-conversion -Wshadow -Woverloaded-virtual -Wnon-virtual-dtor -Wlogical-op -Wmisleading-indentation -Wduplicated-cond -Wduplicated-branches -Wmissing-include-dirs"}
steps:
- name: Checkout incflo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: incflo
- name: Checkout AMReX-Hydro
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: AMReX-Fluids/AMReX-Hydro
path: AMReX-Hydro
- name: Checkout AMReX
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: AMReX-Codes/amrex
path: amrex
- name: Set Up Cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/ccache
key: ccache-${{ github.workflow }}-${{ github.job }}-git-${{ github.sha }}
Expand Down Expand Up @@ -85,21 +85,21 @@ jobs:
env: {CXXFLAGS: "-Werror -Wall -Wextra -Wpedantic -Wnull-dereference -Wfloat-conversion -Wshadow -Woverloaded-virtual -Wnon-virtual-dtor -Wlogical-op -Wmisleading-indentation -Wduplicated-cond -Wduplicated-branches -Wmissing-include-dirs"}
steps:
- name: Checkout incflo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: incflo
- name: Checkout AMReX-Hydro
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: AMReX-Fluids/AMReX-Hydro
path: AMReX-Hydro
- name: Checkout AMReX
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: AMReX-Codes/amrex
path: amrex
- name: Set Up Cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/ccache
key: ccache-${{ github.workflow }}-${{ github.job }}-git-${{ github.sha }}
Expand Down Expand Up @@ -153,7 +153,7 @@ jobs:
PR_NUMBER: ${{ github.event.number }}
run: |
echo $PR_NUMBER > pr_number.txt
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: pr_number
path: pr_number.txt
Expand Down
34 changes: 17 additions & 17 deletions .github/workflows/gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@ jobs:
env: {CXXFLAGS: "-Werror -Wall -Wextra -Wpedantic -Wnull-dereference -Wfloat-conversion -Wshadow -Woverloaded-virtual -Wnon-virtual-dtor -Wlogical-op -Wmisleading-indentation -Wduplicated-cond -Wduplicated-branches -Wmissing-include-dirs"}
steps:
- name: Checkout incflo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: incflo
- name: Checkout AMReX-Hydro
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: AMReX-Fluids/AMReX-Hydro
path: AMReX-Hydro
- name: Checkout AMReX
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: AMReX-Codes/amrex
path: amrex
- name: Set Up Cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/ccache
key: ccache-${{ github.workflow }}-${{ github.job }}-git-${{ github.sha }}
Expand Down Expand Up @@ -89,21 +89,21 @@ jobs:
env: {CXXFLAGS: "-Werror -Wall -Wextra -Wpedantic -Wnull-dereference -Wfloat-conversion -Wshadow -Woverloaded-virtual -Wnon-virtual-dtor -Wlogical-op -Wmisleading-indentation -Wduplicated-cond -Wduplicated-branches -Wmissing-include-dirs"}
steps:
- name: Checkout incflo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: incflo
- name: Checkout AMReX-Hydro
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: AMReX-Fluids/AMReX-Hydro
path: AMReX-Hydro
- name: Checkout AMReX
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: AMReX-Codes/amrex
path: amrex
- name: Set Up Cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/ccache
key: ccache-${{ github.workflow }}-${{ github.job }}-git-${{ github.sha }}
Expand Down Expand Up @@ -174,21 +174,21 @@ jobs:
env: {CXXFLAGS: "-Werror -Wall -Wextra -Wpedantic -Wnull-dereference -Wfloat-conversion -Wshadow -Woverloaded-virtual -Wnon-virtual-dtor -Wlogical-op -Wmisleading-indentation -Wduplicated-cond -Wduplicated-branches -Wmissing-include-dirs"}
steps:
- name: Checkout incflo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: incflo
- name: Checkout AMReX-Hydro
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: AMReX-Fluids/AMReX-Hydro
path: AMReX-Hydro
- name: Checkout AMReX
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: AMReX-Codes/amrex
path: amrex
- name: Set Up Cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/ccache
key: ccache-${{ github.workflow }}-${{ github.job }}-git-${{ github.sha }}
Expand Down Expand Up @@ -259,21 +259,21 @@ jobs:
env: {CXXFLAGS: "-Werror -Wall -Wextra -Wpedantic -Wnull-dereference -Wfloat-conversion -Wshadow -Woverloaded-virtual -Wnon-virtual-dtor -Wlogical-op -Wmisleading-indentation -Wduplicated-cond -Wduplicated-branches -Wmissing-include-dirs"}
steps:
- name: Checkout incflo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: incflo
- name: Checkout AMReX-Hydro
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: AMReX-Fluids/AMReX-Hydro
path: AMReX-Hydro
- name: Checkout AMReX
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: AMReX-Codes/amrex
path: amrex
- name: Set Up Cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/ccache
key: ccache-${{ github.workflow }}-${{ github.job }}-git-${{ github.sha }}
Expand Down Expand Up @@ -332,7 +332,7 @@ jobs:
PR_NUMBER: ${{ github.event.number }}
run: |
echo $PR_NUMBER > pr_number.txt
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: pr_number
path: pr_number.txt
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/hip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@ jobs:
env: {CXXFLAGS: "-Werror -Wall -Wextra -Wpedantic -Wnull-dereference -Wfloat-conversion -Wshadow -Woverloaded-virtual -Wextra-semi -Wunreachable-code -Wnon-virtual-dtor -Wno-deprecated-declarations -Wno-gnu-zero-variadic-macro-arguments"}
steps:
- name: Checkout incflo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: incflo
- name: Checkout AMReX-Hydro
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: AMReX-Fluids/AMReX-Hydro
path: AMReX-Hydro
- name: Checkout AMReX
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: AMReX-Codes/amrex
path: amrex
- name: Set Up Cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/ccache
key: ccache-${{ github.workflow }}-${{ github.job }}-git-${{ github.sha }}
Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:
PR_NUMBER: ${{ github.event.number }}
run: |
echo $PR_NUMBER > pr_number.txt
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: pr_number
path: pr_number.txt
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/post-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
PR_NUMBER: ${{ github.event.number }}
run: |
echo $PR_NUMBER > pr_number.txt
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: pr_number
path: pr_number.txt
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ jobs:
tabs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Tabs
run: .github/workflows/style/check_tabs.sh

trailing_whitespaces:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Trailing Whitespaces
run: .github/workflows/style/check_trailing_whitespaces.sh
10 changes: 5 additions & 5 deletions .github/workflows/sycl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@ jobs:
env: {CXXFLAGS: "-Werror -Wall -Wextra -Wpedantic -Wnull-dereference -Wfloat-conversion -Wshadow -Woverloaded-virtual -Wextra-semi -Wunreachable-code -Wnon-virtual-dtor -Wno-sign-compare -Wno-missing-braces"}
steps:
- name: Checkout incflo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: incflo
- name: Checkout AMReX-Hydro
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: AMReX-Fluids/AMReX-Hydro
path: AMReX-Hydro
- name: Checkout AMReX
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: AMReX-Codes/amrex
path: amrex
- name: Set Up Cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/ccache
key: ccache-${{ github.workflow }}-${{ github.job }}-git-${{ github.sha }}
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
PR_NUMBER: ${{ github.event.number }}
run: |
echo $PR_NUMBER > pr_number.txt
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: pr_number
path: pr_number.txt
Expand Down
24 changes: 14 additions & 10 deletions Docs/sphinx_documentation/source/InputsCheckpoint.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,18 @@ Checkpoint/Restart

The following inputs must be preceded by "amr" and control checkpoint/restart.

+------------------+-----------------------------------------------------------------------+-------------+-----------+
| | Description | Type | Default |
+==================+=======================================================================+=============+===========+
| restart | If present, then the name of file to restart from | String | None |
+------------------+-----------------------------------------------------------------------+-------------+-----------+
| check_int | Frequency of checkpoint output; | Int | -1 |
| | if -1 then no checkpoints will be written | | |
+------------------+-----------------------------------------------------------------------+-------------+-----------+
| check_file | Prefix to use for checkpoint output | String | chk |
+------------------+-----------------------------------------------------------------------+-------------+-----------+
+---------------------+-----------------------------------------------------------------------+-------------+-----------+
| | Description | Type | Default |
+=====================+=======================================================================+=============+===========+
| restart | If present, then the name of file to restart from | String | None |
+---------------------+-----------------------------------------------------------------------+-------------+-----------+
| plotfile_on_restart | Write a plotfile before taking a time step | bool | false |
+---------------------+-----------------------------------------------------------------------+-------------+-----------+
| regrid_on_restart | Create new grids, including level 0, on restart | bool | false |
+---------------------+-----------------------------------------------------------------------+-------------+-----------+
| check_int | Frequency of checkpoint output; | Int | -1 |
| | if -1 then no checkpoints will be written | | |
+---------------------+-----------------------------------------------------------------------+-------------+-----------+
| check_file | Prefix to use for checkpoint output | String | chk |
+---------------------+-----------------------------------------------------------------------+-------------+-----------+

4 changes: 4 additions & 0 deletions Docs/sphinx_documentation/source/InputsTimeStepping.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ The inputs below must be preceded by "incflo."
+----------------------+-----------------------------------------------------------------------+-------------+--------------+
| cfl | CFL constraint (dt < cfl * dx / u) if fixed_dt not > 0 | Real | 0.5 |
+----------------------+-----------------------------------------------------------------------+-------------+--------------+
| dt_change_max | maximum percentage dt can increase | Real | 1.1 |
+----------------------+-----------------------------------------------------------------------+-------------+--------------+
| init_shrink | reduce the initial time step by this safety factor | Real | 0.1 |
+----------------------+-----------------------------------------------------------------------+-------------+--------------+

Setting the Time Step
---------------------
Expand Down
6 changes: 5 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ target_sources(incflo
incflo_correct_small_cells.cpp
incflo_redistribute.cpp
incflo_explicit_update.cpp
incflo_tagging.cpp
incflo_regrid.cpp
incflo_tagging.cpp
incflo_update_density.cpp
incflo_update_tracer.cpp
incflo_update_velocity.cpp
incflo_utils.cpp
main.cpp
)

Expand Down
6 changes: 5 additions & 1 deletion src/Make.package
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ CEXE_sources += incflo_apply_corrector.cpp
CEXE_sources += incflo_compute_dt.cpp
CEXE_sources += incflo_compute_forces.cpp
CEXE_sources += incflo_explicit_update.cpp
CEXE_sources += incflo_tagging.cpp
CEXE_sources += incflo_regrid.cpp
CEXE_sources += incflo_tagging.cpp
CEXE_sources += incflo_update_density.cpp
CEXE_sources += incflo_update_tracer.cpp
CEXE_sources += incflo_update_velocity.cpp
CEXE_sources += incflo_utils.cpp
CEXE_sources += main.cpp

ifeq ($(USE_EB), TRUE)
Expand Down
Loading

0 comments on commit 39448dd

Please sign in to comment.