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

Method spreadForce

src/IB/IBMethod.cpp:971–995  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

969} // getLagrangianForceJacobian
970
971void
972IBMethod::spreadForce(const int f_data_idx,
973 RobinPhysBdryPatchStrategy* f_phys_bdry_op,
974 const std::vector<Pointer<RefineSchedule<NDIM>>>& f_prolongation_scheds,
975 const double data_time)
976{
977 std::vector<Pointer<LData>>*F_data, *X_LE_data;
978 bool *F_needs_ghost_fill, *X_LE_needs_ghost_fill;
979 getForceData(&F_data, &F_needs_ghost_fill, data_time);
980 getLECouplingPositionData(&X_LE_data, &X_LE_needs_ghost_fill, data_time);
981 resetAnchorPointValues(*F_data,
982 /*coarsest_ln*/ 0,
983 /*finest_ln*/ d_hierarchy->getFinestLevelNumber());
984 d_l_data_manager->spread(f_data_idx,
985 *F_data,
986 *X_LE_data,
987 f_phys_bdry_op,
988 f_prolongation_scheds,
989 data_time,
990 *F_needs_ghost_fill,
991 *X_LE_needs_ghost_fill);
992 *F_needs_ghost_fill = false;
993 *X_LE_needs_ghost_fill = false;
994 return;
995} // spreadForce
996
997void
998IBMethod::spreadLinearizedForce(const int f_data_idx,

Callers 9

applyMethod · 0.45
IBFunction_positionMethod · 0.45
IBFunction_velocityMethod · 0.45
PCApply_SaddlePointMethod · 0.45
MatVecMult_KMInvMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 2

getFinestLevelNumberMethod · 0.45
spreadMethod · 0.45

Tested by

no test coverage detected