MPI-AMRVAC  3.1
The MPI - Adaptive Mesh Refinement - Versatile Advection Code (development version)
Functions/Subroutines | Variables
mod_small_values Module Reference

Module for handling problematic values in simulations, such as negative pressures. More...

Functions/Subroutines

subroutine, public small_values_error (wprim, x, ixIL, ixOL, w_flag, subname)
 
subroutine, public small_values_average (ixIL, ixOL, w, x, w_flag, windex)
 

Variables

character(len=20), public small_values_method = "error"
 How to handle small values. More...
 
integer, public small_values_daverage = 1
 Average over this many cells in each direction. More...
 
logical, public trace_small_values =.false.
 trace small values in the source file using traceback flag of compiler More...
 
logical, dimension(:), allocatable, public small_values_fix_iw
 Whether to apply small value fixes to certain variables. More...
 

Detailed Description

Module for handling problematic values in simulations, such as negative pressures.

Function/Subroutine Documentation

◆ small_values_average()

subroutine, public mod_small_values::small_values_average ( integer, intent(in)  ixI,
integer, intent(in)  L,
integer, intent(in)  ixO,
  L,
double precision, dimension(ixi^s, 1:nw), intent(inout)  w,
double precision, dimension(ixi^s, 1:ndim), intent(in)  x,
logical, dimension(ixi^s,1:nw), intent(in)  w_flag,
integer, intent(in), optional  windex 
)

Definition at line 57 of file mod_small_values.t.

◆ small_values_error()

subroutine, public mod_small_values::small_values_error ( double precision, dimension(ixi^s, 1:nw), intent(in)  wprim,
double precision, dimension(ixi^s, 1:ndim), intent(in)  x,
integer, intent(in)  ixI,
integer, intent(in)  L,
integer, intent(in)  ixO,
  L,
logical, dimension(ixi^s,1:nw), intent(in)  w_flag,
character(len=*), intent(in)  subname 
)

Definition at line 25 of file mod_small_values.t.

Variable Documentation

◆ small_values_daverage

integer, public mod_small_values::small_values_daverage = 1

Average over this many cells in each direction.

Definition at line 12 of file mod_small_values.t.

◆ small_values_fix_iw

logical, dimension(:), allocatable, public mod_small_values::small_values_fix_iw

Whether to apply small value fixes to certain variables.

Definition at line 18 of file mod_small_values.t.

◆ small_values_method

character(len=20), public mod_small_values::small_values_method = "error"

How to handle small values.

Definition at line 9 of file mod_small_values.t.

◆ trace_small_values

logical, public mod_small_values::trace_small_values =.false.

trace small values in the source file using traceback flag of compiler

Definition at line 15 of file mod_small_values.t.