B:BD[
9.1274] → [
3.258:949]
const int timereffact = use_subcycling_wip ? 2 : 1;
if (level == 0) {
// We are creating the coarsest level
leveldata.iteration = 0;
leveldata.delta_iteration = leveldata.coarse_delta_iteration;
leveldata.time = 0.0;
leveldata.delta_time = 1.0;
} else {
// We are creating a new refined level
auto &coarseleveldata = ghext->leveldata.at(level - 1);
leveldata.iteration = coarseleveldata.iteration;
assert(coarseleveldata.delta_iteration % timereffact == 0);
leveldata.delta_iteration = coarseleveldata.delta_iteration / timereffact;
leveldata.time = coarseleveldata.time;
leveldata.delta_time = coarseleveldata.delta_time / timereffact;
if (use_subcycling_wip) {
const int timereffact = use_subcycling_wip ? 2 : 1;
if (level == 0) {
// We are creating the coarsest level
leveldata.is_subcycling_level = false; // unused
leveldata.iteration = 0;
leveldata.delta_iteration = leveldata.coarse_delta_iteration;
leveldata.time = 0.0;
leveldata.delta_time = 1.0;
} else {
// We are creating a new refined level
auto &coarseleveldata = ghext->leveldata.at(level - 1);
leveldata.iteration = coarseleveldata.iteration;
assert(coarseleveldata.delta_iteration % timereffact == 0);
leveldata.delta_iteration = coarseleveldata.delta_iteration / timereffact;
leveldata.time = coarseleveldata.time;
leveldata.delta_time = coarseleveldata.delta_time / timereffact;
}