4 Vector<MultiFab>& S_old,
5 Vector<MultiFab>& S_new,
6 Vector<MultiFab>& S_data,
7 Vector<MultiFab>& S_scratch,
8 const Real old_step_time,
9 const Real old_stage_time,
10 const Real new_stage_time,
16 Real slow_dt = new_stage_time - old_step_time;
18 if (verbose) amrex::Print() <<
"Time integration of scalars at level " << level
19 << std::setprecision(timeprecision)
20 <<
" from " << old_step_time <<
" to " << new_stage_time
21 <<
" with dt = " << slow_dt
22 <<
" using RHS created at " << old_stage_time << std::endl;
24 #if defined(ERF_USE_NETCDF)
25 bool moist_set_rhs =
false;
26 if ( solverChoice.use_real_bcs && (level==0) && (real_set_width > 0) &&
27 (solverChoice.moisture_type != MoistureType::None) )
36 YAFluxRegister* fr_as_crse =
nullptr;
37 YAFluxRegister* fr_as_fine =
nullptr;
38 if (solverChoice.coupling_type == CouplingType::TwoWay && finest_level > 0)
40 if (level < finest_level) {
41 fr_as_crse = getAdvFluxReg(level+1);
44 fr_as_fine = getAdvFluxReg(level);
49 (solverChoice.terrain_type == TerrainType::MovingFittedMesh) ? (detJ_cc_new[level].get()) : (detJ_cc[level].get());
51 erf_slow_rhs_post(level, finest_level, nrk, slow_dt, micro->Get_Qstate_Moist_Size(),
52 S_rhs, S_old, S_new, S_data, S_prim, S_scratch,
53 xvel_new, yvel_new, zvel_new, cc_src, SmnSmn, eddyDiffs,
54 Hfx1, Hfx2, Hfx3, Q1fx1, Q1fx2, Q1fx3, Q2fx3, Diss,
55 fine_geom, solverChoice, m_SurfaceLayer, domain_bcs_type_d, domain_bcs_type,
56 z_phys_nd[level], z_phys_cc[level], ax[level], ay[level], az[level],
57 detJ_cc[level], new_detJ, stretched_dz_d[level], mapfac[level], EBFactory(level),
58 #
if defined(ERF_USE_NETCDF)
59 moist_set_rhs, bdy_time_interval, start_bdy_time, new_stage_time,
60 real_width, real_set_width,
61 bdy_data_xlo, bdy_data_xhi, bdy_data_ylo, bdy_data_yhi,
63 fr_as_crse, fr_as_fine);
68 fast_only=
false, vel_and_mom_synced=
false);
void erf_slow_rhs_post(int level, int finest_level, int nrk, Real dt, int n_qstate, Vector< MultiFab > &S_rhs, Vector< MultiFab > &S_old, Vector< MultiFab > &S_new, Vector< MultiFab > &S_data, const MultiFab &S_prim, Vector< MultiFab > &S_scratch, const MultiFab &xvel, const MultiFab &yvel, const MultiFab &, const MultiFab &source, const MultiFab *SmnSmn, const MultiFab *eddyDiffs, MultiFab *Hfx1, MultiFab *Hfx2, MultiFab *Hfx3, MultiFab *Q1fx1, MultiFab *Q1fx2, MultiFab *Q1fx3, MultiFab *Q2fx3, MultiFab *Diss, const Geometry geom, const SolverChoice &solverChoice, std::unique_ptr< SurfaceLayer > &SurfLayer, const Gpu::DeviceVector< BCRec > &domain_bcs_type_d, const Vector< BCRec > &domain_bcs_type_h, std::unique_ptr< MultiFab > &z_phys_nd, std::unique_ptr< MultiFab > &z_phys_cc, std::unique_ptr< MultiFab > &ax, std::unique_ptr< MultiFab > &ay, std::unique_ptr< MultiFab > &az, std::unique_ptr< MultiFab > &detJ, MultiFab *detJ_new, Gpu::DeviceVector< Real > &stretched_dz_d, Vector< std::unique_ptr< MultiFab >> &mapfac, amrex::EBFArrayBoxFactory const &ebfact, YAFluxRegister *fr_as_crse, YAFluxRegister *fr_as_fine)
Definition: ERF_SlowRhsPost.cpp:45
auto slow_rhs_fun_post
Definition: ERF_TI_slow_rhs_post.H:3
auto apply_bcs
Definition: ERF_TI_utils.H:71
@ cons
Definition: ERF_IndexDefines.H:158
@ xmom
Definition: ERF_IndexDefines.H:159