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

Method getInterpolatedVelocity

src/IB/CIBMethod.cpp:1089–1105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1087} // setInterpolatedVelocityVector
1088
1089void
1090CIBMethod::getInterpolatedVelocity(Vec V, const double data_time, const double scale)
1091{
1092#if !defined(NDEBUG)
1093 TBOX_ASSERT(IBTK::rel_equal_eps(data_time, d_half_time));
1094#else
1095 NULL_USE(data_time);
1096#endif
1097
1098 const int struct_ln = getStructuresLevelNumber();
1099 std::vector<Pointer<LData>>* U_half_data;
1100 getVelocityData(&U_half_data, d_half_time);
1101 VecCopy((*U_half_data)[struct_ln]->getVec(), V);
1102 VecScale(V, scale);
1103
1104 return;
1105} // getInterpolatedVelocity
1106
1107void
1108CIBMethod::computeMobilityRegularization(Vec D, Vec L, const double scale)

Callers 5

applyMethod · 0.80
modifyRhsForBcsMethod · 0.80
solveSystemMethod · 0.80
PCApply_SaddlePointMethod · 0.80
MatVecMult_KMInvMethod · 0.80

Calls 2

rel_equal_epsFunction · 0.85
getVecMethod · 0.80

Tested by

no test coverage detected