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

Method apply_project_tensor_callback

src/complex_fluids/CFINSForcing.cpp:948–960  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

946} // apply_gradient_detector_callback
947
948void
949CFINSForcing::apply_project_tensor_callback(const double current_time,
950 const double /*new_time*/,
951 const int /*cycle_num*/,
952 void* ctx)
953{
954 auto object = static_cast<CFINSForcing*>(ctx);
955 auto var_db = VariableDatabase<NDIM>::getDatabase();
956 const int C_idx = var_db->mapVariableAndContextToIndex(object->getVariable(),
957 object->getAdvDiffHierarchyIntegrator()->getNewContext());
958 object->projectTensor(C_idx, object->getVariable(), current_time, false /*initial_time*/, false /*extended_box*/);
959 return;
960} // apply_project_tensor_callback
961} // namespace IBAMR

Callers

nothing calls this directly

Calls 4

getNewContextMethod · 0.80
projectTensorMethod · 0.80
getVariableMethod · 0.45

Tested by

no test coverage detected