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

Method setRefineAndCoarsenOperators

src/adv_diff/AdvDiffHierarchyIntegrator.cpp:768–782  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

766}
767
768void
769AdvDiffHierarchyIntegrator::setRefineAndCoarsenOperators(Pointer<CellVariable<NDIM, double>> Q_var,
770 std::string Q_refine_type,
771 std::string Q_coarsen_type)
772{
773#if !defined(NDEBUG)
774 TBOX_ASSERT(std::find(d_Q_var.begin(), d_Q_var.end(), Q_var) != d_Q_var.end());
775#endif
776 if (d_hierarchy_is_initialized)
777 TBOX_WARNING(d_object_name +
778 "::setRefineAndCoarsenOperators(): Integrator has already been initialized. These options will "
779 "have no effect.\n");
780 d_Q_refine_map[Q_var] = std::move(Q_refine_type);
781 d_Q_coarsen_map[Q_var] = std::move(Q_coarsen_type);
782}
783
784void
785AdvDiffHierarchyIntegrator::initializeHierarchyIntegrator(Pointer<PatchHierarchy<NDIM>> hierarchy,

Callers 1

mainFunction · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected