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

rename test_nse_net -> nse_net_cell; test_part_func -> part_func_cell #1729

Merged
merged 3 commits into from
Jan 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions .github/workflows/cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ jobs:
make realclean
make NETWORK_DIR=ignition_reaclib/URCA-simple USE_CUDA=TRUE COMP=gnu USE_MPI=FALSE -j 4

- name: compile test_nse_net (ase)
- name: compile nse_net_cell (ase)
run: |
export PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:${PATH}
cd unit_test/test_nse_net
cd unit_test/nse_net_cell
make USE_CUDA=TRUE COMP=gnu USE_MPI=FALSE -j 4
28 changes: 14 additions & 14 deletions .github/workflows/nse_net.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,42 +26,42 @@ jobs:
sudo apt-get update -y -qq
sudo apt-get -qq -y install curl cmake jq clang g++>=9.3.0

- name: Compile, test_nse_net (NSE_NET, ase)
- name: Compile, nse_net_cell (NSE_NET, ase)
run: |
cd unit_test/test_nse_net
cd unit_test/nse_net_cell
make realclean
make -j 4

- name: Run test_nse_net (NSE_NET, ase)
- name: Run nse_net_cell (NSE_NET, ase)
run: |
cd unit_test/test_nse_net
cd unit_test/nse_net_cell
./main3d.gnu.ex inputs_ase amrex.fpe_trap_{invalid,zero,overflow}=1 > test.out

- name: Print backtrace
if: ${{ failure() && hashFiles('unit_test/test_nse_net/Backtrace.0') != '' }}
run: cat unit_test/test_nse_net/Backtrace.0
if: ${{ failure() && hashFiles('unit_test/nse_net_cell/Backtrace.0') != '' }}
run: cat unit_test/nse_net_cell/Backtrace.0

- name: Compare to stored output (NSE_NET, ase)
run: |
cd unit_test/test_nse_net
cd unit_test/nse_net_cell
diff -I "^Initializing AMReX" -I "^AMReX" -I "^reading in reaclib rates" test.out ci-benchmarks/nse_net_unit_test.out

- name: Compile, test_nse_net/make_table (NSE_NET, ase, make_table)
- name: Compile, nse_net_cell/make_table (NSE_NET, ase, make_table)
run: |
cd unit_test/test_nse_net/make_table
cd unit_test/nse_net_cell/make_table
make realclean
make -j 4

- name: Run, test_nse_net/make_table (NSE_NET, ase, make_table)
- name: Run, nse_net_cell/make_table (NSE_NET, ase, make_table)
run: |
cd unit_test/test_nse_net/make_table
cd unit_test/nse_net_cell/make_table
./main3d.gnu.ex amrex.fpe_trap_{invalid,zero,overflow}=1 > test.out

- name: Print backtrace
if: ${{ failure() && hashFiles('unit_test/test_nse_net/make_table/Backtrace.0') != '' }}
run: cat unit_test/test_nse_net/make_table/Backtrace.0
if: ${{ failure() && hashFiles('unit_test/nse_net_cell/make_table/Backtrace.0') != '' }}
run: cat unit_test/nse_net_cell/make_table/Backtrace.0

- name: Compare to stored output (NSE_NET, ase, make_table)
run: |
cd unit_test/test_nse_net/make_table
cd unit_test/nse_net_cell/make_table
diff -I "^Initializing AMReX" -I "^AMReX" -I "^reading in reaclib rates" test.out ci-benchmarks/nse_net_make_table_unit_test.out
8 changes: 4 additions & 4 deletions .github/workflows/test_partition_functions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ jobs:

- name: Compile
run: |
cd unit_test/test_part_func
cd unit_test/part_func_cell
make clean
make -j 4

- name: Run test_part_func
- name: Run part_func_cell
run: |
cd unit_test/test_part_func
cd unit_test/part_func_cell
./main3d.gnu.ex > test.out

- name: Compare to stored output
run: |
cd unit_test/test_part_func
cd unit_test/part_func_cell
diff -I "^Initializing AMReX" -I "^AMReX" -I "^reading in reaclib rates" test.out ci-benchmarks/part_func.out

6 changes: 3 additions & 3 deletions Docs/source/unit_tests.rst
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ by options in the input file.
One-zone tests
==============

.. index:: burn_cell, burn_cell_primordial_chem, burn_cell_sdc, eos_cell, jac_cell, nse_table_cell, test_ase, test_part_func
.. index:: burn_cell, burn_cell_primordial_chem, burn_cell_sdc, eos_cell, jac_cell, nse_table_cell, nse_net_cell, part_func_cell

* ``burn_cell`` :

Expand Down Expand Up @@ -147,13 +147,13 @@ One-zone tests
given a $\rho$, $T$, and $Y_e$, evaluate the NSE state via table interpolation
and print it out.

* ``test_ase`` :
* ``nse_net_cell`` :

for the self-consistent NSE, take a $\rho$, $T$, and $Y_e$, and solve for the NSE
state. Then check the NSE condition to see if we are actually satisfying the NSE
criteria for the network.

* ``test_part_func``
* ``part_func_cell``

exercise the partition function interpolation for a few select nuclei.

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# test_nse_net
# `nse_net_cell`

`test_nse_net` finds the NSE mass fractions of a given state.
`nse_net_cell` finds the NSE mass fractions of a given state.
The density, temperature, and composition are set in the
inputs file. Then we update the NSE mass fraction to
the current state to make sure we're in NSE. Then we
Expand All @@ -9,4 +9,4 @@ we're in NSE or not.

Upon completion, the new state is printed to the screen.
And a statement is printed to see whether we're in NSE
or not.
or not.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading