Skip to content

Commit

Permalink
use new compile time ifndef to comment out code when coupling with an…
Browse files Browse the repository at this point in the history
… external class
  • Loading branch information
mukul1992 committed Feb 9, 2024
1 parent e1dadce commit f4b2eae
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Source/ERF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -482,15 +482,17 @@ ERF::InitData ()

const Real time = start_time;
InitFromScratch(time);
/*

#ifdef ERF_USE_MULTIBLOCK
#ifndef ERF_MB_EXTERN // enter only if multiblock does not involve an external class
// Multiblock: hook to set BL & comms once ba/dm are known
if(domain_p[0].bigEnd(0) < 500 ) {
m_mbc->SetBoxLists();
m_mbc->SetBlockCommMetaData();
}
#endif
*/
#endif

if (solverChoice.use_terrain) {
if (init_type == "ideal") {
amrex::Abort("We do not currently support init_type = ideal with terrain");
Expand Down Expand Up @@ -1623,14 +1625,14 @@ ERF::Evolve_MB (int MBstep, int max_block_step)
int iteration = 1;
timeStep(lev, cur_time, iteration);

/*
#ifndef ERF_MB_EXTERN
// DEBUG
// Multiblock: hook for erf2 to fill from erf1
if(domain_p[0].bigEnd(0) < 500) {
for (int var_idx = 0; var_idx < Vars::NumTypes; ++var_idx)
m_mbc->FillPatchBlocks(var_idx,var_idx);
}
*/
#endif

cur_time += dt[0];

Expand Down

0 comments on commit f4b2eae

Please sign in to comment.