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 <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:

Functions

bool shoc_boxarray_spans_full_height (const BoxArray &ba, const Box &domain)
 

Function Documentation

◆ shoc_boxarray_spans_full_height()

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