diff --git a/CHANGELOG.md b/CHANGELOG.md index 53e78b0abe45..5dcbd840eb5d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ - [[PR 868]](https://github.com/parthenon-hpc-lab/parthenon/pull/868) Add block-local face, edge, and nodal fields and allow for packing ### Changed (changing behavior/API/variables/...) +- [[PR 965]](https://github.com/parthenon-hpc-lab/parthenon/pull/965) Allow leading whitespace in input parameters - [[PR 926]](https://github.com/parthenon-hpc-lab/parthenon/pull/926) Internal refinement op registration - [[PR 897]](https://github.com/parthenon-hpc-lab/parthenon/pull/897) Deflate compression filter is not called any more if compression is soft disabled - [[PR 896]](https://github.com/parthenon-hpc-lab/parthenon/pull/896) Update Kokkos integration to support installed version. Use `serial` (flat MPI) host parallelization by default (instead of OpenMP) diff --git a/CMakeLists.txt b/CMakeLists.txt index 33c19c34256d..fe9b1f7e3d86 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -62,9 +62,9 @@ include(cmake/Format.cmake) include(cmake/Lint.cmake) # regression test reference data -set(REGRESSION_GOLD_STANDARD_VER 19 CACHE STRING "Version of gold standard to download and use") +set(REGRESSION_GOLD_STANDARD_VER 20 CACHE STRING "Version of gold standard to download and use") set(REGRESSION_GOLD_STANDARD_HASH - "SHA512=e1d1a06b9cf9b761d42d0b6b241056ac75658db90138b6b867b1ca7ead4308af4f980285af092b40aee1dbbfb68b4e8cb15efcc9b83d7930c18bf992ae95c729" + "SHA512=e5e421f3c0be01e4708965542bb8b1b79b5c96de97091e46972e375c7616588d026a9a8e29226d9c7ef75346bc859fd9af72acdc7e95e0d783b5ef29aa4630b1" CACHE STRING "Hash of default gold standard file to download") option(REGRESSION_GOLD_STANDARD_SYNC "Automatically sync gold standard files." ON) diff --git a/src/outputs/parthenon_hdf5.cpp b/src/outputs/parthenon_hdf5.cpp index 95b89b93b627..004054d8421a 100644 --- a/src/outputs/parthenon_hdf5.cpp +++ b/src/outputs/parthenon_hdf5.cpp @@ -820,7 +820,7 @@ HDF5GetAttributeInfo(hid_t location, const std::string &name, H5A &attr) { // template specializations for std::string and bool void HDF5WriteAttribute(const std::string &name, const std::string &value, hid_t location) { - HDF5WriteAttribute(name, value.size(), value.c_str(), location); + HDF5WriteAttribute(name, value.c_str(), location); } template <> diff --git a/src/parameter_input.cpp b/src/parameter_input.cpp index b9fd9546f2b6..45012e0912bd 100644 --- a/src/parameter_input.cpp +++ b/src/parameter_input.cpp @@ -315,7 +315,7 @@ bool ParameterInput::ParseLine(InputBlock *pib, std::string line, std::string &n name.assign(line, first_char, len); last_char = name.find_last_not_of(" "); name.erase(last_char + 1, std::string::npos); - line.erase(0, len + 1); + line.erase(0, equal_char + 1); } cont_char = line.find_first_of("&"); // find "&" continuation character diff --git a/tst/regression/test_suites/advection_performance/parthinput.advection_performance b/tst/regression/test_suites/advection_performance/parthinput.advection_performance index 4dfe731cf497..5aea8cbee069 100644 --- a/tst/regression/test_suites/advection_performance/parthinput.advection_performance +++ b/tst/regression/test_suites/advection_performance/parthinput.advection_performance @@ -49,8 +49,8 @@ nx2 = 64 nx3 = 64 -tlim = 1.0 -nlim = 20 + tlim = 1.0 # Test that leading whitespace is correctly sanitized + nlim = 20 # Test that leading tab is correctly sanitized integrator = rk2 perf_cycle_offset = 2