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

Method spreadLinearizedForce

src/IB/IBMethod.cpp:997–1021  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

995} // spreadForce
996
997void
998IBMethod::spreadLinearizedForce(const int f_data_idx,
999 RobinPhysBdryPatchStrategy* f_phys_bdry_op,
1000 const std::vector<Pointer<RefineSchedule<NDIM>>>& f_prolongation_scheds,
1001 const double data_time)
1002{
1003 std::vector<Pointer<LData>>*F_jac_data, *X_LE_data;
1004 bool *F_jac_needs_ghost_fill, *X_LE_needs_ghost_fill;
1005 getLinearizedForceData(&F_jac_data, &F_jac_needs_ghost_fill);
1006 getLECouplingPositionData(&X_LE_data, &X_LE_needs_ghost_fill, data_time);
1007 resetAnchorPointValues(*F_jac_data,
1008 /*coarsest_ln*/ 0,
1009 /*finest_ln*/ d_hierarchy->getFinestLevelNumber());
1010 d_l_data_manager->spread(f_data_idx,
1011 *F_jac_data,
1012 *X_LE_data,
1013 f_phys_bdry_op,
1014 f_prolongation_scheds,
1015 data_time,
1016 *F_jac_needs_ghost_fill,
1017 *X_LE_needs_ghost_fill);
1018 *F_jac_needs_ghost_fill = false;
1019 *X_LE_needs_ghost_fill = false;
1020 return;
1021} // spreadLinearizedForce
1022
1023void
1024IBMethod::constructInterpOp(Mat& J,

Callers 5

IBPCApply_positionMethod · 0.80
lagrangianSchurApplyMethod · 0.80
matApplyMethod · 0.80

Calls 2

getFinestLevelNumberMethod · 0.45
spreadMethod · 0.45

Tested by

no test coverage detected