| 118 | } // registerVectorVariable |
| 119 | |
| 120 | void |
| 121 | IBFEPostProcessor::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 | |
| 151 | void |
| 152 | IBFEPostProcessor::registerInterpolatedScalarEulerianVariable( |
no test coverage detected