MCPcopy Create free account
hub / github.com/IBAMR/IBAMR / registerTensorVariable

Method registerTensorVariable

src/IB/IBFEPostProcessor.cpp:120–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118} // registerVectorVariable
119
120void
121IBFEPostProcessor::registerTensorVariable(const std::string& var_name,
122 libMesh::FEFamily var_fe_family,
123 libMesh::Order var_fe_order,
124 TensorMeshFcnPtr var_fcn,
125 const std::vector<SystemData>& system_data,
126 void* var_fcn_ctx,
127 unsigned int var_dim)
128{
129 EquationSystems* equation_systems = d_fe_data_manager->getEquationSystems();
130 auto& system = equation_systems->add_system<System>(var_name + " reconstruction system");
131 RestartManager* restart_manager = RestartManager::getManager();
132 const bool is_from_restart = restart_manager->isFromRestart();
133 for (unsigned int i = 0; i < var_dim; ++i)
134 {
135 for (unsigned int j = 0; j < var_dim; ++j)
136 {
137 if (!is_from_restart)
138 system.add_variable(
139 var_name + "_" + std::to_string(i) + std::to_string(j), var_fe_order, var_fe_family);
140 }
141 }
142 d_tensor_var_systems.push_back(&system);
143 d_tensor_var_fcns.push_back(var_fcn);
144 d_tensor_var_system_data.push_back(system_data);
145 d_tensor_var_fcn_ctxs.push_back(var_fcn_ctx);
146 d_tensor_var_dims.push_back(var_dim);
147 d_var_systems.push_back(&system);
148 return;
149} // registerTensorVariable
150
151void
152IBFEPostProcessor::registerInterpolatedScalarEulerianVariable(

Callers 3

mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 3

isFromRestartMethod · 0.80
getEquationSystemsMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected