Skip to content

Commit

Permalink
move init_nse_net into network_init() (#1101)
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale authored Dec 20, 2022
1 parent 6679103 commit afd2315
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
9 changes: 9 additions & 0 deletions interfaces/network_initialization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
#ifdef NONAKA_PLOT
#include <nonaka_plot.H>
#endif
#ifdef NSE_NET
#include <nse_solver.H>
#endif
#endif

void network_init()
Expand All @@ -24,5 +27,11 @@ nonaka_init();
actual_network_init();
actual_rhs_init();
#endif

#ifdef NSE_NET
init_nse_net();
#endif

#endif

}
2 changes: 0 additions & 2 deletions nse_solver/make_table/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ int main(int argc, char *argv[]) {
// C++ Network, RHS, screening, rates initialization
network_init();

init_nse_net();

burn_cell_c();

amrex::Finalize();
Expand Down
3 changes: 0 additions & 3 deletions unit_test/test_ase/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ int main(int argc, char *argv[]) {
// C++ Network, RHS, screening, rates initialization
network_init();

// Initialize nse;
init_nse_net();

burn_cell_c();

amrex::Finalize();
Expand Down
2 changes: 0 additions & 2 deletions unit_test/test_ase/make_table/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ int main(int argc, char *argv[]) {
// C++ Network, RHS, screening, rates initialization
network_init();

init_nse_net();

burn_cell_c();

amrex::Finalize();
Expand Down
5 changes: 1 addition & 4 deletions unit_test/test_nse/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,13 @@ int main(int argc, char *argv[]) {
ParmParse ppa("amr");

init_unit_test();

// C++ EOS initialization (must be done after Fortran eos_init and init_extern_parameters)
eos_init(small_temp, small_dens);

// C++ Network, RHS, screening, rates initialization
network_init();

// Initialize nse;
init_nse_net();

nse_example_c();

amrex::Finalize();
Expand Down

0 comments on commit afd2315

Please sign in to comment.