57template <
typename TData>
61 static std::shared_ptr<CFLVelocityCFEOp<TData>>
Create(
63 const std::vector<std::string> &components,
64 const std::string &execStr =
"")
66 auto session = expansionList->GetSession();
69 if (
session->DefinesEquationOfState())
77 "No EquationOfState section defined in session file");
80 std::string execStr0 =
89 const std::string requestedKey =
name + EoSName + execStr0;
92 MultiRegions::GetOperatorFactory<TData>();
96 std::stringstream msg;
97 msg <<
"No such operator: " << requestedKey << std::endl;
102 return std::static_pointer_cast<CFLVelocityCFEOp<TData>>(
106 static inline const std::string
name =
"CFLVelocityCFE";
122 const std::vector<std::string> &components)
123 : MultiRegions::
Operator<TData>(expansionList, components)
#define NEKERROR(type, msg)
Assert Level 0 – Fundamental assert which is used whether in FULLDEBUG, DEBUG or OPT compilation mode...
Whole-field operator base class and factory machinery shared by every operator family in the MultiReg...
LibUtilities::SessionReaderSharedPtr session
Convert conserved variables to the wave speeds the Courant estimate needs.
static std::shared_ptr< CFLVelocityCFEOp< TData > > Create(const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > &components, const std::string &execStr="")
virtual void v_Apply(LibUtilities::Field< TData, FieldState::Phys > &in, LibUtilities::Field< TData, FieldState::Phys > &out)=0
void operator()(LibUtilities::Field< TData, FieldState::Phys > &in, LibUtilities::Field< TData, FieldState::Phys > &out)
CFLVelocityCFEOp(const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > &components)
void Apply(LibUtilities::Field< TData, FieldState::Phys > &in, LibUtilities::Field< TData, FieldState::Phys > &out)
~CFLVelocityCFEOp() override=default
static const std::string name
A Field represents expansion data to be operated on.
bool ModuleExists(tKey idKey)
Checks if a particular module is available.
tBasePtr CreateInstance(tKey idKey, tParam... args)
Create an instance of the class referred to by idKey.
void PrintAvailableClasses(std::ostream &pOut=std::cout)
Prints the available classes to stdout.
Common base class of the operator family interfaces: holds the expansion list, component names and da...
std::shared_ptr< ExpList > ExpListSharedPtr
Shared pointer to an ExpList object.
std::string ToUpperCopy(std::string str)