Skip to content

Commit

Permalink
Remove C++ language suffix from unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maxpkatz committed Aug 14, 2023
1 parent 7a08c7a commit 3ef4636
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 17 deletions.
5 changes: 2 additions & 3 deletions unit_test/test_aprox_rates/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,11 @@ void main_main ()
ParallelDescriptor::ReduceRealMax(stop_time, IOProc);

std::string name = "test_aprox_rates.";
std::string language = ".cxx";

// Write a plotfile
WriteSingleLevelPlotfile(name + eos_name + language, state, names, geom, time, 0);
WriteSingleLevelPlotfile(name + eos_name, state, names, geom, time, 0);

write_job_info(name + eos_name + language);
write_job_info(name + eos_name);

// Tell the I/O Processor to write out the "run time"
amrex::Print() << "Run time = " << stop_time << std::endl;
Expand Down
5 changes: 2 additions & 3 deletions unit_test/test_conductivity/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,11 @@ void main_main ()
ParallelDescriptor::ReduceRealMax(stop_time, IOProc);

std::string name = "test_conductivity.";
std::string language = ".cxx";

// Write a plotfile
WriteSingleLevelPlotfile(name + cond_name + language, state, names, geom, time, 0);
WriteSingleLevelPlotfile(name + cond_name, state, names, geom, time, 0);

write_job_info(name + cond_name + language);
write_job_info(name + cond_name);

// Tell the I/O Processor to write out the "run time"
amrex::Print() << "Run time = " << stop_time << std::endl;
Expand Down
5 changes: 2 additions & 3 deletions unit_test/test_eos/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,11 @@ void main_main ()


std::string name = "test_eos.";
std::string language = ".cxx";

// Write a plotfile
WriteSingleLevelPlotfile(name + eos_name + language, state, names, geom, time, 0);
WriteSingleLevelPlotfile(name + eos_name, state, names, geom, time, 0);

write_job_info(name + eos_name + language);
write_job_info(name + eos_name);

// Tell the I/O Processor to write out the "run time"
amrex::Print() << "Run time = " << stop_time << std::endl;
Expand Down
6 changes: 2 additions & 4 deletions unit_test/test_react/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,12 +249,10 @@ void main_main ()
std::string name = "test_react.";
std::string integrator = buildInfoGetModuleVal(int_idx);

std::string language = ".cxx";

// Write a plotfile
WriteSingleLevelPlotfile(prefix + name + integrator + language, state, names, geom, time, 0);
WriteSingleLevelPlotfile(prefix + name + integrator, state, names, geom, time, 0);

write_job_info(prefix + name + integrator + language);
write_job_info(prefix + name + integrator);

// output stats on the number of RHS calls

Expand Down
6 changes: 2 additions & 4 deletions unit_test/test_sdc/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,10 @@ void main_main ()
std::string name = "test_react.";
std::string integrator = buildInfoGetModuleVal(int_idx);

std::string language = ".cxx";

// Write a plotfile
WriteSingleLevelPlotfile(prefix + name + integrator + language, state, names, geom, time, 0);
WriteSingleLevelPlotfile(prefix + name + integrator, state, names, geom, time, 0);

write_job_info(prefix + name + integrator + language);
write_job_info(prefix + name + integrator);

// Tell the I/O Processor to write out the "run time"
amrex::Print() << "Run time = " << stop_time << std::endl;
Expand Down

0 comments on commit 3ef4636

Please sign in to comment.