libMesh
Loading...
Searching...
No Matches
Functions
femparameters.C File Reference

Go to the source code of this file.

Functions

std::unique_ptr< FunctionBase< Number > > new_function_base (const std::string &func_type, const std::string &func_value)
 

Function Documentation

◆ new_function_base()

std::unique_ptr< FunctionBase< Number > > new_function_base ( const std::string &  func_type,
const std::string &  func_value 
)

Definition at line 142 of file femparameters.C.

144{
145 if (func_type == "parsed")
146 return std::make_unique<ParsedFunction<Number>>(func_value);
147 else if (func_type == "zero")
148 return std::make_unique<ZeroFunction<Number>>();
149 else
150 libmesh_not_implemented();
151
152 return std::unique_ptr<FunctionBase<Number>>();
153}

Referenced by FEMParameters::read().