REMORA
Regional Modeling of Oceans Refined Adaptively
Loading...
Searching...
No Matches
BdyVars Namespace Reference

These are only for the variables read in from netcdf boundary condition files. More...

Functions

int cons (int icomp) noexcept
 
int ubar (int ncons) noexcept
 
int vbar (int ncons) noexcept
 
int zeta (int ncons) noexcept
 
int NumTypes (int ncons) noexcept
 

Variables

static constexpr int null = -1
 
static constexpr int u = 0
 
static constexpr int v = 1
 
static constexpr int t = 2
 cons component Temp_comp
 
static constexpr int s = 3
 cons component Salt_comp
 

Detailed Description

These are only for the variables read in from netcdf boundary condition files.

The cell-centered tracers occupy a contiguous block of slots starting at t, laid out in the same order as the components of the cons MultiFab. So slot t is temp, slot t+1 is salt, and slot t+n is cons component n for every additional scalar (passive tracers, biology tracers). Use cons(icomp) rather than hardcoding this, and note that the logic in fill_from_bdyfiles relies on the block being contiguous and in component order.

Like BCVars, everything above the tracer block is a function of ncons rather than a compile-time constant. With ncons == 2 these reduce to the historical fixed values (ubar 4, vbar 5, zeta 6, NumTypes 7).

Function Documentation

◆ cons()

int BdyVars::cons ( int  icomp)
inlinenoexcept

◆ NumTypes()

int BdyVars::NumTypes ( int  ncons)
inlinenoexcept

Definition at line 80 of file REMORA_IndexDefines.H.

Referenced by SolverChoice::init_params(), REMORA::num_bdy_vars(), and REMORA::ReadParameters().

Here is the caller graph for this function:

◆ ubar()

int BdyVars::ubar ( int  ncons)
inlinenoexcept

Definition at line 77 of file REMORA_IndexDefines.H.

Referenced by REMORA::bdy_ubar(), SolverChoice::init_params(), and REMORA::ReadParameters().

Here is the caller graph for this function:

◆ vbar()

int BdyVars::vbar ( int  ncons)
inlinenoexcept

Definition at line 78 of file REMORA_IndexDefines.H.

Referenced by REMORA::bdy_vbar(), SolverChoice::init_params(), and REMORA::ReadParameters().

Here is the caller graph for this function:

◆ zeta()

int BdyVars::zeta ( int  ncons)
inlinenoexcept

Definition at line 79 of file REMORA_IndexDefines.H.

Referenced by REMORA::bdy_zeta(), SolverChoice::init_params(), and REMORA::ReadParameters().

Here is the caller graph for this function:

Variable Documentation

◆ null

◆ s

constexpr int BdyVars::s = 3
staticconstexpr

cons component Salt_comp

Definition at line 74 of file REMORA_IndexDefines.H.

◆ t

◆ u

◆ v