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

Method getConstraintForce

src/IB/CIBMethod.cpp:983–997  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

981} // setConstraintForce
982
983void
984CIBMethod::getConstraintForce(Vec* L, const double data_time)
985{
986#if !defined(NDEBUG)
987 TBOX_ASSERT(IBTK::rel_equal_eps(data_time, d_current_time) || IBTK::rel_equal_eps(data_time, d_new_time));
988#else
989 NULL_USE(data_time);
990#endif
991 const int struct_ln = getStructuresLevelNumber();
992 Pointer<LData> ptr_lagmultpr = d_l_data_manager->getLData("lambda", struct_ln);
993 Vec lambda = ptr_lagmultpr->getVec();
994 *L = lambda;
995
996 return;
997} // getConstraintForce
998
999void
1000CIBMethod::getFreeRigidVelocities(Vec* U, const double data_time)

Callers 2

initializeSolverStateMethod · 0.80
solveSystemMethod · 0.80

Calls 3

rel_equal_epsFunction · 0.85
getLDataMethod · 0.80
getVecMethod · 0.80

Tested by

no test coverage detected