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

Method initializeLevelData

src/IB/IBMethod.cpp:1559–1578  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1557} // endDataRedistribution
1558
1559void
1560IBMethod::initializeLevelData(Pointer<BasePatchHierarchy<NDIM>> hierarchy,
1561 int level_number,
1562 double init_data_time,
1563 bool can_be_refined,
1564 bool initial_time,
1565 Pointer<BasePatchLevel<NDIM>> old_level,
1566 bool allocate_data)
1567{
1568 const int finest_hier_level = hierarchy->getFinestLevelNumber();
1569 d_l_data_manager->setPatchHierarchy(hierarchy);
1570 d_l_data_manager->setPatchLevels(0, finest_hier_level);
1571 d_l_data_manager->initializeLevelData(
1572 hierarchy, level_number, init_data_time, can_be_refined, initial_time, old_level, allocate_data);
1573 if (initial_time && d_l_data_manager->levelContainsLagrangianData(level_number))
1574 {
1575 d_l_data_manager->createLData("F", level_number, NDIM, /*manage_data*/ true);
1576 }
1577 return;
1578} // initializeLevelData
1579
1580void
1581IBMethod::resetHierarchyConfiguration(Pointer<BasePatchHierarchy<NDIM>> hierarchy, int coarsest_level, int finest_level)

Calls 5

setPatchLevelsMethod · 0.80
createLDataMethod · 0.80
getFinestLevelNumberMethod · 0.45
setPatchHierarchyMethod · 0.45

Tested by

no test coverage detected