ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
erf_actuator::ColumnCells Struct Reference

#include <ERF_ActuatorSampling.H>

Collaboration diagram for erf_actuator::ColumnCells:

Public Member Functions

ColumnCells slice (std::size_t begin, std::size_t n) const
 

Public Attributes

std::vector< int > kb
 
std::vector< int > kt
 

Detailed Description

The cells of a terrain-following or stretched level that the heights within reach of each of a set of points may lie in, over the point's own columns (column_cell_ranges): point p needs the cells kb[p] to kt[p]; kb > kt when its reach touches no node of the level.

Member Function Documentation

◆ slice()

ColumnCells erf_actuator::ColumnCells::slice ( std::size_t  begin,
std::size_t  n 
) const
inline

The ranges of n points from point begin (as a copy).

252  {
253  AMREX_ALWAYS_ASSERT_WITH_MESSAGE(begin + n <= kb.size() && kb.size() == kt.size(), "ColumnCells::slice: past the ranges");
254  ColumnCells c;
255  c.kb.assign(kb.begin() + static_cast<std::ptrdiff_t>(begin), kb.begin() + static_cast<std::ptrdiff_t>(begin + n));
256  c.kt.assign(kt.begin() + static_cast<std::ptrdiff_t>(begin), kt.begin() + static_cast<std::ptrdiff_t>(begin + n));
257  return c;
258  }
AMREX_ALWAYS_ASSERT_WITH_MESSAGE(axis >=0 &&axis< AMREX_SPACEDIM, "prob.axis must be 0, 1 or 2")
std::vector< int > kt
Definition: ERF_ActuatorSampling.H:249
std::vector< int > kb
Definition: ERF_ActuatorSampling.H:249
Here is the call graph for this function:

Member Data Documentation

◆ kb

std::vector<int> erf_actuator::ColumnCells::kb

◆ kt

std::vector<int> erf_actuator::ColumnCells::kt

The documentation for this struct was generated from the following file: