Hermes-3
latest
Contents
Introduction
Getting started
Examples
Tests
Tokamak axisymmetric transport
Tokamak turbulence
Code structure
Components
Numerical methods
Using the detachment controller
Hermes-3
File hermes_utils.hxx
Edit on GitHub
File hermes_utils.hxx
Defines
HERMES_UTILS_H
Functions
inline
BoutReal
floor
(
BoutReal
value
,
BoutReal
min
)
template
<
typename
T
,
typename
=
bout
::
utils
::
EnableIfField
<
T
>
>
inline
T
clamp
(
const
T
&
var
,
BoutReal
lo
,
BoutReal
hi
,
const
std
::
string
&
rgn
=
"RGN_ALL"
)
template
<
typename
T
,
typename
=
bout
::
utils
::
EnableIfField
<
T
>
>
Ind3D
indexAt
(
const
T
&
f
,
int
x
,
int
y
,
int
z
)
Read the Docs
v: latest
Versions
latest
stable
turbulence-docs
manual-updates
low-n-issues
Downloads
On Read the Docs
Project Home
Builds