Skip to content

Commit

Permalink
formatting and changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahm-LANL committed Oct 12, 2023
1 parent fe568db commit 42040c3
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
- [[PR177]](https://github.com/lanl/singularity-eos/pull/177) added EOSPAC vector functions

### Changed (changing behavior/API/variables/...)
- [[PR310]](https://github.com/lanl/singularity-eos/pull/310) Speed up and clean up tests
- [[PR295]](https://github.com/lanl/singularity-eos/pull/295) Add fast logs to singularity-eos
- [[PR246]](https://github.com/lanl/singularity-eos/pull/246) Update CMake with upstream changes
- [[PR223]](https://github.com/lanl/singularity-eos/pull/223) Update ports-of-call and add portable error handling
Expand Down
2 changes: 1 addition & 1 deletion test/eos_unit_test_helpers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ inline void array_compare(int num, X &&x, Y &&y, Z &&z, ZT &&ztrue, XN xname, YN
}
}

template<typename E1, typename E2>
template <typename E1, typename E2>
inline void compare_two_eoss(const E1 &&test_e, const E2 &&ref_e) {
// compare all individual member functions with 1 as inputs,
// this function is meant to catch mis-implementations of
Expand Down
4 changes: 2 additions & 2 deletions test/profile_eos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ inline double get_duration(Function function) {
TODO(JMM): Only profiles Pressure call
and does not accept lambdas.
*/
template<typename EOS>
template <typename EOS>
inline void get_timing(int ncycles, const ivec &ncells_1d, const double rho_min,
const double rho_max, const double T_min, const double T_max,
const std::string &name, EOS &eos_h) {
Expand Down Expand Up @@ -221,7 +221,7 @@ int main(int argc, char *argv[]) {
<< "Beginning profiling..." << std::endl;

constexpr Real Cv = 1e7 * 0.716; // specific heat in ergs/(g K)
constexpr Real gm1 = 0.4; // gamma - 1
constexpr Real gm1 = 0.4; // gamma - 1
auto eos = singularity::IdealGas(gm1, Cv);
get_timing(ncycles, ncells_1d, RHO_MIN, RHO_MAX, T_MIN, T_MAX, "IdealGas", eos);

Expand Down
3 changes: 1 addition & 2 deletions test/test_eos_modifiers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@

#include <test/eos_unit_test_helpers.hpp>

using singularity::BilinearRampEOS;
using singularity::EOS;
using singularity::IdealGas;
using singularity::ScaledEOS;
using singularity::ShiftedEOS;
using singularity::BilinearRampEOS;

namespace EOSBuilder = singularity::EOSBuilder;
namespace thermalqs = singularity::thermalqs;
Expand Down Expand Up @@ -274,4 +274,3 @@ SCENARIO("EOS Unit System", "[EOSBuilder][UnitSystem][IdealGas]") {
}
}
}

2 changes: 1 addition & 1 deletion test/test_eos_noble_abel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
#include <singularity-eos/eos/eos.hpp>
#include <test/eos_unit_test_helpers.hpp>

using singularity::NobleAbel;
using singularity::IdealGas;
using singularity::NobleAbel;
using EOS = singularity::Variant<IdealGas, NobleAbel>;

SCENARIO("NobleAbel1", "[NobleAbel][NobleAbel1]") {
Expand Down
2 changes: 1 addition & 1 deletion test/test_eos_stiff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
#include <singularity-eos/eos/eos.hpp>
#include <test/eos_unit_test_helpers.hpp>

using singularity::StiffGas;
using singularity::IdealGas;
using singularity::StiffGas;
using EOS = singularity::Variant<IdealGas, StiffGas>;

SCENARIO("StiffGas1", "[StiffGas][StiffGas1]") {
Expand Down

0 comments on commit 42040c3

Please sign in to comment.