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

clean up some unused vars in unit tests #1492

Merged
merged 2 commits into from
Feb 26, 2024
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
1 change: 1 addition & 0 deletions EOS/helmholtz/actual_eos.H
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#include <string>
#include <iostream>
#include <fstream>
#include <sstream>
#include <AMReX.H>
#include <AMReX_REAL.H>
Expand Down
8 changes: 0 additions & 8 deletions unit_test/burn_cell/main.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
#include <iostream>
#include <cstring>
#include <vector>

#include <AMReX_ParmParse.H>
#include <AMReX_MultiFab.H>
//using namespace amrex;

#include <extern_parameters.H>
#include <eos.H>
Expand All @@ -20,8 +14,6 @@ int main(int argc, char *argv[]) {

std::cout << "starting the single zone burn..." << std::endl;

ParmParse ppa("amr");

init_unit_test();

// C++ EOS initialization (must be done after Fortran eos_init and init_extern_parameters)
Expand Down
8 changes: 0 additions & 8 deletions unit_test/burn_cell_sdc/main.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
#include <iostream>
#include <cstring>
#include <vector>

#include <AMReX_ParmParse.H>
#include <AMReX_MultiFab.H>
using namespace amrex;

#include <extern_parameters.H>
#include <eos.H>
Expand All @@ -20,8 +14,6 @@ int main(int argc, char *argv[]) {

std::cout << "starting the single zone burn..." << std::endl;

ParmParse ppa("amr");

init_unit_test();

// C++ EOS initialization (must be done after Fortran eos_init and init_extern_parameters)
Expand Down
3 changes: 1 addition & 2 deletions unit_test/eos_cell/eos_cell.H
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#include <extern_parameters.H>
#include <eos.H>
#include <network.H>
#include <fstream>
#include <iostream>
#include <react_util.H>

Expand All @@ -14,7 +13,7 @@ void eos_cell_c()
eos_t state;

// Set mass fractions to sanitize inputs for them
Real massfractions[NumSpec];
amrex::Real massfractions[NumSpec];
for (int n = 0; n < NumSpec; ++n) {
massfractions[n] = -1.0e0_rt;
}
Expand Down
8 changes: 0 additions & 8 deletions unit_test/eos_cell/main.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
#include <iostream>
#include <cstring>
#include <vector>

#include <AMReX_ParmParse.H>
#include <AMReX_MultiFab.H>
using namespace amrex;

#include <extern_parameters.H>
#include <eos.H>
Expand All @@ -20,8 +14,6 @@ int main(int argc, char *argv[]) {

std::cout << "calling the EOS on a single zone state..." << std::endl;

ParmParse ppa("amr");

init_unit_test();

// C++ EOS initialization (must be done after Fortran eos_init and init_extern_parameters)
Expand Down
8 changes: 0 additions & 8 deletions unit_test/nse_table_cell/main.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
#include <iostream>
#include <cstring>
#include <vector>

#include <AMReX_ParmParse.H>
#include <AMReX_MultiFab.H>
using namespace amrex;

#include <extern_parameters.H>
#include <eos.H>
Expand All @@ -18,8 +12,6 @@ int main(int argc, char *argv[]) {

std::cout << "starting the single zone burn..." << std::endl;

ParmParse ppa("amr");

init_unit_test();

// C++ EOS initialization (must be done after Fortran eos_init and init_extern_parameters)
Expand Down
1 change: 0 additions & 1 deletion unit_test/nse_table_cell/nse_cell.H
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ void nse_cell_c()
std::cout << "Abar = " << nse_state.abar << std::endl;
std::cout << "<B/A> = " << nse_state.bea << std::endl;
std::cout << "dYe/dt = " << nse_state.dyedt << std::endl;
std::cout << "dAbar/dt = " << nse_state.dabardt << std::endl;
std::cout << "d<B/A>/dt = " << nse_state.dbeadt << std::endl;
for (int n = 0; n < NumSpec; ++n) {
std::cout << "X(" << short_spec_names_cxx[n] << ") = " << nse_state.X[n] << std::endl;
Expand Down