From 3ef46366f8cebc3b8b301915e19284190732c7b4 Mon Sep 17 00:00:00 2001 From: Max Katz Date: Mon, 14 Aug 2023 19:03:23 -0400 Subject: [PATCH] Remove C++ language suffix from unit tests --- unit_test/test_aprox_rates/main.cpp | 5 ++--- unit_test/test_conductivity/main.cpp | 5 ++--- unit_test/test_eos/main.cpp | 5 ++--- unit_test/test_react/main.cpp | 6 ++---- unit_test/test_sdc/main.cpp | 6 ++---- 5 files changed, 10 insertions(+), 17 deletions(-) diff --git a/unit_test/test_aprox_rates/main.cpp b/unit_test/test_aprox_rates/main.cpp index 98f753a80b..59f28c7de7 100644 --- a/unit_test/test_aprox_rates/main.cpp +++ b/unit_test/test_aprox_rates/main.cpp @@ -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; diff --git a/unit_test/test_conductivity/main.cpp b/unit_test/test_conductivity/main.cpp index d8de2b86f0..820fdcfa16 100644 --- a/unit_test/test_conductivity/main.cpp +++ b/unit_test/test_conductivity/main.cpp @@ -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; diff --git a/unit_test/test_eos/main.cpp b/unit_test/test_eos/main.cpp index 6fc42c3a64..e0c4d19886 100644 --- a/unit_test/test_eos/main.cpp +++ b/unit_test/test_eos/main.cpp @@ -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; diff --git a/unit_test/test_react/main.cpp b/unit_test/test_react/main.cpp index fde5631dbe..81accb06eb 100644 --- a/unit_test/test_react/main.cpp +++ b/unit_test/test_react/main.cpp @@ -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 diff --git a/unit_test/test_sdc/main.cpp b/unit_test/test_sdc/main.cpp index cdc438f32d..7967b7ecb6 100644 --- a/unit_test/test_sdc/main.cpp +++ b/unit_test/test_sdc/main.cpp @@ -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;