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

Method computeLagrangianFluidSource

src/IB/IBMethod.cpp:1053–1066  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1051} // getInterpOperator
1052
1053void
1054IBMethod::computeLagrangianFluidSource(const double data_time)
1055{
1056 if (!d_ib_source_fcn) return;
1057 const int coarsest_ln = 0;
1058 const int finest_ln = d_hierarchy->getFinestLevelNumber();
1059 for (int ln = coarsest_ln; ln <= finest_ln; ++ln)
1060 {
1061 if (d_n_src[ln] == 0) continue;
1062 std::fill(d_Q_src[ln].begin(), d_Q_src[ln].end(), 0.0);
1063 d_ib_source_fcn->computeSourceStrengths(d_Q_src[ln], d_hierarchy, ln, data_time, d_l_data_manager);
1064 }
1065 return;
1066} // computeLagrangianFluidSource
1067
1068void
1069IBMethod::spreadFluidSource(const int q_data_idx,

Callers 1

computeFluidSourcesMethod · 0.45

Calls 5

fillFunction · 0.85
getFinestLevelNumberMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected