Skip to content

Commit

Permalink
final comment from Daniel
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahm-LANL committed Nov 29, 2023
1 parent b04303d commit b3d40b3
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions singularity-eos/eos/eos_builder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,6 @@ constexpr bool is_modifiable(const U &u, const Variant<Ts...> &var) {
return IsModifiable<Mod, U, Ts...>::value;
}

// Modifies the eos contained in the var object with the modifier Mod,
// assuming such modification is possible, i.e., Mod<T> is in the
// variant, for the underlying type T. If this modification is not
// possible, returns the unmodified EOS. Args are the additional
// arguments to the modifier's constructor.
// Intended usage:
//
// eos = Modify<Modifier>(eos, args);
//
// For example:
//
// EOS eos = IdealGas(gm1, Cv);
// if (shifted) {
// eos = Modify<ShifteEOS>(eos, shift);
// }
template <template <class> typename Mod, typename... Ts, typename... Args>
Variant<Ts...> Modify(const Variant<Ts...> &var, Args &&...args) {
return var.template Modify<Mod>(std::forward<Args>(args)...);
Expand Down

0 comments on commit b3d40b3

Please sign in to comment.