MPI-AMRVAC 3.1
The MPI - Adaptive Mesh Refinement - Versatile Advection Code (development version)
Loading...
Searching...
No Matches
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.
 
integer, public small_values_daverage = 1
 Average over this many cells in each direction.
 
logical, public trace_small_values =.false.
 trace small values in the source file using traceback flag of compiler
 
logical, dimension(:), allocatable, public small_values_fix_iw
 Whether to apply small value fixes to certain variables.
 

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.