MPI-AMRVAC  2.0
The MPI - Adaptive Mesh Refinement - Versatile Advection Code
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 (w, x, ixIL, ixOL, w_flag, subname)
 
subroutine, public small_values_average (ixIL, ixOL, w, x, w_flag)
 

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...
 

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,
integer, dimension(ixi^s), intent(in)  w_flag 
)

Definition at line 46 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)  w,
double precision, dimension(ixi^s, 1:ndim), intent(in)  x,
integer, intent(in)  ixI,
integer, intent(in)  L,
integer, intent(in)  ixO,
  L,
integer, dimension(ixi^s), intent(in)  w_flag,
character(len=*), intent(in)  subname 
)

Definition at line 20 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_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.