Skip to content

Commit

Permalink
changes to set up coupling with AMR-Wind
Browse files Browse the repository at this point in the history
  • Loading branch information
mukul1992 committed Dec 21, 2023
1 parent 6ccdc40 commit 767100d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Source/ERF.H
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,10 @@ public:
// Advance a block specified number of time steps
void Evolve_MB (int MBstep, int max_block_step);

// get the current time values
amrex::Real get_t_old() {return t_old[0];}
amrex::Real get_t_new() {return t_new[0];}

// Set parmparse prefix for MultiBlock
void SetParmParsePrefix (std::string name) { pp_prefix = name; }

Expand Down
6 changes: 4 additions & 2 deletions Source/ERF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -462,15 +462,15 @@ ERF::InitData ()

const Real time = start_time;
InitFromScratch(time);

/*
#ifdef ERF_USE_MULTIBLOCK
// 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

*/
if ( (init_type == "ideal" || init_type == "input_sounding") && solverChoice.use_terrain) {
amrex::Abort("We do not currently support init_type = ideal or input_sounding with terrain");
}
Expand Down Expand Up @@ -1584,12 +1584,14 @@ ERF::Evolve_MB (int MBstep, int max_block_step)
int iteration = 1;
timeStep(lev, cur_time, iteration);

/*
// 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);
}
*/

cur_time += dt[0];

Expand Down

0 comments on commit 767100d

Please sign in to comment.