Template Function opensn::CreateObject

Function Documentation

template<typename T>
std::shared_ptr<T> opensn::CreateObject(const std::string &obj_type, const ParameterBlock &params)

Constructs a T from user-supplied parameters, using T::GetInputParameters() as the parameter input.

obj_type is used only to make error messages more descriptive.