ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_ShocDriver.cpp File Reference
#include "ERF_ShocDriver.H"
#include "ERF_ShocImplicit.H"
#include "ERF_IndexDefines.H"
#include "ERF_LengthScaleCellSize.H"
#include <AMReX_BLProfiler.H>
#include <AMReX_Gpu.H>
#include <algorithm>
#include <cstring>
#include <iomanip>
#include <limits>
#include <sstream>
#include <vector>
Include dependency graph for ERF_ShocDriver.cpp:

Classes

struct  erf_detail_ShocDriver::ShocBadColumnReport
 

Namespaces

 erf_detail_ShocDriver
 

Functions

bool shoc_boxarray_spans_full_height (const BoxArray &ba, const Box &domain)
 
template<typename Fab >
FArrayBox erf_detail_ShocDriver::copy_fab_to_host (const Fab &src)
 
void erf_detail_ShocDriver::print_shoc_debug_settings_once (const ShocRuntimeOptions &opts)
 
void erf_detail_ShocDriver::warn_if_shoc_debug_overrides_active_once (const ShocRuntimeOptions &opts)
 
void erf_detail_ShocDriver::require_full_height_shoc_boxes (const BoxArray &ba, const Box &domain)
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE Real erf_detail_ShocDriver::weighted_linear_interp (Real x0, Real x1, Real y0, Real y1, Real x)
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE int erf_detail_ShocDriver::face_neighbor_cell (int idx, int domlo, int domhi, bool periodic)
 
void erf_detail_ShocDriver::seed_carried_turbulence_impl (Box const &xy_box, ShocColumnLayout layout, Array4< const Real > const &rho_host, Array4< const Real > const &carried, Array4< const Real > const &host_diff, Array4< Real > const &tk, Array4< Real > const &tkh, bool prev_turb_valid)
 
void erf_detail_ShocDriver::store_carried_turbulence_impl (Box const &xy_box, ShocColumnLayout layout, Array4< Real > const &carried, Array4< const Real > const &tk, Array4< const Real > const &tkh)
 
void erf_detail_ShocDriver::seed_carried_buoyancy_flux_impl (Box const &xy_box, ShocColumnLayout layout, Array4< const Real > const &carried, Array4< Real > const &wthv_sec)
 
void erf_detail_ShocDriver::store_carried_buoyancy_flux_impl (Box const &xy_box, ShocColumnLayout layout, Array4< Real > const &carried, Array4< const Real > const &wthv_sec)
 
void erf_detail_ShocDriver::sync_face_multifab_impl (MultiFab &mf, const Geometry &geom)
 
void erf_detail_ShocDriver::apply_state_update_cons_impl (MultiFab &cons, const MultiFab &theta_tend_cc, const MultiFab &qv_tend_cc, const MultiFab &qc_tend_cc, const MultiFab &qi_tend_cc, const MultiFab &tke_tend_cc, int qv_comp, int qc_comp, int qi_comp, const ShocRuntimeOptions &opts, double dt_d)
 
void erf_detail_ShocDriver::apply_state_update_face_velocity_impl (MultiFab &vel, const MultiFab &vel_tend, double dt_d)
 

Variables

constexpr int erf_detail_ShocDriver::k_shoc_vertical_diff_comp = EddyDiff::Mom_v
 
constexpr int erf_detail_ShocDriver::k_shoc_vertical_diff_count = EddyDiff::Q_v - EddyDiff::Mom_v + 1
 

Function Documentation

◆ shoc_boxarray_spans_full_height()

bool shoc_boxarray_spans_full_height ( const BoxArray &  ba,
const Box &  domain 
)
21 {
22  const int dom_klo = domain.smallEnd(2);
23  const int dom_khi = domain.bigEnd(2);
24  for (int ibox = 0; ibox < ba.size(); ++ibox) {
25  const Box& bx = ba[ibox];
26  if (bx.smallEnd(2) != dom_klo || bx.bigEnd(2) != dom_khi) {
27  return false;
28  }
29  }
30  return true;
31 }

Referenced by erf_detail_ShocDriver::require_full_height_shoc_boxes().

Here is the caller graph for this function: