From: Matthias Maier Date: Tue, 15 Feb 2022 16:34:48 +0000 (-0600) Subject: CMake: adjust sundials/* tests X-Git-Tag: v9.4.0-rc1~473^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94fa8a13c3913138d2fbd6c92ea0dddb9aebc2b0;p=dealii.git CMake: adjust sundials/* tests --- diff --git a/tests/sundials/arkode_01.cc b/tests/sundials/arkode_01.cc index 6d7279d38f..b6f8091151 100644 --- a/tests/sundials/arkode_01.cc +++ b/tests/sundials/arkode_01.cc @@ -66,12 +66,12 @@ main(int argc, char **argv) // Set to true to reset input file. if (false) { - std::ofstream ofile(SOURCE_DIR "/arkode_01.prm"); + std::ofstream ofile(SOURCE_DIR "/arkode_01_in.prm"); prm.print_parameters(ofile, ParameterHandler::ShortText); ofile.close(); } - std::ifstream ifile(SOURCE_DIR "/arkode_01.prm"); + std::ifstream ifile(SOURCE_DIR "/arkode_01_in.prm"); prm.parse_input(ifile); SUNDIALS::ARKode ode(data); diff --git a/tests/sundials/arkode_01.prm b/tests/sundials/arkode_01_in.prm similarity index 100% rename from tests/sundials/arkode_01.prm rename to tests/sundials/arkode_01_in.prm diff --git a/tests/sundials/arkode_02.cc b/tests/sundials/arkode_02.cc index 00217ce71b..ecea12e5b9 100644 --- a/tests/sundials/arkode_02.cc +++ b/tests/sundials/arkode_02.cc @@ -64,7 +64,7 @@ main(int argc, char **argv) data.add_parameters(prm); // Use the same parameters of test 1. - std::ifstream ifile(SOURCE_DIR "/arkode_01.prm"); + std::ifstream ifile(SOURCE_DIR "/arkode_01_in.prm"); prm.parse_input(ifile); SUNDIALS::ARKode ode(data); diff --git a/tests/sundials/arkode_03.cc b/tests/sundials/arkode_03.cc index 521b6e269c..60d3ed4662 100644 --- a/tests/sundials/arkode_03.cc +++ b/tests/sundials/arkode_03.cc @@ -62,12 +62,12 @@ main(int argc, char **argv) if (false) { - std::ofstream ofile(SOURCE_DIR "/arkode_03.prm"); + std::ofstream ofile(SOURCE_DIR "/arkode_03_in.prm"); prm.print_parameters(ofile, ParameterHandler::ShortText); ofile.close(); } - std::ifstream ifile(SOURCE_DIR "/arkode_03.prm"); + std::ifstream ifile(SOURCE_DIR "/arkode_03_in.prm"); prm.parse_input(ifile); SUNDIALS::ARKode ode(data); diff --git a/tests/sundials/arkode_03.prm b/tests/sundials/arkode_03_in.prm similarity index 100% rename from tests/sundials/arkode_03.prm rename to tests/sundials/arkode_03_in.prm diff --git a/tests/sundials/arkode_04.cc b/tests/sundials/arkode_04.cc index 158d1619b5..d680db09d1 100644 --- a/tests/sundials/arkode_04.cc +++ b/tests/sundials/arkode_04.cc @@ -62,12 +62,12 @@ main(int argc, char **argv) if (false) { - std::ofstream ofile(SOURCE_DIR "/arkode_04.prm"); + std::ofstream ofile(SOURCE_DIR "/arkode_04_in.prm"); prm.print_parameters(ofile, ParameterHandler::ShortText); ofile.close(); } - std::ifstream ifile(SOURCE_DIR "/arkode_04.prm"); + std::ifstream ifile(SOURCE_DIR "/arkode_04_in.prm"); prm.parse_input(ifile); SUNDIALS::ARKode ode(data); diff --git a/tests/sundials/arkode_04.prm b/tests/sundials/arkode_04_in.prm similarity index 100% rename from tests/sundials/arkode_04.prm rename to tests/sundials/arkode_04_in.prm diff --git a/tests/sundials/arkode_05.cc b/tests/sundials/arkode_05.cc index a74dd5aea9..fdd79f02c4 100644 --- a/tests/sundials/arkode_05.cc +++ b/tests/sundials/arkode_05.cc @@ -62,12 +62,12 @@ main(int argc, char **argv) if (false) { - std::ofstream ofile(SOURCE_DIR "/arkode_05.prm"); + std::ofstream ofile(SOURCE_DIR "/arkode_05_in.prm"); prm.print_parameters(ofile, ParameterHandler::ShortText); ofile.close(); } - std::ifstream ifile(SOURCE_DIR "/arkode_05.prm"); + std::ifstream ifile(SOURCE_DIR "/arkode_05_in.prm"); prm.parse_input(ifile); SUNDIALS::ARKode ode(data); diff --git a/tests/sundials/arkode_05.prm b/tests/sundials/arkode_05_in.prm similarity index 100% rename from tests/sundials/arkode_05.prm rename to tests/sundials/arkode_05_in.prm diff --git a/tests/sundials/arkode_06.cc b/tests/sundials/arkode_06.cc index ca7dda566a..05b28cade7 100644 --- a/tests/sundials/arkode_06.cc +++ b/tests/sundials/arkode_06.cc @@ -69,12 +69,12 @@ main(int argc, char **argv) if (false) { - std::ofstream ofile(SOURCE_DIR "/arkode_06.prm"); + std::ofstream ofile(SOURCE_DIR "/arkode_06_in.prm"); prm.print_parameters(ofile, ParameterHandler::ShortText); ofile.close(); } - std::ifstream ifile(SOURCE_DIR "/arkode_06.prm"); + std::ifstream ifile(SOURCE_DIR "/arkode_06_in.prm"); prm.parse_input(ifile); SUNDIALS::ARKode ode(data); diff --git a/tests/sundials/arkode_06.prm b/tests/sundials/arkode_06_in.prm similarity index 100% rename from tests/sundials/arkode_06.prm rename to tests/sundials/arkode_06_in.prm diff --git a/tests/sundials/arkode_07.cc b/tests/sundials/arkode_07.cc index 4cf77ad37a..092d2c452b 100644 --- a/tests/sundials/arkode_07.cc +++ b/tests/sundials/arkode_07.cc @@ -69,12 +69,12 @@ main(int argc, char **argv) if (false) { - std::ofstream ofile(SOURCE_DIR "/arkode_07.prm"); + std::ofstream ofile(SOURCE_DIR "/arkode_07_in.prm"); prm.print_parameters(ofile, ParameterHandler::ShortText); ofile.close(); } - std::ifstream ifile(SOURCE_DIR "/arkode_07.prm"); + std::ifstream ifile(SOURCE_DIR "/arkode_07_in.prm"); prm.parse_input(ifile); SUNDIALS::ARKode ode(data); diff --git a/tests/sundials/arkode_07.prm b/tests/sundials/arkode_07_in.prm similarity index 100% rename from tests/sundials/arkode_07.prm rename to tests/sundials/arkode_07_in.prm diff --git a/tests/sundials/arkode_08.cc b/tests/sundials/arkode_08.cc index 3bd6e909f5..0eaa97a654 100644 --- a/tests/sundials/arkode_08.cc +++ b/tests/sundials/arkode_08.cc @@ -59,12 +59,12 @@ main(int argc, char **argv) if (false) { - std::ofstream ofile(SOURCE_DIR "/arkode_08.prm"); + std::ofstream ofile(SOURCE_DIR "/arkode_08_in.prm"); prm.print_parameters(ofile, ParameterHandler::ShortText); ofile.close(); } - std::ifstream ifile(SOURCE_DIR "/arkode_08.prm"); + std::ifstream ifile(SOURCE_DIR "/arkode_08_in.prm"); prm.parse_input(ifile); SUNDIALS::ARKode ode(data); diff --git a/tests/sundials/arkode_08.prm b/tests/sundials/arkode_08_in.prm similarity index 100% rename from tests/sundials/arkode_08.prm rename to tests/sundials/arkode_08_in.prm diff --git a/tests/sundials/arkode_repeated_solve.cc b/tests/sundials/arkode_repeated_solve.cc index 3e55a8c8bb..5b7fe7ddd7 100644 --- a/tests/sundials/arkode_repeated_solve.cc +++ b/tests/sundials/arkode_repeated_solve.cc @@ -35,7 +35,7 @@ create_solver() SUNDIALS::ARKode::AdditionalData data; data.add_parameters(prm); - std::ifstream ifile(SOURCE_DIR "/arkode_repeated_solve.prm"); + std::ifstream ifile(SOURCE_DIR "/arkode_repeated_solve_in.prm"); prm.parse_input(ifile); auto ode = std::make_unique>(data); diff --git a/tests/sundials/arkode_repeated_solve.prm b/tests/sundials/arkode_repeated_solve_in.prm similarity index 100% rename from tests/sundials/arkode_repeated_solve.prm rename to tests/sundials/arkode_repeated_solve_in.prm diff --git a/tests/sundials/ida_01.cc b/tests/sundials/ida_01.cc index 2ca579f713..6905cfee77 100644 --- a/tests/sundials/ida_01.cc +++ b/tests/sundials/ida_01.cc @@ -158,7 +158,7 @@ main(int argc, char **argv) // prm.print_parameters(ofile, ParameterHandler::ShortText); // ofile.close(); - std::ifstream ifile(SOURCE_DIR "/ida_01.prm"); + std::ifstream ifile(SOURCE_DIR "/ida_01_in.prm"); prm.parse_input(ifile); diff --git a/tests/sundials/ida_01.prm b/tests/sundials/ida_01_in.prm similarity index 100% rename from tests/sundials/ida_01.prm rename to tests/sundials/ida_01_in.prm diff --git a/tests/sundials/ida_02.cc b/tests/sundials/ida_02.cc index 717fd9328d..65faffcb6e 100644 --- a/tests/sundials/ida_02.cc +++ b/tests/sundials/ida_02.cc @@ -155,7 +155,7 @@ main(int argc, char **argv) // prm.print_parameters(ofile, ParameterHandler::ShortText); // ofile.close(); - std::ifstream ifile(SOURCE_DIR "/ida_01.prm"); + std::ifstream ifile(SOURCE_DIR "/ida_01_in.prm"); prm.parse_input(ifile);