MPI-AMRVAC  2.0
The MPI - Adaptive Mesh Refinement - Versatile Advection Code
Data Types | Functions/Subroutines | Variables
mod_global_parameters Module Reference

This module contains definitions of global parameters and variables and some generic functions/subroutines used in AMRVAC. More...

Data Types

type  fluxalloc
 

Functions/Subroutines

pure subroutine cross_product (ixIL, ixOL, a, b, axb)
 Cross product of two vectors. More...
 

Variables

character(len= *), parameter undefined = 'undefined'
 
integer npe
 The number of MPI tasks. More...
 
integer mype
 The rank of the current MPI task. More...
 
integer icomm
 The MPI communicator. More...
 
integer ierrmpi
 A global MPI error return code. More...
 
integer log_fh
 MPI file handle for logfile. More...
 
integer type_block
 MPI type for block including ghost cells and its size. More...
 
integer size_block
 
integer type_coarse_block
 MPI type for block coarsened by 2, and for its children blocks. More...
 
integer, dimension(2^d &) type_sub_block
 
integer type_block_io
 MPI type for IO: block excluding ghost cells. More...
 
integer size_block_io
 
integer type_block_io_tf
 MPI type for IO: transformed data excluding ghost cells. More...
 
integer size_block_io_tf
 
integer type_block_xc_io
 MPI type for IO: cell corner (xc) or cell center (xcc) coordinates. More...
 
integer type_block_xcc_io
 
integer type_block_wc_io
 MPI type for IO: cell corner (wc) or cell center (wcc) variables. More...
 
integer type_block_wcc_io
 
integer itag
 
integer irecv
 
integer isend
 
integer, dimension(:), allocatable recvrequest
 
integer, dimension(:), allocatable sendrequest
 
integer, dimension(:,:), allocatable recvstatus
 
integer, dimension(:,:), allocatable sendstatus
 
integer ixm
 the mesh range (within a block with ghost cells) More...
 
integer ll
 
double precision xprob
 minimum and maximum domain boundaries for each dimension More...
 
double precision l
 
integer r_ = -1
 Indices for cylindrical coordinates FOR TESTS, negative value when not used: More...
 
integer phi_ = -1
 
integer z_ = -1
 
integer, parameter ndim =^ND
 Number of spatial dimensions for grid variables. More...
 
integer ndir =ndim
 Number of spatial dimensions (components) for vector variables. More...
 
logical slab
 Cartesian geometry or not. More...
 
integer, dimension(:), allocatable ng
 number of grid blocks in domain per dimension, in array over levels More...
 
integer, dimension(:), allocatable, parameter d = 1|
 
double precision, dimension(:), allocatable dg
 extent of grid blocks in domain per dimension, in array over levels More...
 
integer domain_nx
 number of cells for each dimension in level-one mesh More...
 
integer block_nx
 number of cells for each dimension in grid block excluding ghostcells More...
 
integer, parameter ixglo
 Lower index of grid block arrays (always 1) More...
 
integer ixghi
 Upper index of grid block arrays. More...
 
integer, parameter ixgslo
 Lower index of stagger grid block arrays (always 0) More...
 
integer ixgshi
 Upper index of stagger grid block arrays. More...
 
integer nghostcells
 Number of ghost cells surrounding a grid. More...
 
integer, parameter stretch_none = 0
 No stretching. More...
 
integer, parameter stretch_uni = 1
 Unidirectional stretching from a side. More...
 
integer, parameter stretch_symm = 2
 Symmetric stretching around the center. More...
 
logical stretch_uncentered
 If true, adjust mod_geometry routines to account for grid stretching (but the flux computation will not) More...
 
logical slab_stretched
 Stretched Cartesian geometry or not. More...
 
logical, dimension(ndimstretched_dim
 True if a dimension is stretched. More...
 
integer, dimension(ndimstretch_type
 What kind of stretching is used per dimension. More...
 
double precision, dimension(ndimqstretch_baselevel
 stretch factor between cells at AMR level 1, per dimension More...
 
integer, dimension(ndimnstretchedblocks_baselevel
 (even) number of (symmetrically) stretched blocks at AMR level 1, per dimension More...
 
integer, dimension(:,:), allocatable nstretchedblocks
 (even) number of (symmetrically) stretched blocks per level and dimension More...
 
double precision xstretch
 physical extent of stretched border in symmetric stretching More...
 
double precision, dimension(:,:), allocatable qstretch
 Stretching factors and first cell size for each AMR level and dimension. More...
 
double precision, dimension(:,:), allocatable dxfirst
 
double precision, dimension(:,:), allocatable dxfirst_1mq
 
double precision, dimension(:,:), allocatable dxmid
 
integer, parameter nodehi =^ND+1
 grid hierarchy info (level and grid indices) More...
 
integer, parameter plevel_ =1
 
integer, parameter pig
 
integer, parameter d_ =plevel_+^D
 
integer, dimension(:,:), allocatable node
 
integer, dimension(:,:), allocatable node_sub
 
integer, parameter rnodehi =3*^ND
 grid location info (corner coordinates and grid spacing) More...
 
integer, parameter rpxmin0_ =0
 
integer, parameter rpxmin
 
integer, parameter rpxmax0_ =^ND
 
integer, parameter rpxmax
 
integer, parameter rpdx
 
double precision, dimension(:,:), allocatable rnode
 Corner coordinates. More...
 
double precision, dimension(:,:), allocatable rnode_sub
 
double precision, dimension(:,:), allocatable dx
 
double precision, dimension(ndimdxlevel
 
integer, parameter nsavehi =100
 Maximum number of saves that can be defined by tsave or itsave. More...
 
integer, parameter nfile = 5
 Number of output methods. More...
 
character(len=40), dimension(nfile), parameter output_names = ['log ', 'normal ', 'slice ', 'collapsed', 'analysis ']
 Names of the output methods. More...
 
logical, dimension(ndimcollapse
 If collapse(DIM) is true, generate output integrated over DIM. More...
 
double precision, dimension(nsavehi, nfiletsave
 Save output of type N on times tsave(:, N) More...
 
double precision, dimension(nfiletsavelast
 
double precision, dimension(nfiledtsave
 Repeatedly save output of type N when dtsave(N) simulation time has passed. More...
 
integer, dimension(nsavehi, nfileitsave
 Save output of type N on iterations itsave(:, N) More...
 
integer, dimension(nfileitsavelast
 
integer, dimension(nfileditsave
 Repeatedly save output of type N when ditsave(N) time steps have passed. More...
 
integer, dimension(nfileisavet
 
integer, dimension(nfileisaveit
 
integer collapselevel
 The level at which to produce line-integrated / collapsed output. More...
 
integer, dimension(1:nfilen_saves
 Number of saved files of each type. More...
 
double precision time_between_print
 to monitor timeintegration loop at given wall-clock time intervals More...
 
double precision time_bc
 accumulated wall-clock time spent on boundary conditions More...
 
integer snapshotnext
 IO: snapshot and collapsed views output numbers/labels. More...
 
integer collapsenext
 
integer, parameter filelog_ = 1
 Constant indicating log output. More...
 
integer, parameter fileout_ = 2
 Constant indicating regular output. More...
 
integer, parameter fileslice_ = 3
 Constant indicating slice output. More...
 
integer, parameter filecollapse_ = 4
 Constant indicating collapsed output. More...
 
integer, parameter fileanalysis_ = 5
 Constant indicating analysis output (see Writing a custom analysis subroutine) More...
 
integer, parameter unitstdin =5
 Unit for standard input. More...
 
integer, parameter unitterm =6
 Unit for standard output. More...
 
integer, parameter uniterr =6
 Unit for error messages. More...
 
integer, parameter unitpar =9
 
integer, parameter unitconvert =10
 
integer, parameter unitslice =11
 
integer, parameter unitsnapshot =12
 
integer, parameter unitcollapse =13
 
integer, parameter unitanalysis =14
 
integer nwauxio
 Number of auxiliary variables that are only included in output. More...
 
logical nocartesian
 IO switches for conversion. More...
 
logical, dimension(:), allocatable w_write
 
logical, dimension(:), allocatable writelevel
 
double precision, dimension(ndim, 2) writespshift
 
integer level_io
 
integer level_io_min
 
integer level_io_max
 
character(len=std_len), dimension(:), allocatable par_files
 Which par files are used as input. More...
 
character(len=std_len) base_filename
 Base file name for simulation output, which will be followed by a number. More...
 
character(len=std_len) restart_from_file
 If not 'unavailable', resume from snapshot with this base file name. More...
 
character(len=std_len) typefilelog
 Which type of log to write: 'normal', 'special', 'regression_test'. More...
 
integer snapshotini
 Resume from the snapshot with this index. More...
 
logical resume_previous_run
 If true, restart a previous run from the latest snapshot. More...
 
logical convert
 If true and restart_from_file is given, convert snapshots to other file formats. More...
 
logical autoconvert
 If true, already convert to output format during the run. More...
 
logical saveprim
 If true, convert from conservative to primitive variables in output. More...
 
character(len=std_len) convert_type
 Which format to use when converting. More...
 
character(len=std_len) collapse_type
 
double precision, dimension(:), allocatable w_convert_factor
 Conversion factors the primitive variables. More...
 
double precision length_convert_factor
 
double precision time_convert_factor
 Conversion factor for time unit. More...
 
integer saveigrid
 
double precision xload
 Stores the memory and load imbalance, used in printlog. More...
 
double precision xmemory
 
logical crash =.false.
 Save a snapshot before crash a run met unphysical values. More...
 
double precision unit_length =1.d0
 Physical scaling factor for length. More...
 
double precision unit_time =1.d0
 Physical scaling factor for time. More...
 
double precision unit_density =1.d0
 Physical scaling factor for density. More...
 
double precision unit_velocity =0.d0
 Physical scaling factor for velocity. More...
 
double precision unit_temperature =1.d0
 Physical scaling factor for temperature. More...
 
double precision unit_pressure =1.d0
 Physical scaling factor for pressure. More...
 
double precision unit_magneticfield =1.d0
 Physical scaling factor for magnetic field. More...
 
double precision unit_numberdensity =1.d0
 Physical scaling factor for number density. More...
 
double precision small_temperature
 error handling More...
 
double precision small_pressure
 
double precision small_density
 
double precision bdip =0.d0
 amplitude of background dipolar, quadrupolar, octupolar, user's field More...
 
double precision bquad =0.d0
 
double precision boct =0.d0
 
double precision busr =0.d0
 
logical check_small_values =.false.
 check and optionally fix unphysical small values (density, gas pressure) More...
 
logical small_values_use_primitive =.false.
 Use primitive variables when correcting small values. More...
 
logical, dimension(:), allocatable small_values_fix_iw
 Whether to apply small value fixes to certain variables. More...
 
logical b0field =.false.
 split magnetic field as background B0 field More...
 
logical si_unit =.false.
 Use SI units (.true.) or use cgs units (.false.) More...
 
logical phys_energy =.true.
 Solve energy equation or not. More...
 
logical solve_internal_e =.false.
 Solve polytropic process instead of solving total energy. More...
 
logical angmomfix =.false.
 Enable to strictly conserve the angular momentum (works both in cylindrical and spherical coordinates) More...
 
logical use_particles =.false.
 Use particles module or not. More...
 
integer max_blocks
 The maximum number of grid blocks in a processor. More...
 
integer, parameter nlevelshi = 20
 The maximum number of levels in the grid refinement. More...
 
integer refine_max_level
 Maximal number of AMR levels. More...
 
double precision, dimension(:), allocatable w_refine_weight
 Weights of variables used to calculate error for mesh refinement. More...
 
double precision tfixgrid
 Fix the AMR grid after this time. More...
 
integer itfixgrid
 Fix the AMR grid after this many time steps. More...
 
integer ditregrid
 Reconstruct the AMR grid once every ditregrid iteration(s) More...
 
double precision, dimension(:), allocatable amr_wavefilter
 refinement: lohner estimate wavefilter setting More...
 
integer refine_criterion
 
logical prolongprimitive
 
logical coarsenprimitive
 
double precision, dimension(:), allocatable refine_threshold
 Error tolerance for refinement decision. More...
 
double precision, dimension(:), allocatable derefine_ratio
 
logical reset_grid
 If true, rebuild the AMR grid upon restarting. More...
 
logical stagger_grid =.false.
 True for using stagger grid. More...
 
integer nbufferx
 Number of cells as buffer zone. More...
 
integer levmin
 
integer levmax
 
integer levmax_sub
 
integer iprob
 problem switch allowing different setups in same usr_mod.t More...
 
integer, dimension(3, 3) kr
 Kronecker delta tensor. More...
 
integer, dimension(3, 3, 3) lvc
 Levi-Civita tensor. More...
 
double precision dt
 
double precision, dimension(:), allocatable dt_grid
 
logical time_advance
 
double precision courantpar
 The Courant (CFL) number used for the simulation. More...
 
character(len=std_len) typecourant
 How to compute the CFL-limited time step. More...
 
double precision dtpar
 If dtpar is positive, it sets the timestep dt, otherwise courantpar is used to limit the time step based on the Courant condition. More...
 
double precision dtdiffpar
 For resistive MHD, the time step is also limited by the diffusion time: \( dt < dtdiffpar \times dx^2/eta \). More...
 
double precision global_time
 The global simulation time. More...
 
double precision time_init
 Start time for the simulation. More...
 
double precision time_max
 End time for the simulation. More...
 
double precision wall_time_max
 Ending wall time (in hours) for the simulation. More...
 
double precision dtmin
 Stop the simulation when the time step becomes smaller than this value. More...
 
logical reset_time
 If true, reset iteration count and global_time to original values, and start writing snapshots at index 0. More...
 
logical reset_it
 If true, reset iteration count to 0. More...
 
logical firstprocess
 If true, call initonegrid_usr upon restarting. More...
 
logical pass_wall_time
 If true, wall time is up, modify snapshotnext for later overwrite. More...
 
integer it
 Number of time steps taken. More...
 
integer it_max
 Stop the simulation after this many time steps have been taken. More...
 
integer it_init
 initial iteration count More...
 
integer slowsteps
 If > 1, then in the first slowsteps-1 time steps dt is reduced by a factor \( 1 - (1- step/slowsteps)^2 \). More...
 
integer istep
 Index of the sub-step in a multi-step time integrator. More...
 
integer nstep
 How many sub-steps the time integrator takes. More...
 
character(len=std_len) time_integrator
 Which time integrator to use. More...
 
character(len=std_len) typelimited
 What should be used as a basis for the limiting in TVD methods. Options are 'original', 'previous' and 'predictor'. More...
 
character(len=std_len) typesourcesplit
 How to apply dimensional splitting to the source terms, see disretization.md. More...
 
character(len=std_len), dimension(:), allocatable flux_scheme
 Which spatial discretization to use (per grid level) More...
 
character(len=std_len), dimension(:), allocatable typepred1
 The spatial dicretization for the predictor step when using a two step method. More...
 
integer, dimension(:), allocatable type_limiter
 Type of slope limiter used for reconstructing variables on cell edges. More...
 
integer, dimension(:), allocatable type_gradient_limiter
 Type of slope limiter used for computing gradients or divergences, when typegrad or typediv are set to 'limited'. More...
 
integer typelimiter
 
integer typegradlimiter
 
character(len=std_len) typeprolonglimit
 Limiter used for prolongation to refined grids and ghost cells. More...
 
character(len=std_len), dimension(:), allocatable typeentropy
 Which type of entropy fix to use with Riemann-type solvers. More...
 
character(len=std_len) typetvd
 Which type of TVD method to use. More...
 
character(len=std_len) typeboundspeed
 Which type of TVDLF method to use. More...
 
character(len=std_len) typeaverage
 
character(len=std_len) typedimsplit
 
character(len=std_len) typeaxial ='default'
 
character(len=std_len) typepoly
 
integer nxdiffusehllc
 
double precision, dimension(:), allocatable entropycoef
 
double precision tvdlfeps
 
logical, dimension(:), allocatable loglimit
 
logical, dimension(:), allocatable logflag
 
logical flathllc
 
logical flatcd
 
logical flatsh
 
logical source_split_usr
 Use split or unsplit way to add user's source terms, default: unsplit. More...
 
logical dimsplit
 
character(len=std_len) typediv
 
character(len=std_len) typegrad
 
character(len=std_len) typecurl
 
double precision cmax_global
 global fastest wave speed needed in fd scheme and glm method More...
 
double precision vmax_global
 global fastest flow speed needed in glm method More...
 
logical need_global_cmax =.false.
 need global maximal wave speed More...
 
logical need_global_vmax =.false.
 need global maximal flow speed More...
 
logical, dimension(ndimperiodb
 True for dimensions with periodic boundaries. More...
 
logical, dimension(2, ndimpoleb
 Indicates whether there is a pole at a boundary. More...
 
logical, dimension(ndimaperiodb
 True for dimensions with aperiodic boundaries. More...
 
logical save_physical_boundary
 True for save physical boundary cells in dat files. More...
 
character(len=std_len), dimension(:, :), allocatable typeboundary
 Array indicating the type of boundary condition per variable and per physical boundary. More...
 
character(len=std_len) typeghostfill ='linear'
 
character(len=std_len) prolongation_method
 
logical internalboundary
 
integer, parameter ismin
 
integer, parameter ismax
 
type(fluxalloc), dimension(:,:,:), allocatable pflux
 store flux to fix conservation More...
 
logical, dimension(:), allocatable phyboundblock
 

Detailed Description

This module contains definitions of global parameters and variables and some generic functions/subroutines used in AMRVAC.

Todo:
Move the parameters to the relevant (physics) modules

Function/Subroutine Documentation

◆ cross_product()

pure subroutine mod_global_parameters::cross_product ( integer, intent(in)  ixI,
integer, intent(in)  L,
integer, intent(in)  ixO,
  L,
double precision, dimension(ixi^s,3), intent(in)  a,
double precision, dimension(ixi^s,3), intent(in)  b,
double precision, dimension(ixi^s,3), intent(out)  axb 
)

Cross product of two vectors.

Definition at line 613 of file mod_global_parameters.t.

Variable Documentation

◆ amr_wavefilter

double precision, dimension(:), allocatable mod_global_parameters::amr_wavefilter

refinement: lohner estimate wavefilter setting

Definition at line 388 of file mod_global_parameters.t.

◆ angmomfix

logical mod_global_parameters::angmomfix =.false.

Enable to strictly conserve the angular momentum (works both in cylindrical and spherical coordinates)

Definition at line 359 of file mod_global_parameters.t.

◆ aperiodb

logical, dimension(ndim) mod_global_parameters::aperiodb

True for dimensions with aperiodic boundaries.

Definition at line 581 of file mod_global_parameters.t.

◆ autoconvert

logical mod_global_parameters::autoconvert

If true, already convert to output format during the run.

Definition at line 271 of file mod_global_parameters.t.

◆ b0field

logical mod_global_parameters::b0field =.false.

split magnetic field as background B0 field

Definition at line 346 of file mod_global_parameters.t.

◆ base_filename

character(len=std_len) mod_global_parameters::base_filename

Base file name for simulation output, which will be followed by a number.

Definition at line 252 of file mod_global_parameters.t.

◆ bdip

double precision mod_global_parameters::bdip =0.d0

amplitude of background dipolar, quadrupolar, octupolar, user's field

Definition at line 331 of file mod_global_parameters.t.

◆ block_nx

integer mod_global_parameters::block_nx

number of cells for each dimension in grid block excluding ghostcells

Definition at line 85 of file mod_global_parameters.t.

◆ boct

double precision mod_global_parameters::boct =0.d0

Definition at line 333 of file mod_global_parameters.t.

◆ bquad

double precision mod_global_parameters::bquad =0.d0

Definition at line 332 of file mod_global_parameters.t.

◆ busr

double precision mod_global_parameters::busr =0.d0

Definition at line 334 of file mod_global_parameters.t.

◆ check_small_values

logical mod_global_parameters::check_small_values =.false.

check and optionally fix unphysical small values (density, gas pressure)

Definition at line 337 of file mod_global_parameters.t.

◆ cmax_global

double precision mod_global_parameters::cmax_global

global fastest wave speed needed in fd scheme and glm method

Definition at line 561 of file mod_global_parameters.t.

◆ coarsenprimitive

logical mod_global_parameters::coarsenprimitive

Definition at line 392 of file mod_global_parameters.t.

◆ collapse

logical, dimension(ndim) mod_global_parameters::collapse

If collapse(DIM) is true, generate output integrated over DIM.

Definition at line 164 of file mod_global_parameters.t.

◆ collapse_type

character(len=std_len) mod_global_parameters::collapse_type

Definition at line 283 of file mod_global_parameters.t.

◆ collapselevel

integer mod_global_parameters::collapselevel

The level at which to produce line-integrated / collapsed output.

Definition at line 191 of file mod_global_parameters.t.

◆ collapsenext

integer mod_global_parameters::collapsenext

Definition at line 204 of file mod_global_parameters.t.

◆ convert

logical mod_global_parameters::convert

If true and restart_from_file is given, convert snapshots to other file formats.

Definition at line 268 of file mod_global_parameters.t.

◆ convert_type

character(len=std_len) mod_global_parameters::convert_type

Which format to use when converting.

Options are: tecplot, tecplotCC, vtu, vtuCC, vtuB, vtuBCC, tecplotmpi, tecplotCCmpi, vtumpi, vtuCCmpi, vtuBmpi, vtuBCCmpi, pvtumpi, pvtuCCmpi, pvtuBmpi, pvtuBCCmpi, tecline, teclinempi, onegrid

Definition at line 281 of file mod_global_parameters.t.

◆ courantpar

double precision mod_global_parameters::courantpar

The Courant (CFL) number used for the simulation.

Definition at line 430 of file mod_global_parameters.t.

◆ crash

logical mod_global_parameters::crash =.false.

Save a snapshot before crash a run met unphysical values.

Definition at line 299 of file mod_global_parameters.t.

◆ d

integer, dimension(:), allocatable, parameter mod_global_parameters::d = 1|

Definition at line 77 of file mod_global_parameters.t.

◆ d_

integer parameter mod_global_parameters::d_ =plevel_+^D

Definition at line 131 of file mod_global_parameters.t.

◆ derefine_ratio

double precision, dimension(:), allocatable mod_global_parameters::derefine_ratio

Definition at line 396 of file mod_global_parameters.t.

◆ dg

double precision, dimension(:), allocatable mod_global_parameters::dg

extent of grid blocks in domain per dimension, in array over levels

Definition at line 79 of file mod_global_parameters.t.

◆ dimsplit

logical mod_global_parameters::dimsplit

Definition at line 556 of file mod_global_parameters.t.

◆ ditregrid

integer mod_global_parameters::ditregrid

Reconstruct the AMR grid once every ditregrid iteration(s)

Definition at line 385 of file mod_global_parameters.t.

◆ ditsave

integer, dimension(nfile) mod_global_parameters::ditsave

Repeatedly save output of type N when ditsave(N) time steps have passed.

Definition at line 182 of file mod_global_parameters.t.

◆ domain_nx

integer mod_global_parameters::domain_nx

number of cells for each dimension in level-one mesh

Definition at line 82 of file mod_global_parameters.t.

◆ dt

double precision mod_global_parameters::dt

Definition at line 424 of file mod_global_parameters.t.

◆ dt_grid

double precision, dimension(:), allocatable mod_global_parameters::dt_grid

Definition at line 425 of file mod_global_parameters.t.

◆ dtdiffpar

double precision mod_global_parameters::dtdiffpar

For resistive MHD, the time step is also limited by the diffusion time: \( dt < dtdiffpar \times dx^2/eta \).

Definition at line 446 of file mod_global_parameters.t.

◆ dtmin

double precision mod_global_parameters::dtmin

Stop the simulation when the time step becomes smaller than this value.

Definition at line 461 of file mod_global_parameters.t.

◆ dtpar

double precision mod_global_parameters::dtpar

If dtpar is positive, it sets the timestep dt, otherwise courantpar is used to limit the time step based on the Courant condition.

Definition at line 442 of file mod_global_parameters.t.

◆ dtsave

double precision, dimension(nfile) mod_global_parameters::dtsave

Repeatedly save output of type N when dtsave(N) simulation time has passed.

Definition at line 173 of file mod_global_parameters.t.

◆ dx

double precision, dimension(:,:), allocatable mod_global_parameters::dx

Definition at line 148 of file mod_global_parameters.t.

◆ dxfirst

double precision, dimension(:,:), allocatable mod_global_parameters::dxfirst

Definition at line 125 of file mod_global_parameters.t.

◆ dxfirst_1mq

double precision, dimension(:,:), allocatable mod_global_parameters::dxfirst_1mq

Definition at line 125 of file mod_global_parameters.t.

◆ dxlevel

double precision, dimension(ndim) mod_global_parameters::dxlevel

Definition at line 149 of file mod_global_parameters.t.

◆ dxmid

double precision, dimension(:,:), allocatable mod_global_parameters::dxmid

Definition at line 125 of file mod_global_parameters.t.

◆ entropycoef

double precision, dimension(:), allocatable mod_global_parameters::entropycoef

Definition at line 550 of file mod_global_parameters.t.

◆ fileanalysis_

integer, parameter mod_global_parameters::fileanalysis_ = 5

Constant indicating analysis output (see Writing a custom analysis subroutine)

Definition at line 219 of file mod_global_parameters.t.

◆ filecollapse_

integer, parameter mod_global_parameters::filecollapse_ = 4

Constant indicating collapsed output.

Definition at line 216 of file mod_global_parameters.t.

◆ filelog_

integer, parameter mod_global_parameters::filelog_ = 1

Constant indicating log output.

Definition at line 207 of file mod_global_parameters.t.

◆ fileout_

integer, parameter mod_global_parameters::fileout_ = 2

Constant indicating regular output.

Definition at line 210 of file mod_global_parameters.t.

◆ fileslice_

integer, parameter mod_global_parameters::fileslice_ = 3

Constant indicating slice output.

Definition at line 213 of file mod_global_parameters.t.

◆ firstprocess

logical mod_global_parameters::firstprocess

If true, call initonegrid_usr upon restarting.

Definition at line 471 of file mod_global_parameters.t.

◆ flatcd

logical mod_global_parameters::flatcd

Definition at line 553 of file mod_global_parameters.t.

◆ flathllc

logical mod_global_parameters::flathllc

Definition at line 553 of file mod_global_parameters.t.

◆ flatsh

logical mod_global_parameters::flatsh

Definition at line 553 of file mod_global_parameters.t.

◆ flux_scheme

character(len=std_len), dimension(:), allocatable mod_global_parameters::flux_scheme

Which spatial discretization to use (per grid level)

Definition at line 513 of file mod_global_parameters.t.

◆ global_time

double precision mod_global_parameters::global_time

The global simulation time.

Definition at line 449 of file mod_global_parameters.t.

◆ icomm

integer mod_global_parameters::icomm

The MPI communicator.

Definition at line 29 of file mod_global_parameters.t.

◆ ierrmpi

integer mod_global_parameters::ierrmpi

A global MPI error return code.

Todo:
Make local

Definition at line 33 of file mod_global_parameters.t.

◆ internalboundary

logical mod_global_parameters::internalboundary

Definition at line 591 of file mod_global_parameters.t.

◆ iprob

integer mod_global_parameters::iprob

problem switch allowing different setups in same usr_mod.t

Definition at line 414 of file mod_global_parameters.t.

◆ irecv

integer mod_global_parameters::irecv

Definition at line 50 of file mod_global_parameters.t.

◆ isaveit

integer, dimension(nfile) mod_global_parameters::isaveit
Todo:
Move to amrvac.t

Definition at line 188 of file mod_global_parameters.t.

◆ isavet

integer, dimension(nfile) mod_global_parameters::isavet
Todo:
Move to amrvac.t

Definition at line 185 of file mod_global_parameters.t.

◆ isend

integer mod_global_parameters::isend

Definition at line 50 of file mod_global_parameters.t.

◆ ismax

integer, parameter mod_global_parameters::ismax

Definition at line 595 of file mod_global_parameters.t.

◆ ismin

integer, parameter mod_global_parameters::ismin

Definition at line 594 of file mod_global_parameters.t.

◆ istep

integer mod_global_parameters::istep

Index of the sub-step in a multi-step time integrator.

Definition at line 492 of file mod_global_parameters.t.

◆ it

integer mod_global_parameters::it

Number of time steps taken.

Definition at line 477 of file mod_global_parameters.t.

◆ it_init

integer mod_global_parameters::it_init

initial iteration count

Definition at line 483 of file mod_global_parameters.t.

◆ it_max

integer mod_global_parameters::it_max

Stop the simulation after this many time steps have been taken.

Definition at line 480 of file mod_global_parameters.t.

◆ itag

integer mod_global_parameters::itag

Definition at line 50 of file mod_global_parameters.t.

◆ itfixgrid

integer mod_global_parameters::itfixgrid

Fix the AMR grid after this many time steps.

Definition at line 382 of file mod_global_parameters.t.

◆ itsave

integer, dimension(nsavehi,nfile) mod_global_parameters::itsave

Save output of type N on iterations itsave(:, N)

Definition at line 176 of file mod_global_parameters.t.

◆ itsavelast

integer, dimension(nfile) mod_global_parameters::itsavelast
Todo:
remove itsavelast?

Definition at line 179 of file mod_global_parameters.t.

◆ ixghi

integer mod_global_parameters::ixghi

Upper index of grid block arrays.

Definition at line 91 of file mod_global_parameters.t.

◆ ixglo

integer, parameter mod_global_parameters::ixglo

Lower index of grid block arrays (always 1)

Definition at line 88 of file mod_global_parameters.t.

◆ ixgshi

integer mod_global_parameters::ixgshi

Upper index of stagger grid block arrays.

Definition at line 97 of file mod_global_parameters.t.

◆ ixgslo

integer, parameter mod_global_parameters::ixgslo

Lower index of stagger grid block arrays (always 0)

Definition at line 94 of file mod_global_parameters.t.

◆ ixm

integer mod_global_parameters::ixm

the mesh range (within a block with ghost cells)

Definition at line 57 of file mod_global_parameters.t.

◆ kr

integer, dimension(3,3) mod_global_parameters::kr

Kronecker delta tensor.

Definition at line 417 of file mod_global_parameters.t.

◆ l

double precision mod_global_parameters::l

Definition at line 60 of file mod_global_parameters.t.

◆ length_convert_factor

double precision mod_global_parameters::length_convert_factor

Definition at line 288 of file mod_global_parameters.t.

◆ level_io

integer mod_global_parameters::level_io

Definition at line 246 of file mod_global_parameters.t.

◆ level_io_max

integer mod_global_parameters::level_io_max

Definition at line 246 of file mod_global_parameters.t.

◆ level_io_min

integer mod_global_parameters::level_io_min

Definition at line 246 of file mod_global_parameters.t.

◆ levmax

integer mod_global_parameters::levmax

Definition at line 408 of file mod_global_parameters.t.

◆ levmax_sub

integer mod_global_parameters::levmax_sub

Definition at line 409 of file mod_global_parameters.t.

◆ levmin

integer mod_global_parameters::levmin

Definition at line 407 of file mod_global_parameters.t.

◆ ll

integer mod_global_parameters::ll

Definition at line 57 of file mod_global_parameters.t.

◆ log_fh

integer mod_global_parameters::log_fh

MPI file handle for logfile.

Definition at line 36 of file mod_global_parameters.t.

◆ logflag

logical, dimension(:), allocatable mod_global_parameters::logflag

Definition at line 552 of file mod_global_parameters.t.

◆ loglimit

logical, dimension(:), allocatable mod_global_parameters::loglimit

Definition at line 552 of file mod_global_parameters.t.

◆ lvc

integer, dimension(3,3,3) mod_global_parameters::lvc

Levi-Civita tensor.

Definition at line 420 of file mod_global_parameters.t.

◆ max_blocks

integer mod_global_parameters::max_blocks

The maximum number of grid blocks in a processor.

Definition at line 367 of file mod_global_parameters.t.

◆ mype

integer mod_global_parameters::mype

The rank of the current MPI task.

Definition at line 26 of file mod_global_parameters.t.

◆ n_saves

integer, dimension(1:nfile) mod_global_parameters::n_saves

Number of saved files of each type.

Todo:
Move to mod_input_output

Definition at line 195 of file mod_global_parameters.t.

◆ nbufferx

integer mod_global_parameters::nbufferx

Number of cells as buffer zone.

Todo:
is it necessary?

Definition at line 405 of file mod_global_parameters.t.

◆ ndim

integer, parameter mod_global_parameters::ndim =^ND

Number of spatial dimensions for grid variables.

Definition at line 68 of file mod_global_parameters.t.

◆ ndir

integer mod_global_parameters::ndir =ndim

Number of spatial dimensions (components) for vector variables.

Definition at line 71 of file mod_global_parameters.t.

◆ need_global_cmax

logical mod_global_parameters::need_global_cmax =.false.

need global maximal wave speed

Definition at line 567 of file mod_global_parameters.t.

◆ need_global_vmax

logical mod_global_parameters::need_global_vmax =.false.

need global maximal flow speed

Definition at line 570 of file mod_global_parameters.t.

◆ nfile

integer, parameter mod_global_parameters::nfile = 5

Number of output methods.

Definition at line 157 of file mod_global_parameters.t.

◆ ng

integer, dimension(:), allocatable mod_global_parameters::ng

number of grid blocks in domain per dimension, in array over levels

Definition at line 77 of file mod_global_parameters.t.

◆ nghostcells

integer mod_global_parameters::nghostcells

Number of ghost cells surrounding a grid.

Definition at line 100 of file mod_global_parameters.t.

◆ nlevelshi

integer, parameter mod_global_parameters::nlevelshi = 20

The maximum number of levels in the grid refinement.

Definition at line 370 of file mod_global_parameters.t.

◆ nocartesian

logical mod_global_parameters::nocartesian

IO switches for conversion.

Definition at line 242 of file mod_global_parameters.t.

◆ node

integer, dimension(:,:), allocatable mod_global_parameters::node

Definition at line 133 of file mod_global_parameters.t.

◆ node_sub

integer, dimension(:,:), allocatable mod_global_parameters::node_sub

Definition at line 134 of file mod_global_parameters.t.

◆ nodehi

integer, parameter mod_global_parameters::nodehi =^ND+1

grid hierarchy info (level and grid indices)

Definition at line 129 of file mod_global_parameters.t.

◆ npe

integer mod_global_parameters::npe

The number of MPI tasks.

Todo:
Move mpi related variables to e.g. mod_comm

Definition at line 23 of file mod_global_parameters.t.

◆ nsavehi

integer, parameter mod_global_parameters::nsavehi =100

Maximum number of saves that can be defined by tsave or itsave.

Definition at line 154 of file mod_global_parameters.t.

◆ nstep

integer mod_global_parameters::nstep

How many sub-steps the time integrator takes.

Definition at line 495 of file mod_global_parameters.t.

◆ nstretchedblocks

integer, dimension(:,:), allocatable mod_global_parameters::nstretchedblocks

(even) number of (symmetrically) stretched blocks per level and dimension

Definition at line 121 of file mod_global_parameters.t.

◆ nstretchedblocks_baselevel

integer, dimension(ndim) mod_global_parameters::nstretchedblocks_baselevel

(even) number of (symmetrically) stretched blocks at AMR level 1, per dimension

Definition at line 119 of file mod_global_parameters.t.

◆ nwauxio

integer mod_global_parameters::nwauxio

Number of auxiliary variables that are only included in output.

Definition at line 239 of file mod_global_parameters.t.

◆ nxdiffusehllc

integer mod_global_parameters::nxdiffusehllc

Definition at line 549 of file mod_global_parameters.t.

◆ output_names

character(len=40), dimension(nfile), parameter mod_global_parameters::output_names = ['log ', 'normal ', 'slice ', 'collapsed', 'analysis ']

Names of the output methods.

Definition at line 160 of file mod_global_parameters.t.

◆ par_files

character(len=std_len), dimension(:), allocatable mod_global_parameters::par_files

Which par files are used as input.

Definition at line 249 of file mod_global_parameters.t.

◆ pass_wall_time

logical mod_global_parameters::pass_wall_time

If true, wall time is up, modify snapshotnext for later overwrite.

Definition at line 474 of file mod_global_parameters.t.

◆ periodb

logical, dimension(ndim) mod_global_parameters::periodb

True for dimensions with periodic boundaries.

Definition at line 575 of file mod_global_parameters.t.

◆ pflux

type(fluxalloc), dimension(:,:,:), allocatable mod_global_parameters::pflux

store flux to fix conservation

Definition at line 601 of file mod_global_parameters.t.

◆ phi_

integer mod_global_parameters::phi_ = -1

Definition at line 64 of file mod_global_parameters.t.

◆ phyboundblock

logical, dimension(:), allocatable mod_global_parameters::phyboundblock

Definition at line 603 of file mod_global_parameters.t.

◆ phys_energy

logical mod_global_parameters::phys_energy =.true.

Solve energy equation or not.

Definition at line 352 of file mod_global_parameters.t.

◆ pig

integer, parameter mod_global_parameters::pig

Definition at line 131 of file mod_global_parameters.t.

◆ plevel_

integer, parameter mod_global_parameters::plevel_ =1

Definition at line 130 of file mod_global_parameters.t.

◆ poleb

logical, dimension(2,ndim) mod_global_parameters::poleb

Indicates whether there is a pole at a boundary.

Definition at line 578 of file mod_global_parameters.t.

◆ prolongation_method

character(len=std_len) mod_global_parameters::prolongation_method

Definition at line 590 of file mod_global_parameters.t.

◆ prolongprimitive

logical mod_global_parameters::prolongprimitive

Definition at line 391 of file mod_global_parameters.t.

◆ qstretch

double precision, dimension(:,:), allocatable mod_global_parameters::qstretch

Stretching factors and first cell size for each AMR level and dimension.

Definition at line 125 of file mod_global_parameters.t.

◆ qstretch_baselevel

double precision, dimension(ndim) mod_global_parameters::qstretch_baselevel

stretch factor between cells at AMR level 1, per dimension

Definition at line 116 of file mod_global_parameters.t.

◆ r_

integer mod_global_parameters::r_ = -1

Indices for cylindrical coordinates FOR TESTS, negative value when not used:

Definition at line 63 of file mod_global_parameters.t.

◆ recvrequest

integer, dimension(:), allocatable mod_global_parameters::recvrequest

Definition at line 51 of file mod_global_parameters.t.

◆ recvstatus

integer, dimension(:,:), allocatable mod_global_parameters::recvstatus

Definition at line 52 of file mod_global_parameters.t.

◆ refine_criterion

integer mod_global_parameters::refine_criterion

Definition at line 390 of file mod_global_parameters.t.

◆ refine_max_level

integer mod_global_parameters::refine_max_level

Maximal number of AMR levels.

Definition at line 373 of file mod_global_parameters.t.

◆ refine_threshold

double precision, dimension(:), allocatable mod_global_parameters::refine_threshold

Error tolerance for refinement decision.

Definition at line 395 of file mod_global_parameters.t.

◆ reset_grid

logical mod_global_parameters::reset_grid

If true, rebuild the AMR grid upon restarting.

Definition at line 399 of file mod_global_parameters.t.

◆ reset_it

logical mod_global_parameters::reset_it

If true, reset iteration count to 0.

Definition at line 468 of file mod_global_parameters.t.

◆ reset_time

logical mod_global_parameters::reset_time

If true, reset iteration count and global_time to original values, and start writing snapshots at index 0.

Definition at line 465 of file mod_global_parameters.t.

◆ restart_from_file

character(len=std_len) mod_global_parameters::restart_from_file

If not 'unavailable', resume from snapshot with this base file name.

Definition at line 255 of file mod_global_parameters.t.

◆ resume_previous_run

logical mod_global_parameters::resume_previous_run

If true, restart a previous run from the latest snapshot.

Definition at line 264 of file mod_global_parameters.t.

◆ rnode

double precision, dimension(:,:), allocatable mod_global_parameters::rnode

Corner coordinates.

Definition at line 145 of file mod_global_parameters.t.

◆ rnode_sub

double precision, dimension(:,:), allocatable mod_global_parameters::rnode_sub

Definition at line 146 of file mod_global_parameters.t.

◆ rnodehi

integer, parameter mod_global_parameters::rnodehi =3*^ND

grid location info (corner coordinates and grid spacing)

Definition at line 137 of file mod_global_parameters.t.

◆ rpdx

integer, parameter mod_global_parameters::rpdx

Definition at line 142 of file mod_global_parameters.t.

◆ rpxmax

integer, parameter mod_global_parameters::rpxmax

Definition at line 141 of file mod_global_parameters.t.

◆ rpxmax0_

integer, parameter mod_global_parameters::rpxmax0_ =^ND

Definition at line 140 of file mod_global_parameters.t.

◆ rpxmin

integer, parameter mod_global_parameters::rpxmin

Definition at line 139 of file mod_global_parameters.t.

◆ rpxmin0_

integer, parameter mod_global_parameters::rpxmin0_ =0

Definition at line 138 of file mod_global_parameters.t.

◆ save_physical_boundary

logical mod_global_parameters::save_physical_boundary

True for save physical boundary cells in dat files.

Definition at line 584 of file mod_global_parameters.t.

◆ saveigrid

integer mod_global_parameters::saveigrid

Definition at line 293 of file mod_global_parameters.t.

◆ saveprim

logical mod_global_parameters::saveprim

If true, convert from conservative to primitive variables in output.

Definition at line 274 of file mod_global_parameters.t.

◆ sendrequest

integer, dimension(:), allocatable mod_global_parameters::sendrequest

Definition at line 51 of file mod_global_parameters.t.

◆ sendstatus

integer, dimension(:,:), allocatable mod_global_parameters::sendstatus

Definition at line 52 of file mod_global_parameters.t.

◆ si_unit

logical mod_global_parameters::si_unit =.false.

Use SI units (.true.) or use cgs units (.false.)

Definition at line 349 of file mod_global_parameters.t.

◆ size_block

integer mod_global_parameters::size_block

Definition at line 38 of file mod_global_parameters.t.

◆ size_block_io

integer mod_global_parameters::size_block_io

Definition at line 42 of file mod_global_parameters.t.

◆ size_block_io_tf

integer mod_global_parameters::size_block_io_tf

Definition at line 44 of file mod_global_parameters.t.

◆ slab

logical mod_global_parameters::slab

Cartesian geometry or not.

Definition at line 74 of file mod_global_parameters.t.

◆ slab_stretched

logical mod_global_parameters::slab_stretched

Stretched Cartesian geometry or not.

Definition at line 110 of file mod_global_parameters.t.

◆ slowsteps

integer mod_global_parameters::slowsteps

If > 1, then in the first slowsteps-1 time steps dt is reduced by a factor \( 1 - (1- step/slowsteps)^2 \).

Definition at line 487 of file mod_global_parameters.t.

◆ small_density

double precision mod_global_parameters::small_density

Definition at line 328 of file mod_global_parameters.t.

◆ small_pressure

double precision mod_global_parameters::small_pressure

Definition at line 328 of file mod_global_parameters.t.

◆ small_temperature

double precision mod_global_parameters::small_temperature

error handling

Definition at line 328 of file mod_global_parameters.t.

◆ small_values_fix_iw

logical, dimension(:), allocatable mod_global_parameters::small_values_fix_iw

Whether to apply small value fixes to certain variables.

Definition at line 343 of file mod_global_parameters.t.

◆ small_values_use_primitive

logical mod_global_parameters::small_values_use_primitive =.false.

Use primitive variables when correcting small values.

Definition at line 340 of file mod_global_parameters.t.

◆ snapshotini

integer mod_global_parameters::snapshotini

Resume from the snapshot with this index.

Definition at line 261 of file mod_global_parameters.t.

◆ snapshotnext

integer mod_global_parameters::snapshotnext

IO: snapshot and collapsed views output numbers/labels.

Definition at line 204 of file mod_global_parameters.t.

◆ solve_internal_e

logical mod_global_parameters::solve_internal_e =.false.

Solve polytropic process instead of solving total energy.

Definition at line 355 of file mod_global_parameters.t.

◆ source_split_usr

logical mod_global_parameters::source_split_usr

Use split or unsplit way to add user's source terms, default: unsplit.

Definition at line 555 of file mod_global_parameters.t.

◆ stagger_grid

logical mod_global_parameters::stagger_grid =.false.

True for using stagger grid.

Definition at line 401 of file mod_global_parameters.t.

◆ stretch_none

integer, parameter mod_global_parameters::stretch_none = 0

No stretching.

Definition at line 102 of file mod_global_parameters.t.

◆ stretch_symm

integer, parameter mod_global_parameters::stretch_symm = 2

Symmetric stretching around the center.

Definition at line 104 of file mod_global_parameters.t.

◆ stretch_type

integer, dimension(ndim) mod_global_parameters::stretch_type

What kind of stretching is used per dimension.

Definition at line 114 of file mod_global_parameters.t.

◆ stretch_uncentered

logical mod_global_parameters::stretch_uncentered

If true, adjust mod_geometry routines to account for grid stretching (but the flux computation will not)

Definition at line 108 of file mod_global_parameters.t.

◆ stretch_uni

integer, parameter mod_global_parameters::stretch_uni = 1

Unidirectional stretching from a side.

Definition at line 103 of file mod_global_parameters.t.

◆ stretched_dim

logical, dimension(ndim) mod_global_parameters::stretched_dim

True if a dimension is stretched.

Definition at line 112 of file mod_global_parameters.t.

◆ tfixgrid

double precision mod_global_parameters::tfixgrid

Fix the AMR grid after this time.

Definition at line 379 of file mod_global_parameters.t.

◆ time_advance

logical mod_global_parameters::time_advance

Definition at line 427 of file mod_global_parameters.t.

◆ time_bc

double precision mod_global_parameters::time_bc

accumulated wall-clock time spent on boundary conditions

Definition at line 201 of file mod_global_parameters.t.

◆ time_between_print

double precision mod_global_parameters::time_between_print

to monitor timeintegration loop at given wall-clock time intervals

Definition at line 198 of file mod_global_parameters.t.

◆ time_convert_factor

double precision mod_global_parameters::time_convert_factor

Conversion factor for time unit.

Definition at line 291 of file mod_global_parameters.t.

◆ time_init

double precision mod_global_parameters::time_init

Start time for the simulation.

Definition at line 452 of file mod_global_parameters.t.

◆ time_integrator

character(len=std_len) mod_global_parameters::time_integrator

Which time integrator to use.

Definition at line 498 of file mod_global_parameters.t.

◆ time_max

double precision mod_global_parameters::time_max

End time for the simulation.

Definition at line 455 of file mod_global_parameters.t.

◆ tsave

double precision, dimension(nsavehi,nfile) mod_global_parameters::tsave

Save output of type N on times tsave(:, N)

Definition at line 167 of file mod_global_parameters.t.

◆ tsavelast

double precision, dimension(nfile) mod_global_parameters::tsavelast
Todo:
Move tsavelast to amrvac.t

Definition at line 170 of file mod_global_parameters.t.

◆ tvdlfeps

double precision mod_global_parameters::tvdlfeps

Definition at line 551 of file mod_global_parameters.t.

◆ type_block

integer mod_global_parameters::type_block

MPI type for block including ghost cells and its size.

Definition at line 38 of file mod_global_parameters.t.

◆ type_block_io

integer mod_global_parameters::type_block_io

MPI type for IO: block excluding ghost cells.

Definition at line 42 of file mod_global_parameters.t.

◆ type_block_io_tf

integer mod_global_parameters::type_block_io_tf

MPI type for IO: transformed data excluding ghost cells.

Definition at line 44 of file mod_global_parameters.t.

◆ type_block_wc_io

integer mod_global_parameters::type_block_wc_io

MPI type for IO: cell corner (wc) or cell center (wcc) variables.

Definition at line 48 of file mod_global_parameters.t.

◆ type_block_wcc_io

integer mod_global_parameters::type_block_wcc_io

Definition at line 48 of file mod_global_parameters.t.

◆ type_block_xc_io

integer mod_global_parameters::type_block_xc_io

MPI type for IO: cell corner (xc) or cell center (xcc) coordinates.

Definition at line 46 of file mod_global_parameters.t.

◆ type_block_xcc_io

integer mod_global_parameters::type_block_xcc_io

Definition at line 46 of file mod_global_parameters.t.

◆ type_coarse_block

integer mod_global_parameters::type_coarse_block

MPI type for block coarsened by 2, and for its children blocks.

Definition at line 40 of file mod_global_parameters.t.

◆ type_gradient_limiter

integer, dimension(:), allocatable mod_global_parameters::type_gradient_limiter

Type of slope limiter used for computing gradients or divergences, when typegrad or typediv are set to 'limited'.

Definition at line 524 of file mod_global_parameters.t.

◆ type_limiter

integer, dimension(:), allocatable mod_global_parameters::type_limiter

Type of slope limiter used for reconstructing variables on cell edges.

Definition at line 520 of file mod_global_parameters.t.

◆ type_sub_block

integer, dimension(2^d&) mod_global_parameters::type_sub_block

Definition at line 40 of file mod_global_parameters.t.

◆ typeaverage

character(len=std_len) mod_global_parameters::typeaverage

Definition at line 544 of file mod_global_parameters.t.

◆ typeaxial

character(len=std_len) mod_global_parameters::typeaxial ='default'

Definition at line 546 of file mod_global_parameters.t.

◆ typeboundary

character(len=std_len), dimension(:, :), allocatable mod_global_parameters::typeboundary

Array indicating the type of boundary condition per variable and per physical boundary.

Definition at line 588 of file mod_global_parameters.t.

◆ typeboundspeed

character(len=std_len) mod_global_parameters::typeboundspeed

Which type of TVDLF method to use.

Definition at line 542 of file mod_global_parameters.t.

◆ typecourant

character(len=std_len) mod_global_parameters::typecourant

How to compute the CFL-limited time step.

Options are 'maxsum': max(sum(c/dx)); 'summax': sum(max(c/dx)) and 'minimum: max(c/dx), where the summations loop over the grid dimensions and c is the velocity. The default 'maxsum' is the conventiontal way of computing CFL-limited time steps.

Definition at line 438 of file mod_global_parameters.t.

◆ typecurl

character(len=std_len) mod_global_parameters::typecurl

Definition at line 558 of file mod_global_parameters.t.

◆ typedimsplit

character(len=std_len) mod_global_parameters::typedimsplit

Definition at line 545 of file mod_global_parameters.t.

◆ typediv

character(len=std_len) mod_global_parameters::typediv

Definition at line 558 of file mod_global_parameters.t.

◆ typeentropy

character(len=std_len), dimension(:), allocatable mod_global_parameters::typeentropy

Which type of entropy fix to use with Riemann-type solvers.

Definition at line 536 of file mod_global_parameters.t.

◆ typefilelog

character(len=std_len) mod_global_parameters::typefilelog

Which type of log to write: 'normal', 'special', 'regression_test'.

Definition at line 258 of file mod_global_parameters.t.

◆ typeghostfill

character(len=std_len) mod_global_parameters::typeghostfill ='linear'

Definition at line 590 of file mod_global_parameters.t.

◆ typegrad

character(len=std_len) mod_global_parameters::typegrad

Definition at line 558 of file mod_global_parameters.t.

◆ typegradlimiter

integer mod_global_parameters::typegradlimiter
Todo:
Remove / replace with gradient_limiter

Definition at line 530 of file mod_global_parameters.t.

◆ typelimited

character(len=std_len) mod_global_parameters::typelimited

What should be used as a basis for the limiting in TVD methods. Options are 'original', 'previous' and 'predictor'.

By default, the original value is used in 1D and for dimensional splitting, while for dimensionally unsplit multidimensional case (dimsplit=F), TVDLF and TVD-MUSCL uses the previous value from wold for limiting.

Definition at line 506 of file mod_global_parameters.t.

◆ typelimiter

integer mod_global_parameters::typelimiter
Todo:
Remove / replace with limiter

Definition at line 527 of file mod_global_parameters.t.

◆ typepoly

character(len=std_len) mod_global_parameters::typepoly

Definition at line 547 of file mod_global_parameters.t.

◆ typepred1

character(len=std_len), dimension(:), allocatable mod_global_parameters::typepred1

The spatial dicretization for the predictor step when using a two step method.

Definition at line 517 of file mod_global_parameters.t.

◆ typeprolonglimit

character(len=std_len) mod_global_parameters::typeprolonglimit

Limiter used for prolongation to refined grids and ghost cells.

Definition at line 533 of file mod_global_parameters.t.

◆ typesourcesplit

character(len=std_len) mod_global_parameters::typesourcesplit

How to apply dimensional splitting to the source terms, see disretization.md.

Definition at line 510 of file mod_global_parameters.t.

◆ typetvd

character(len=std_len) mod_global_parameters::typetvd

Which type of TVD method to use.

Definition at line 539 of file mod_global_parameters.t.

◆ undefined

character(len=*), parameter mod_global_parameters::undefined = 'undefined'

Definition at line 18 of file mod_global_parameters.t.

◆ unit_density

double precision mod_global_parameters::unit_density =1.d0

Physical scaling factor for density.

Definition at line 310 of file mod_global_parameters.t.

◆ unit_length

double precision mod_global_parameters::unit_length =1.d0

Physical scaling factor for length.

Definition at line 304 of file mod_global_parameters.t.

◆ unit_magneticfield

double precision mod_global_parameters::unit_magneticfield =1.d0

Physical scaling factor for magnetic field.

Definition at line 322 of file mod_global_parameters.t.

◆ unit_numberdensity

double precision mod_global_parameters::unit_numberdensity =1.d0

Physical scaling factor for number density.

Definition at line 325 of file mod_global_parameters.t.

◆ unit_pressure

double precision mod_global_parameters::unit_pressure =1.d0

Physical scaling factor for pressure.

Definition at line 319 of file mod_global_parameters.t.

◆ unit_temperature

double precision mod_global_parameters::unit_temperature =1.d0

Physical scaling factor for temperature.

Definition at line 316 of file mod_global_parameters.t.

◆ unit_time

double precision mod_global_parameters::unit_time =1.d0

Physical scaling factor for time.

Definition at line 307 of file mod_global_parameters.t.

◆ unit_velocity

double precision mod_global_parameters::unit_velocity =0.d0

Physical scaling factor for velocity.

Definition at line 313 of file mod_global_parameters.t.

◆ unitanalysis

integer, parameter mod_global_parameters::unitanalysis =14

Definition at line 236 of file mod_global_parameters.t.

◆ unitcollapse

integer, parameter mod_global_parameters::unitcollapse =13

Definition at line 235 of file mod_global_parameters.t.

◆ unitconvert

integer, parameter mod_global_parameters::unitconvert =10

Definition at line 232 of file mod_global_parameters.t.

◆ uniterr

integer, parameter mod_global_parameters::uniterr =6

Unit for error messages.

Definition at line 228 of file mod_global_parameters.t.

◆ unitpar

integer, parameter mod_global_parameters::unitpar =9
Todo:
Move to mod_input_output

Definition at line 231 of file mod_global_parameters.t.

◆ unitslice

integer, parameter mod_global_parameters::unitslice =11

Definition at line 233 of file mod_global_parameters.t.

◆ unitsnapshot

integer, parameter mod_global_parameters::unitsnapshot =12

Definition at line 234 of file mod_global_parameters.t.

◆ unitstdin

integer, parameter mod_global_parameters::unitstdin =5

Unit for standard input.

Definition at line 222 of file mod_global_parameters.t.

◆ unitterm

integer, parameter mod_global_parameters::unitterm =6

Unit for standard output.

Definition at line 225 of file mod_global_parameters.t.

◆ use_particles

logical mod_global_parameters::use_particles =.false.

Use particles module or not.

Definition at line 362 of file mod_global_parameters.t.

◆ vmax_global

double precision mod_global_parameters::vmax_global

global fastest flow speed needed in glm method

Definition at line 564 of file mod_global_parameters.t.

◆ w_convert_factor

double precision, dimension(:), allocatable mod_global_parameters::w_convert_factor

Conversion factors the primitive variables.

Definition at line 286 of file mod_global_parameters.t.

◆ w_refine_weight

double precision, dimension(:), allocatable mod_global_parameters::w_refine_weight

Weights of variables used to calculate error for mesh refinement.

Definition at line 376 of file mod_global_parameters.t.

◆ w_write

logical, dimension(:), allocatable mod_global_parameters::w_write

Definition at line 243 of file mod_global_parameters.t.

◆ wall_time_max

double precision mod_global_parameters::wall_time_max

Ending wall time (in hours) for the simulation.

Definition at line 458 of file mod_global_parameters.t.

◆ writelevel

logical, dimension(:), allocatable mod_global_parameters::writelevel

Definition at line 244 of file mod_global_parameters.t.

◆ writespshift

double precision, dimension(ndim,2) mod_global_parameters::writespshift

Definition at line 245 of file mod_global_parameters.t.

◆ xload

double precision mod_global_parameters::xload

Stores the memory and load imbalance, used in printlog.

Definition at line 296 of file mod_global_parameters.t.

◆ xmemory

double precision mod_global_parameters::xmemory

Definition at line 296 of file mod_global_parameters.t.

◆ xprob

double precision mod_global_parameters::xprob

minimum and maximum domain boundaries for each dimension

Definition at line 60 of file mod_global_parameters.t.

◆ xstretch

double precision mod_global_parameters::xstretch

physical extent of stretched border in symmetric stretching

Definition at line 123 of file mod_global_parameters.t.

◆ z_

integer mod_global_parameters::z_ = -1

Definition at line 65 of file mod_global_parameters.t.