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

The land mask of one box, for a device kernel. Captured by value. More...

#include <ERF_SEBLandMask.H>

Collaboration diagram for SEBLandMaskView:

Public Member Functions

AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE bool water (int i, int j) const noexcept
 True when the balance does not run on column (i, j). More...
 

Public Attributes

bool on = false
 
amrex::Array4< const int > arr
 

Detailed Description

The land mask of one box, for a device kernel. Captured by value.

With no mask (on == false) no column is water.

Member Function Documentation

◆ water()

AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE bool SEBLandMaskView::water ( int  i,
int  j 
) const
inlinenoexcept

True when the balance does not run on column (i, j).

35 { return on && arr(i, j, 0) == 0; }
amrex::Array4< const int > arr
Definition: ERF_SEBLandMask.H:31
bool on
Definition: ERF_SEBLandMask.H:30

Referenced by TwoStreamRadiation::advance(), ForceRestoreSnow::apply_albedo(), seb_average_down_land(), seb_fill_from_coarse_over_land(), seb_init_skin_from_file(), seb_init_soil_moisture_from_file(), ForceRestoreSnow::step(), and ForceRestoreHydrology::step().

Here is the caller graph for this function:

Member Data Documentation

◆ arr

amrex::Array4<const int> SEBLandMaskView::arr

Referenced by seb_land_mask_view(), and water().

◆ on

bool SEBLandMaskView::on = false

Referenced by seb_land_mask_view(), and water().


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