MPI-AMRVAC  2.2
The MPI - Adaptive Mesh Refinement - Versatile Advection Code
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...

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, dimension(^nd, 2^d &) type_coarse_block_stg
 MPI type for staggered block coarsened by 2, and for its children blocks. More...
 
integer, dimension(^nd, 2^d &) type_sub_block_stg
 
integer type_block_io
 MPI type for IO: block excluding ghost cells. More...
 
integer size_block_io
 
integer type_block_io_stg
 MPI type for IO of staggered variables. More...
 
integer size_block_io_stg
 
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 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...
 
logical slab_uniform
 uniform Cartesian geometry or not (stretched Cartesian) 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, 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...
 
character(len=std_len) usr_filename
 User parameter file. 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
 
double precision, dimension(nfiletsavestart
 Start of read out (not counting specified read outs) More...
 
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...
 
logical, dimension(nfilesave_file
 whether or not to save an output file 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
 
integer type_endian
 
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 unit_charge =1.d0
 Physical scaling factor for charge. More...
 
double precision unit_mass =1.d0
 Physical scaling factor for mass. More...
 
double precision c_norm =1.d0
 Normalised speed of light. 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 =.true.
 check and optionally fix unphysical small values (density, gas pressure) More...
 
logical fix_small_values =.false.
 
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_trac =.false.
 Use TRAC (Johnston 2019 ApJL, 873, L22) for MHD or 1D HD. More...
 
integer phys_trac_type =1
 
double precision phys_trac_mask
 
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...
 
logical use_multigrid = .false.
 Use multigrid (only available in 2D and 3D) 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...
 
logical fix_conserve_global = .true.
 Whether to apply flux conservation at refinement boundaries. 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 =.false.
 
logical coarsenprimitive =.false.
 
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 final_dt_exit
 Force timeloop exit when final dt < dtmin. 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 final_dt_reduction
 If true, allow final dt reduction for matching time_max on output. 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_stepper
 Which time stepper to use. More...
 
character(len=std_len) time_integrator
 Which time integrator to use. More...
 
character(len=std_len) typesourcesplit
 How to apply dimensional splitting to the source terms, see Discretization. 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 discretization for the predictor step when using a two step PC 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) geometry_name ='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
 
double precision rk2_alfa
 RK2(alfa) method parameters from Butcher tableau. More...
 
double precision rk_a21
 
double precision rk_b1
 
double precision rk_b2
 
integer ssprk_order
 SSPRK choice of methods (both threestep and fourstep, Shu-Osher 2N* implementation) also fivestep SSPRK54. More...
 
double precision rk_beta11
 
double precision rk_beta22
 
double precision rk_beta33
 
double precision rk_beta44
 
double precision rk_c2
 
double precision rk_c3
 
double precision rk_c4
 
double precision rk_alfa21
 
double precision rk_alfa22
 
double precision rk_alfa31
 
double precision rk_alfa33
 
double precision rk_alfa41
 
double precision rk_alfa44
 
double precision rk_beta54
 
double precision rk_beta55
 
double precision rk_alfa53
 
double precision rk_alfa54
 
double precision rk_alfa55
 
double precision rk_c5
 
integer rk3_switch
 RK3 Butcher table. More...
 
double precision rk3_a21
 
double precision rk3_a31
 
double precision rk3_a32
 
double precision rk3_b1
 
double precision rk3_b2
 
double precision rk3_b3
 
double precision rk3_c2
 
double precision rk3_c3
 
double precision ars_gamma
 IMEX_ARS3 parameter ars_gamma. More...
 
integer imex_switch
 IMEX_232 choice and parameters. More...
 
double precision imex_a21
 
double precision imex_a31
 
double precision imex_a32
 
double precision imex_b1
 
double precision imex_b2
 
double precision imex_ha21
 
double precision imex_ha22
 
double precision imex_b3
 
double precision imex_c2
 
double precision imex_c3
 
logical use_imex_scheme
 whether IMEX in use or not More...
 
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...
 
double precision, dimension(ndima2max_global
 global largest a2 for schmid scheme More...
 
logical need_global_cmax =.false.
 need global maximal wave speed More...
 
logical need_global_a2max =.false.
 global value for schmid scheme 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...
 
logical, dimension(:), allocatable phyboundblock
 True if a block has any physical boundary. 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
 
character(len=std_len) filename_euv
 Base file name for synthetic EUV emission output. More...
 
logical image =.false.
 output image More...
 
logical spectrum =.false.
 output spectrum More...
 
integer wavelength
 
integer direction_los =3
 direction of light of sight More...
 
integer direction_slit =2
 direction of slit (for spectrum) More...
 
double precision location_slit =0.d0
 location of the slit More...
 
character(len=std_len) resolution_euv ='instrument'
 resolution of the output More...
 

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 666 of file mod_global_parameters.t.

Variable Documentation

◆ a2max_global

double precision, dimension(ndim) mod_global_parameters::a2max_global

global largest a2 for schmid scheme

Definition at line 605 of file mod_global_parameters.t.

◆ amr_wavefilter

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

refinement: lohner estimate wavefilter setting

Definition at line 405 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 370 of file mod_global_parameters.t.

◆ aperiodb

logical, dimension(ndim) mod_global_parameters::aperiodb

True for dimensions with aperiodic boundaries.

Definition at line 622 of file mod_global_parameters.t.

◆ ars_gamma

double precision mod_global_parameters::ars_gamma

IMEX_ARS3 parameter ars_gamma.

Definition at line 588 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 279 of file mod_global_parameters.t.

◆ b0field

logical mod_global_parameters::b0field =.false.

split magnetic field as background B0 field

Definition at line 358 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 260 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 348 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 86 of file mod_global_parameters.t.

◆ boct

double precision mod_global_parameters::boct =0.d0

Definition at line 350 of file mod_global_parameters.t.

◆ bquad

double precision mod_global_parameters::bquad =0.d0

Definition at line 349 of file mod_global_parameters.t.

◆ busr

double precision mod_global_parameters::busr =0.d0

Definition at line 351 of file mod_global_parameters.t.

◆ c_norm

double precision mod_global_parameters::c_norm =1.d0

Normalised speed of light.

Definition at line 342 of file mod_global_parameters.t.

◆ check_small_values

logical mod_global_parameters::check_small_values =.true.

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

Definition at line 354 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 599 of file mod_global_parameters.t.

◆ coarsenprimitive

logical mod_global_parameters::coarsenprimitive =.false.

Definition at line 409 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 166 of file mod_global_parameters.t.

◆ collapse_type

character(len=std_len) mod_global_parameters::collapse_type

Definition at line 291 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 196 of file mod_global_parameters.t.

◆ collapsenext

integer mod_global_parameters::collapsenext

Definition at line 212 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 276 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 289 of file mod_global_parameters.t.

◆ courantpar

double precision mod_global_parameters::courantpar

The Courant (CFL) number used for the simulation.

Definition at line 447 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 307 of file mod_global_parameters.t.

◆ d

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

Definition at line 78 of file mod_global_parameters.t.

◆ d_

integer parameter mod_global_parameters::d_ =plevel_+^D

Definition at line 130 of file mod_global_parameters.t.

◆ derefine_ratio

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

Definition at line 413 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 80 of file mod_global_parameters.t.

◆ dimsplit

logical mod_global_parameters::dimsplit

Definition at line 574 of file mod_global_parameters.t.

◆ direction_los

integer mod_global_parameters::direction_los =3

direction of light of sight

Definition at line 650 of file mod_global_parameters.t.

◆ direction_slit

integer mod_global_parameters::direction_slit =2

direction of slit (for spectrum)

Definition at line 652 of file mod_global_parameters.t.

◆ ditregrid

integer mod_global_parameters::ditregrid

Reconstruct the AMR grid once every ditregrid iteration(s)

Definition at line 402 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 184 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 83 of file mod_global_parameters.t.

◆ dt

double precision mod_global_parameters::dt

Definition at line 441 of file mod_global_parameters.t.

◆ dt_grid

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

Definition at line 442 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 463 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 478 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 459 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 175 of file mod_global_parameters.t.

◆ dx

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

Definition at line 147 of file mod_global_parameters.t.

◆ dxfirst

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

Definition at line 124 of file mod_global_parameters.t.

◆ dxfirst_1mq

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

Definition at line 124 of file mod_global_parameters.t.

◆ dxlevel

double precision, dimension(ndim) mod_global_parameters::dxlevel

Definition at line 148 of file mod_global_parameters.t.

◆ dxmid

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

Definition at line 124 of file mod_global_parameters.t.

◆ entropycoef

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

Definition at line 568 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 227 of file mod_global_parameters.t.

◆ filecollapse_

integer, parameter mod_global_parameters::filecollapse_ = 4

Constant indicating collapsed output.

Definition at line 224 of file mod_global_parameters.t.

◆ filelog_

integer, parameter mod_global_parameters::filelog_ = 1

Constant indicating log output.

Definition at line 215 of file mod_global_parameters.t.

◆ filename_euv

character(len=std_len) mod_global_parameters::filename_euv

Base file name for synthetic EUV emission output.

Definition at line 642 of file mod_global_parameters.t.

◆ fileout_

integer, parameter mod_global_parameters::fileout_ = 2

Constant indicating regular output.

Definition at line 218 of file mod_global_parameters.t.

◆ fileslice_

integer, parameter mod_global_parameters::fileslice_ = 3

Constant indicating slice output.

Definition at line 221 of file mod_global_parameters.t.

◆ final_dt_exit

logical mod_global_parameters::final_dt_exit

Force timeloop exit when final dt < dtmin.

Definition at line 481 of file mod_global_parameters.t.

◆ final_dt_reduction

logical mod_global_parameters::final_dt_reduction

If true, allow final dt reduction for matching time_max on output.

Definition at line 491 of file mod_global_parameters.t.

◆ firstprocess

logical mod_global_parameters::firstprocess

If true, call initonegrid_usr upon restarting.

Definition at line 494 of file mod_global_parameters.t.

◆ fix_conserve_global

logical mod_global_parameters::fix_conserve_global = .true.

Whether to apply flux conservation at refinement boundaries.

Definition at line 396 of file mod_global_parameters.t.

◆ fix_small_values

logical mod_global_parameters::fix_small_values =.false.

Definition at line 355 of file mod_global_parameters.t.

◆ flatcd

logical mod_global_parameters::flatcd

Definition at line 571 of file mod_global_parameters.t.

◆ flathllc

logical mod_global_parameters::flathllc

Definition at line 571 of file mod_global_parameters.t.

◆ flatsh

logical mod_global_parameters::flatsh

Definition at line 571 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 531 of file mod_global_parameters.t.

◆ geometry_name

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

Definition at line 564 of file mod_global_parameters.t.

◆ global_time

double precision mod_global_parameters::global_time

The global simulation time.

Definition at line 466 of file mod_global_parameters.t.

◆ icomm

integer mod_global_parameters::icomm

The MPI communicator.

Definition at line 28 of file mod_global_parameters.t.

◆ ierrmpi

integer mod_global_parameters::ierrmpi

A global MPI error return code.

Todo:
Make local

Definition at line 32 of file mod_global_parameters.t.

◆ image

logical mod_global_parameters::image =.false.

output image

Definition at line 644 of file mod_global_parameters.t.

◆ imex_a21

double precision mod_global_parameters::imex_a21

Definition at line 591 of file mod_global_parameters.t.

◆ imex_a31

double precision mod_global_parameters::imex_a31

Definition at line 591 of file mod_global_parameters.t.

◆ imex_a32

double precision mod_global_parameters::imex_a32

Definition at line 591 of file mod_global_parameters.t.

◆ imex_b1

double precision mod_global_parameters::imex_b1

Definition at line 591 of file mod_global_parameters.t.

◆ imex_b2

double precision mod_global_parameters::imex_b2

Definition at line 591 of file mod_global_parameters.t.

◆ imex_b3

double precision mod_global_parameters::imex_b3

Definition at line 592 of file mod_global_parameters.t.

◆ imex_c2

double precision mod_global_parameters::imex_c2

Definition at line 592 of file mod_global_parameters.t.

◆ imex_c3

double precision mod_global_parameters::imex_c3

Definition at line 592 of file mod_global_parameters.t.

◆ imex_ha21

double precision mod_global_parameters::imex_ha21

Definition at line 591 of file mod_global_parameters.t.

◆ imex_ha22

double precision mod_global_parameters::imex_ha22

Definition at line 591 of file mod_global_parameters.t.

◆ imex_switch

integer mod_global_parameters::imex_switch

IMEX_232 choice and parameters.

Definition at line 590 of file mod_global_parameters.t.

◆ internalboundary

logical mod_global_parameters::internalboundary

Definition at line 635 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 431 of file mod_global_parameters.t.

◆ isaveit

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

Definition at line 190 of file mod_global_parameters.t.

◆ isavet

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

Definition at line 187 of file mod_global_parameters.t.

◆ ismax

integer, parameter mod_global_parameters::ismax

Definition at line 639 of file mod_global_parameters.t.

◆ ismin

integer, parameter mod_global_parameters::ismin

Definition at line 638 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 515 of file mod_global_parameters.t.

◆ it

integer mod_global_parameters::it

Number of time steps taken.

Definition at line 500 of file mod_global_parameters.t.

◆ it_init

integer mod_global_parameters::it_init

initial iteration count

Definition at line 506 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 503 of file mod_global_parameters.t.

◆ itfixgrid

integer mod_global_parameters::itfixgrid

Fix the AMR grid after this many time steps.

Definition at line 399 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 178 of file mod_global_parameters.t.

◆ itsavelast

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

Definition at line 181 of file mod_global_parameters.t.

◆ ixghi

integer mod_global_parameters::ixghi

Upper index of grid block arrays.

Definition at line 92 of file mod_global_parameters.t.

◆ ixglo

integer, parameter mod_global_parameters::ixglo

Lower index of grid block arrays (always 1)

Definition at line 89 of file mod_global_parameters.t.

◆ ixgshi

integer mod_global_parameters::ixgshi

Upper index of stagger grid block arrays.

Definition at line 98 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 95 of file mod_global_parameters.t.

◆ ixm

integer mod_global_parameters::ixm

the mesh range (within a block with ghost cells)

Definition at line 55 of file mod_global_parameters.t.

◆ kr

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

Kronecker delta tensor.

Definition at line 434 of file mod_global_parameters.t.

◆ l

double precision mod_global_parameters::l

Definition at line 58 of file mod_global_parameters.t.

◆ length_convert_factor

double precision mod_global_parameters::length_convert_factor

Definition at line 296 of file mod_global_parameters.t.

◆ level_io

integer mod_global_parameters::level_io

Definition at line 254 of file mod_global_parameters.t.

◆ level_io_max

integer mod_global_parameters::level_io_max

Definition at line 254 of file mod_global_parameters.t.

◆ level_io_min

integer mod_global_parameters::level_io_min

Definition at line 254 of file mod_global_parameters.t.

◆ levmax

integer mod_global_parameters::levmax

Definition at line 425 of file mod_global_parameters.t.

◆ levmax_sub

integer mod_global_parameters::levmax_sub

Definition at line 426 of file mod_global_parameters.t.

◆ levmin

integer mod_global_parameters::levmin

Definition at line 424 of file mod_global_parameters.t.

◆ ll

integer mod_global_parameters::ll

Definition at line 55 of file mod_global_parameters.t.

◆ location_slit

double precision mod_global_parameters::location_slit =0.d0

location of the slit

Definition at line 654 of file mod_global_parameters.t.

◆ log_fh

integer mod_global_parameters::log_fh

MPI file handle for logfile.

Definition at line 35 of file mod_global_parameters.t.

◆ logflag

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

Definition at line 570 of file mod_global_parameters.t.

◆ loglimit

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

Definition at line 570 of file mod_global_parameters.t.

◆ lvc

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

Levi-Civita tensor.

Definition at line 437 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 381 of file mod_global_parameters.t.

◆ mype

integer mod_global_parameters::mype

The rank of the current MPI task.

Definition at line 25 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 200 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 422 of file mod_global_parameters.t.

◆ ndim

integer, parameter mod_global_parameters::ndim =^ND

Number of spatial dimensions for grid variables.

Definition at line 66 of file mod_global_parameters.t.

◆ ndir

integer mod_global_parameters::ndir =ndim

Number of spatial dimensions (components) for vector variables.

Definition at line 69 of file mod_global_parameters.t.

◆ need_global_a2max

logical mod_global_parameters::need_global_a2max =.false.

global value for schmid scheme

Definition at line 611 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 608 of file mod_global_parameters.t.

◆ nfile

integer, parameter mod_global_parameters::nfile = 5

Number of output methods.

Definition at line 156 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 78 of file mod_global_parameters.t.

◆ nghostcells

integer mod_global_parameters::nghostcells

Number of ghost cells surrounding a grid.

Definition at line 101 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 384 of file mod_global_parameters.t.

◆ nocartesian

logical mod_global_parameters::nocartesian

IO switches for conversion.

Definition at line 250 of file mod_global_parameters.t.

◆ node

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

Definition at line 132 of file mod_global_parameters.t.

◆ node_sub

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

Definition at line 133 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 128 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 22 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 153 of file mod_global_parameters.t.

◆ nstep

integer mod_global_parameters::nstep

How many sub-steps the time integrator takes.

Definition at line 518 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 120 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 118 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 247 of file mod_global_parameters.t.

◆ nxdiffusehllc

integer mod_global_parameters::nxdiffusehllc

Definition at line 567 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 159 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 257 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 497 of file mod_global_parameters.t.

◆ periodb

logical, dimension(ndim) mod_global_parameters::periodb

True for dimensions with periodic boundaries.

Definition at line 616 of file mod_global_parameters.t.

◆ phi_

integer mod_global_parameters::phi_ = -1

Definition at line 62 of file mod_global_parameters.t.

◆ phyboundblock

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

True if a block has any physical boundary.

Definition at line 628 of file mod_global_parameters.t.

◆ phys_trac

logical mod_global_parameters::phys_trac =.false.

Use TRAC (Johnston 2019 ApJL, 873, L22) for MHD or 1D HD.

Definition at line 364 of file mod_global_parameters.t.

◆ phys_trac_mask

double precision mod_global_parameters::phys_trac_mask

Definition at line 366 of file mod_global_parameters.t.

◆ phys_trac_type

integer mod_global_parameters::phys_trac_type =1

Definition at line 365 of file mod_global_parameters.t.

◆ pig

integer, parameter mod_global_parameters::pig

Definition at line 130 of file mod_global_parameters.t.

◆ plevel_

integer, parameter mod_global_parameters::plevel_ =1

Definition at line 129 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 619 of file mod_global_parameters.t.

◆ prolongation_method

character(len=std_len) mod_global_parameters::prolongation_method

Definition at line 634 of file mod_global_parameters.t.

◆ prolongprimitive

logical mod_global_parameters::prolongprimitive =.false.

Definition at line 408 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 124 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 115 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 61 of file mod_global_parameters.t.

◆ refine_criterion

integer mod_global_parameters::refine_criterion

Definition at line 407 of file mod_global_parameters.t.

◆ refine_max_level

integer mod_global_parameters::refine_max_level

Maximal number of AMR levels.

Definition at line 387 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 412 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 416 of file mod_global_parameters.t.

◆ reset_it

logical mod_global_parameters::reset_it

If true, reset iteration count to 0.

Definition at line 488 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 485 of file mod_global_parameters.t.

◆ resolution_euv

character(len=std_len) mod_global_parameters::resolution_euv ='instrument'

resolution of the output

Definition at line 656 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 263 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 272 of file mod_global_parameters.t.

◆ rk2_alfa

double precision mod_global_parameters::rk2_alfa

RK2(alfa) method parameters from Butcher tableau.

Definition at line 577 of file mod_global_parameters.t.

◆ rk3_a21

double precision mod_global_parameters::rk3_a21

Definition at line 586 of file mod_global_parameters.t.

◆ rk3_a31

double precision mod_global_parameters::rk3_a31

Definition at line 586 of file mod_global_parameters.t.

◆ rk3_a32

double precision mod_global_parameters::rk3_a32

Definition at line 586 of file mod_global_parameters.t.

◆ rk3_b1

double precision mod_global_parameters::rk3_b1

Definition at line 586 of file mod_global_parameters.t.

◆ rk3_b2

double precision mod_global_parameters::rk3_b2

Definition at line 586 of file mod_global_parameters.t.

◆ rk3_b3

double precision mod_global_parameters::rk3_b3

Definition at line 586 of file mod_global_parameters.t.

◆ rk3_c2

double precision mod_global_parameters::rk3_c2

Definition at line 586 of file mod_global_parameters.t.

◆ rk3_c3

double precision mod_global_parameters::rk3_c3

Definition at line 586 of file mod_global_parameters.t.

◆ rk3_switch

integer mod_global_parameters::rk3_switch

RK3 Butcher table.

Definition at line 585 of file mod_global_parameters.t.

◆ rk_a21

double precision mod_global_parameters::rk_a21

Definition at line 577 of file mod_global_parameters.t.

◆ rk_alfa21

double precision mod_global_parameters::rk_alfa21

Definition at line 582 of file mod_global_parameters.t.

◆ rk_alfa22

double precision mod_global_parameters::rk_alfa22

Definition at line 582 of file mod_global_parameters.t.

◆ rk_alfa31

double precision mod_global_parameters::rk_alfa31

Definition at line 582 of file mod_global_parameters.t.

◆ rk_alfa33

double precision mod_global_parameters::rk_alfa33

Definition at line 582 of file mod_global_parameters.t.

◆ rk_alfa41

double precision mod_global_parameters::rk_alfa41

Definition at line 582 of file mod_global_parameters.t.

◆ rk_alfa44

double precision mod_global_parameters::rk_alfa44

Definition at line 582 of file mod_global_parameters.t.

◆ rk_alfa53

double precision mod_global_parameters::rk_alfa53

Definition at line 583 of file mod_global_parameters.t.

◆ rk_alfa54

double precision mod_global_parameters::rk_alfa54

Definition at line 583 of file mod_global_parameters.t.

◆ rk_alfa55

double precision mod_global_parameters::rk_alfa55

Definition at line 583 of file mod_global_parameters.t.

◆ rk_b1

double precision mod_global_parameters::rk_b1

Definition at line 577 of file mod_global_parameters.t.

◆ rk_b2

double precision mod_global_parameters::rk_b2

Definition at line 577 of file mod_global_parameters.t.

◆ rk_beta11

double precision mod_global_parameters::rk_beta11

Definition at line 581 of file mod_global_parameters.t.

◆ rk_beta22

double precision mod_global_parameters::rk_beta22

Definition at line 581 of file mod_global_parameters.t.

◆ rk_beta33

double precision mod_global_parameters::rk_beta33

Definition at line 581 of file mod_global_parameters.t.

◆ rk_beta44

double precision mod_global_parameters::rk_beta44

Definition at line 581 of file mod_global_parameters.t.

◆ rk_beta54

double precision mod_global_parameters::rk_beta54

Definition at line 583 of file mod_global_parameters.t.

◆ rk_beta55

double precision mod_global_parameters::rk_beta55

Definition at line 583 of file mod_global_parameters.t.

◆ rk_c2

double precision mod_global_parameters::rk_c2

Definition at line 581 of file mod_global_parameters.t.

◆ rk_c3

double precision mod_global_parameters::rk_c3

Definition at line 581 of file mod_global_parameters.t.

◆ rk_c4

double precision mod_global_parameters::rk_c4

Definition at line 581 of file mod_global_parameters.t.

◆ rk_c5

double precision mod_global_parameters::rk_c5

Definition at line 583 of file mod_global_parameters.t.

◆ rnode

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

Corner coordinates.

Definition at line 144 of file mod_global_parameters.t.

◆ rnode_sub

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

Definition at line 145 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 136 of file mod_global_parameters.t.

◆ rpdx

integer, parameter mod_global_parameters::rpdx

Definition at line 141 of file mod_global_parameters.t.

◆ rpxmax

integer, parameter mod_global_parameters::rpxmax

Definition at line 140 of file mod_global_parameters.t.

◆ rpxmax0_

integer, parameter mod_global_parameters::rpxmax0_ =^ND

Definition at line 139 of file mod_global_parameters.t.

◆ rpxmin

integer, parameter mod_global_parameters::rpxmin

Definition at line 138 of file mod_global_parameters.t.

◆ rpxmin0_

integer, parameter mod_global_parameters::rpxmin0_ =0

Definition at line 137 of file mod_global_parameters.t.

◆ save_file

logical, dimension(nfile) mod_global_parameters::save_file

whether or not to save an output file

Definition at line 203 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 625 of file mod_global_parameters.t.

◆ saveigrid

integer mod_global_parameters::saveigrid

Definition at line 301 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 282 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 361 of file mod_global_parameters.t.

◆ size_block

integer mod_global_parameters::size_block

Definition at line 37 of file mod_global_parameters.t.

◆ size_block_io

integer mod_global_parameters::size_block_io

Definition at line 43 of file mod_global_parameters.t.

◆ size_block_io_stg

integer mod_global_parameters::size_block_io_stg

Definition at line 45 of file mod_global_parameters.t.

◆ slab

logical mod_global_parameters::slab

Cartesian geometry or not.

Definition at line 72 of file mod_global_parameters.t.

◆ slab_uniform

logical mod_global_parameters::slab_uniform

uniform Cartesian geometry or not (stretched Cartesian)

Definition at line 75 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 510 of file mod_global_parameters.t.

◆ small_density

double precision mod_global_parameters::small_density

Definition at line 345 of file mod_global_parameters.t.

◆ small_pressure

double precision mod_global_parameters::small_pressure

Definition at line 345 of file mod_global_parameters.t.

◆ small_temperature

double precision mod_global_parameters::small_temperature

error handling

Definition at line 345 of file mod_global_parameters.t.

◆ snapshotini

integer mod_global_parameters::snapshotini

Resume from the snapshot with this index.

Definition at line 269 of file mod_global_parameters.t.

◆ snapshotnext

integer mod_global_parameters::snapshotnext

IO: snapshot and collapsed views output numbers/labels.

Definition at line 212 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 573 of file mod_global_parameters.t.

◆ spectrum

logical mod_global_parameters::spectrum =.false.

output spectrum

Definition at line 646 of file mod_global_parameters.t.

◆ ssprk_order

integer mod_global_parameters::ssprk_order

SSPRK choice of methods (both threestep and fourstep, Shu-Osher 2N* implementation) also fivestep SSPRK54.

Definition at line 580 of file mod_global_parameters.t.

◆ stagger_grid

logical mod_global_parameters::stagger_grid =.false.

True for using stagger grid.

Definition at line 418 of file mod_global_parameters.t.

◆ stretch_none

integer, parameter mod_global_parameters::stretch_none = 0

No stretching.

Definition at line 103 of file mod_global_parameters.t.

◆ stretch_symm

integer, parameter mod_global_parameters::stretch_symm = 2

Symmetric stretching around the center.

Definition at line 105 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 113 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 109 of file mod_global_parameters.t.

◆ stretch_uni

integer, parameter mod_global_parameters::stretch_uni = 1

Unidirectional stretching from a side.

Definition at line 104 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 111 of file mod_global_parameters.t.

◆ tfixgrid

double precision mod_global_parameters::tfixgrid

Fix the AMR grid after this time.

Definition at line 393 of file mod_global_parameters.t.

◆ time_advance

logical mod_global_parameters::time_advance

Definition at line 444 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 209 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 206 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 299 of file mod_global_parameters.t.

◆ time_init

double precision mod_global_parameters::time_init

Start time for the simulation.

Definition at line 469 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 524 of file mod_global_parameters.t.

◆ time_max

double precision mod_global_parameters::time_max

End time for the simulation.

Definition at line 472 of file mod_global_parameters.t.

◆ time_stepper

character(len=std_len) mod_global_parameters::time_stepper

Which time stepper to use.

Definition at line 521 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 169 of file mod_global_parameters.t.

◆ tsavelast

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

Definition at line 172 of file mod_global_parameters.t.

◆ tsavestart

double precision, dimension(nfile) mod_global_parameters::tsavestart

Start of read out (not counting specified read outs)

Definition at line 193 of file mod_global_parameters.t.

◆ tvdlfeps

double precision mod_global_parameters::tvdlfeps

Definition at line 569 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 37 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 43 of file mod_global_parameters.t.

◆ type_block_io_stg

integer mod_global_parameters::type_block_io_stg

MPI type for IO of staggered variables.

Definition at line 45 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 49 of file mod_global_parameters.t.

◆ type_block_wcc_io

integer mod_global_parameters::type_block_wcc_io

Definition at line 49 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 47 of file mod_global_parameters.t.

◆ type_block_xcc_io

integer mod_global_parameters::type_block_xcc_io

Definition at line 47 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 39 of file mod_global_parameters.t.

◆ type_coarse_block_stg

integer, dimension(^nd,2^d&) mod_global_parameters::type_coarse_block_stg

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

Definition at line 41 of file mod_global_parameters.t.

◆ type_endian

integer mod_global_parameters::type_endian

Definition at line 254 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 542 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 538 of file mod_global_parameters.t.

◆ type_sub_block

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

Definition at line 39 of file mod_global_parameters.t.

◆ type_sub_block_stg

integer, dimension(^nd,2^d&) mod_global_parameters::type_sub_block_stg

Definition at line 41 of file mod_global_parameters.t.

◆ typeaverage

character(len=std_len) mod_global_parameters::typeaverage

Definition at line 562 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 632 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 560 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 455 of file mod_global_parameters.t.

◆ typecurl

character(len=std_len) mod_global_parameters::typecurl

Definition at line 596 of file mod_global_parameters.t.

◆ typedimsplit

character(len=std_len) mod_global_parameters::typedimsplit

Definition at line 563 of file mod_global_parameters.t.

◆ typediv

character(len=std_len) mod_global_parameters::typediv

Definition at line 596 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 554 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 266 of file mod_global_parameters.t.

◆ typeghostfill

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

Definition at line 634 of file mod_global_parameters.t.

◆ typegrad

character(len=std_len) mod_global_parameters::typegrad

Definition at line 596 of file mod_global_parameters.t.

◆ typegradlimiter

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

Definition at line 548 of file mod_global_parameters.t.

◆ typelimiter

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

Definition at line 545 of file mod_global_parameters.t.

◆ typepoly

character(len=std_len) mod_global_parameters::typepoly

Definition at line 565 of file mod_global_parameters.t.

◆ typepred1

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

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

Definition at line 535 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 551 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 Discretization.

Definition at line 528 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 557 of file mod_global_parameters.t.

◆ undefined

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

Definition at line 17 of file mod_global_parameters.t.

◆ unit_charge

double precision mod_global_parameters::unit_charge =1.d0

Physical scaling factor for charge.

Definition at line 336 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 318 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 312 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 330 of file mod_global_parameters.t.

◆ unit_mass

double precision mod_global_parameters::unit_mass =1.d0

Physical scaling factor for mass.

Definition at line 339 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 333 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 327 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 324 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 315 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 321 of file mod_global_parameters.t.

◆ unitanalysis

integer, parameter mod_global_parameters::unitanalysis =14

Definition at line 244 of file mod_global_parameters.t.

◆ unitcollapse

integer, parameter mod_global_parameters::unitcollapse =13

Definition at line 243 of file mod_global_parameters.t.

◆ unitconvert

integer, parameter mod_global_parameters::unitconvert =10

Definition at line 240 of file mod_global_parameters.t.

◆ uniterr

integer, parameter mod_global_parameters::uniterr =6

Unit for error messages.

Definition at line 236 of file mod_global_parameters.t.

◆ unitpar

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

Definition at line 239 of file mod_global_parameters.t.

◆ unitslice

integer, parameter mod_global_parameters::unitslice =11

Definition at line 241 of file mod_global_parameters.t.

◆ unitsnapshot

integer, parameter mod_global_parameters::unitsnapshot =12

Definition at line 242 of file mod_global_parameters.t.

◆ unitstdin

integer, parameter mod_global_parameters::unitstdin =5

Unit for standard input.

Definition at line 230 of file mod_global_parameters.t.

◆ unitterm

integer, parameter mod_global_parameters::unitterm =6

Unit for standard output.

Definition at line 233 of file mod_global_parameters.t.

◆ use_imex_scheme

logical mod_global_parameters::use_imex_scheme

whether IMEX in use or not

Definition at line 594 of file mod_global_parameters.t.

◆ use_multigrid

logical mod_global_parameters::use_multigrid = .false.

Use multigrid (only available in 2D and 3D)

Definition at line 376 of file mod_global_parameters.t.

◆ use_particles

logical mod_global_parameters::use_particles =.false.

Use particles module or not.

Definition at line 373 of file mod_global_parameters.t.

◆ usr_filename

character(len=std_len) mod_global_parameters::usr_filename

User parameter file.

Definition at line 163 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 602 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 294 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 390 of file mod_global_parameters.t.

◆ w_write

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

Definition at line 251 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 475 of file mod_global_parameters.t.

◆ wavelength

integer mod_global_parameters::wavelength

Definition at line 648 of file mod_global_parameters.t.

◆ writelevel

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

Definition at line 252 of file mod_global_parameters.t.

◆ writespshift

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

Definition at line 253 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 304 of file mod_global_parameters.t.

◆ xmemory

double precision mod_global_parameters::xmemory

Definition at line 304 of file mod_global_parameters.t.

◆ xprob

double precision mod_global_parameters::xprob

minimum and maximum domain boundaries for each dimension

Definition at line 58 of file mod_global_parameters.t.

◆ xstretch

double precision mod_global_parameters::xstretch

physical extent of stretched border in symmetric stretching

Definition at line 122 of file mod_global_parameters.t.

◆ z_

integer mod_global_parameters::z_ = -1

Definition at line 63 of file mod_global_parameters.t.