MPI-AMRVAC 3.2
The MPI - Adaptive Mesh Refinement - Versatile Advection Code (development version)
Loading...
Searching...
No Matches
mod_global_parameters.t File Reference

Go to the source code of this file.

Modules

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

Functions/Subroutines

pure subroutine mod_global_parameters::cross_product (ixil, ixol, a, b, axb)
 Cross product of two vectors.

Variables

double precision mod_global_parameters::xprob
 minimum and maximum domain boundaries for each dimension
double precision mod_global_parameters::l
double precision, dimension(^nd) mod_global_parameters::dxlevel
 store unstretched cell size of current level
double precision, dimension(^nd) mod_global_parameters::qstretch_baselevel
 stretch factor between cells at AMR level 1, per dimension
double precision mod_global_parameters::xstretch
 physical extent of stretched border in symmetric stretching
double precision, dimension(:), allocatable, parameter mod_global_parameters::d = 1|
double precision mod_global_parameters::time_between_print
 to monitor timeintegration loop at given wall-clock time intervals
double precision mod_global_parameters::time_bc
 accumulated wall-clock time spent on boundary conditions
double precision mod_global_parameters::dt
 global time step
double precision mod_global_parameters::courantpar
 The Courant (CFL) number used for the simulation.
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.
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 \).
double precision mod_global_parameters::global_time
 The global simulation time.
double precision mod_global_parameters::time_init
 Start time for the simulation.
double precision mod_global_parameters::time_max
 End time for the simulation.
double precision mod_global_parameters::wall_time_max
 Ending wall time (in hours) for the simulation.
double precision mod_global_parameters::dtmin
 Stop the simulation when the time step becomes smaller than this value.
double precision mod_global_parameters::length_convert_factor
 Conversion factor for length unit.
double precision mod_global_parameters::time_convert_factor
 Conversion factor for time unit.
double precision mod_global_parameters::tfixgrid
 Fix the AMR grid after this time.
double precision mod_global_parameters::unit_length =1.d0
 Physical scaling factor for length.
double precision mod_global_parameters::unit_time =1.d0
 Physical scaling factor for time.
double precision mod_global_parameters::unit_density =1.d0
 Physical scaling factor for density.
double precision mod_global_parameters::unit_velocity =1.d0
 Physical scaling factor for velocity.
double precision mod_global_parameters::unit_temperature =1.d0
 Physical scaling factor for temperature.
double precision mod_global_parameters::unit_pressure =1.d0
 Physical scaling factor for pressure.
double precision mod_global_parameters::unit_magneticfield =1.d0
 Physical scaling factor for magnetic field.
double precision mod_global_parameters::unit_numberdensity =1.d0
 Physical scaling factor for number density.
double precision mod_global_parameters::unit_charge =1.d0
 Physical scaling factor for charge.
double precision mod_global_parameters::unit_mass =1.d0
 Physical scaling factor for mass.
double precision mod_global_parameters::c_norm =1.d0
 Normalised speed of light.
double precision mod_global_parameters::arad_norm =1.d0
 Normalised radiation constant.
double precision mod_global_parameters::unit_opacity =1.d0
 Physical scaling factor for Opacity.
double precision mod_global_parameters::unit_radflux =1.d0
 Physical scaling factor for radiation flux.
double precision mod_global_parameters::unit_erad =1.d0
 Physical scaling factor for radiation energy density.
double precision mod_global_parameters::const_rad_a
 Physical factors useful for radiation fld.
double precision mod_global_parameters::const_kappae
double precision mod_global_parameters::const_sigmasb
double precision mod_global_parameters::small_temperature
 error handling
double precision mod_global_parameters::small_pressure
double precision mod_global_parameters::small_density
double precision mod_global_parameters::small_e
double precision mod_global_parameters::small_r_e
double precision mod_global_parameters::phys_trac_mask
double precision mod_global_parameters::minfip =1.d0
double precision mod_global_parameters::maxfip =4.d0
double precision mod_global_parameters::bdip =0.d0
 amplitude of background dipolar, quadrupolar, octupolar, user's field
double precision mod_global_parameters::bquad =0.d0
double precision mod_global_parameters::boct =0.d0
double precision mod_global_parameters::busr =0.d0
double precision mod_global_parameters::xload
 Stores the memory and load imbalance, used in printlog.
double precision mod_global_parameters::xmemory
double precision mod_global_parameters::tvdlfeps
double precision mod_global_parameters::rk_a21
 RK2(alfa) method parameters from Butcher tableau.
double precision mod_global_parameters::rk_b1
double precision mod_global_parameters::rk_b2
double precision mod_global_parameters::imex222_lambda
 IMEX-222(lambda) one-parameter family of schemes.
double precision mod_global_parameters::rk_beta11
double precision mod_global_parameters::rk_beta22
double precision mod_global_parameters::rk_beta33
double precision mod_global_parameters::rk_beta44
double precision mod_global_parameters::rk_c2
double precision mod_global_parameters::rk_c3
double precision mod_global_parameters::rk_c4
double precision mod_global_parameters::rk_alfa21
double precision mod_global_parameters::rk_alfa22
double precision mod_global_parameters::rk_alfa31
double precision mod_global_parameters::rk_alfa33
double precision mod_global_parameters::rk_alfa41
double precision mod_global_parameters::rk_alfa44
double precision mod_global_parameters::rk_beta54
double precision mod_global_parameters::rk_beta55
double precision mod_global_parameters::rk_alfa53
double precision mod_global_parameters::rk_alfa54
double precision mod_global_parameters::rk_alfa55
double precision mod_global_parameters::rk_c5
double precision mod_global_parameters::rk3_a21
double precision mod_global_parameters::rk3_a31
double precision mod_global_parameters::rk3_a32
double precision mod_global_parameters::rk3_b1
double precision mod_global_parameters::rk3_b2
double precision mod_global_parameters::rk3_b3
double precision mod_global_parameters::rk3_c2
double precision mod_global_parameters::rk3_c3
double precision mod_global_parameters::ars_gamma
 IMEX_ARS3 parameter ars_gamma.
double precision mod_global_parameters::imex_a21
double precision mod_global_parameters::imex_a31
double precision mod_global_parameters::imex_a32
double precision mod_global_parameters::imex_b1
double precision mod_global_parameters::imex_b2
double precision mod_global_parameters::imex_ha21
double precision mod_global_parameters::imex_ha22
double precision mod_global_parameters::imex_b3
double precision mod_global_parameters::imex_c2
double precision mod_global_parameters::imex_c3
double precision mod_global_parameters::imex_a22
 IMEX_CB3a extra parameters.
double precision mod_global_parameters::imex_a33
double precision mod_global_parameters::imex_ha32
double precision mod_global_parameters::cmax_global
 global fastest wave speed needed in fd scheme and glm method
double precision mod_global_parameters::vmax_global
 global fastest flow speed needed in glm method
double precision mod_global_parameters::instrument_resolution_factor
 times for enhancing spatial resolution for EUV image/spectra
double precision mod_global_parameters::r_occultor
 the white light emission below it (unit=Rsun) is not visible
double precision mod_global_parameters::los_theta
 direction of the line of sight (LOS)
double precision mod_global_parameters::los_phi
double precision mod_global_parameters::image_rotate
 rotation of image
double precision, dimension(1:3) mod_global_parameters::x_origin
 where the is the origin (X=0,Y=0) of image
character(len=std_len) mod_global_parameters::filename_spectrum
 Base file name for synthetic EUV spectrum output.
character(len=std_len) mod_global_parameters::radiation_transfer
 Synthetic emission transfer mode: thin or thick.
character(len=std_len) mod_global_parameters::ray_method
 Synthetic emission ray traversal method.
character(len=std_len) mod_global_parameters::dat_resolution_mode
 Data-resolution image spacing: nominal or minimum actual cell size.
character(len=std_len) mod_global_parameters::emission_model
 Synthetic emission physical model selector.
logical mod_global_parameters::instrument_postprocess
 Post-process dat-resolution EUV images onto the instrument pixel grid.
double precision mod_global_parameters::radio_frequency
 Observing frequency for radio free-free synthesis in Hz.
double precision mod_global_parameters::radio_beam_fwhm
 Gaussian radio beam full width at half maximum in arcsec.
double precision mod_global_parameters::radio_beam_pixel_size
 Output pixel size for radio beam post-processing in arcsec; <=0 uses FWHM/3.
integer mod_global_parameters::radsyn_pixel_batch
 Number of image pixels processed in one ray-segment MPI batch.
integer mod_global_parameters::radsyn_segment_batch_factor
 Maximum ray segments per pixel batch, as a factor of radsyn_pixel_batch; <=0 uses memory budget. Default value is set from the best spherical u512 benchmark behavior seen so far.
double precision mod_global_parameters::radsyn_segment_memory_mb
 Approximate per-rank temporary memory budget, in MiB, for automatic ray-segment batch sizing.
integer mod_global_parameters::radsyn_segment_comm_factor
 Maximum ray segments per segmented MPI all-to-all round, as a factor of radsyn_pixel_batch.
logical mod_global_parameters::radsyn_verbose
 Print synthetic-emission ray-tracing profiling counters.
double precision mod_global_parameters::spectrum_window_min
 spectral window
double precision mod_global_parameters::spectrum_window_max
double precision mod_global_parameters::location_slit
 location of the slit
double precision mod_global_parameters::r_opt_thick
 for spherical coordinate, region below it (unit=Rsun) is treated as not transparent
double precision, dimension(^nd, 2) mod_global_parameters::writespshift
 domain percentage cut off shifted from each boundary when converting data
double precision, dimension(:), allocatable mod_global_parameters::entropycoef
double precision, dimension(:), allocatable mod_global_parameters::dg
 extent of grid blocks in domain per dimension, in array over levels
double precision, dimension(:,:), allocatable mod_global_parameters::rnode
 Corner coordinates.
double precision, dimension(:,:), allocatable mod_global_parameters::rnode_sub
double precision, dimension(:,:), allocatable mod_global_parameters::dx
 spatial steps for all dimensions at all levels
double precision, dimension(:), allocatable mod_global_parameters::refine_threshold
 Error tolerance for refinement decision.
double precision, dimension(:), allocatable mod_global_parameters::derefine_ratio
 Error tolerance ratio for derefinement decision.
double precision, dimension(:,:), allocatable mod_global_parameters::qstretch
 Stretching factors and first cell size for each AMR level and dimension.
double precision, dimension(:,:), allocatable mod_global_parameters::dxfirst
double precision, dimension(:,:), allocatable mod_global_parameters::dxfirst_1mq
double precision, dimension(:,:), allocatable mod_global_parameters::dxmid
double precision, dimension(:), allocatable mod_global_parameters::w_convert_factor
 Conversion factors the primitive variables.
double precision, dimension(:), allocatable mod_global_parameters::w_refine_weight
 Weights of variables used to calculate error for mesh refinement.
double precision, dimension(:), allocatable mod_global_parameters::amr_wavefilter
 refinement: lohner estimate wavefilter setting
integer, parameter mod_global_parameters::nsavehi =100
 Maximum number of saves that can be defined by tsave or itsave.
integer, parameter mod_global_parameters::nfile = 5
 Number of output methods.
double precision, dimension(nsavehi, nfile) mod_global_parameters::tsave
 Save output of type N on times tsave(:, N).
double precision, dimension(nfile) mod_global_parameters::tsavelast
double precision, dimension(nfile) mod_global_parameters::dtsave
 Repeatedly save output of type N when dtsave(N) simulation time has passed.
double precision, dimension(nfile) mod_global_parameters::tsavestart
 Start of read out (not counting specified read outs).
integer, parameter mod_global_parameters::ndim =^ND
 Number of spatial dimensions for grid variables.
integer mod_global_parameters::npe
 The number of MPI tasks.
integer mod_global_parameters::mype
 The rank of the current MPI task.
integer mod_global_parameters::icomm
 The MPI communicator.
integer mod_global_parameters::ierrmpi
 A global MPI error return code.
logical mod_global_parameters::lb_diagnose = .false.
 Per-rank load-balance timing diagnostic toggle (off by default). When .true., per-rank wall times are gathered every step and written to <basename>_rank_timing.log.
logical mod_global_parameters::lb_automatic = .false.
 Cost-weighted automatic load balancer toggle (off by default). When .true., the SFC partitioner cuts on cumulative measured per-block cost rather than on equal block counts.
integer mod_global_parameters::lb_interval = 10
 Rebalance every lb_interval cycles when lb_automatic is on.
double precision mod_global_parameters::lb_alpha = 0.9d0
 Exponential-moving-average decay for the per-block cost. costlist <- lb_alpha*costlist + (1-lb_alpha)*measured. 0 = no memory (volatile), 1 = no update.
double precision mod_global_parameters::lb_max_block_ratio = 1.25d0
 Bound on the memory imbalance get_Morton_range_costed may create: no rank may hold more than lb_max_block_ratio * (nleafs/npe) blocks. Cost balance and memory balance are in tension, as a rank owning cheap blocks must hold more of them to match one owning expensive blocks. 1.0 is the equal-block cut; larger values allow more freedom to follow cost. get_Morton_range_active bounds the same ratio through its wa/wp weights.
double precision, dimension(:), allocatable mod_global_parameters::block_cost
 Per-step per-block (per-rank, indexed by igrid) cost accumulator. Reset at start of each advance call; filled inside iigrid loops by the per-block timer wrappers in mod_advance.t and mod_supertimestepping.t.
double precision, dimension(:), allocatable mod_global_parameters::block_cost_rt
 Per-step per-block cost of the short-characteristics sweep, indexed by igrid. Separate from block_cost because rt_sc_solve() runs before advance(), which zeroes block_cost on entry. advance() seeds block_cost from this array and clears it for the next solve, so both costs share a partition weight.
double precision mod_global_parameters::lb_rt_accum = 0.0d0
 Per-rank wall time spent in the SC radiative-transfer KBA sweep this step, for the lb_diagnose rank-timing log. Filled by mod_rt_sc_solvers (which runs before advance), gathered and zeroed inside advance's diagnostic block.
double precision, dimension(:), allocatable mod_global_parameters::costlist
 Persistent global per-Morton-leaf EWMA cost, in seconds (block_cost is a wall-clock accumulation). Sized to max_blocks*npe (the upper bound on nleafs); only the first nleafs entries are meaningful. Morton numbering is invariant across load_balance migration, so costlist values are correctly preserved when blocks change rank. Refinement events insert/remove Morton indices, after which the EWMA recovers over ~5 cycles. Indexed 1..nleafs. Updated by EWMA blend inside get_Morton_range_costed.
logical, dimension(:), allocatable mod_global_parameters::costlist_seen
 Whether the matching costlist slot has ever carried a measurement. Morton indices created by a refinement event have not been timed; they are seeded with the mean of the measured slots, since costlist is a wall time and any fixed seed would be a units error.
integer mod_global_parameters::log_fh
 MPI file handle for logfile.
integer mod_global_parameters::type_block
 MPI type for block including ghost cells and its size.
integer mod_global_parameters::size_block
integer mod_global_parameters::type_coarse_block
 MPI type for block coarsened by 2, and for its children blocks.
integer, dimension(2^d &) mod_global_parameters::type_sub_block
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.
integer, dimension(^nd, 2^d &) mod_global_parameters::type_sub_block_stg
integer mod_global_parameters::type_block_io
 MPI type for IO: block excluding ghost cells.
integer mod_global_parameters::size_block_io
integer mod_global_parameters::type_block_io_stg
 MPI type for IO of staggered variables.
integer mod_global_parameters::size_block_io_stg
integer mod_global_parameters::type_block_xc_io
 MPI type for IO: cell corner (xc) or cell center (xcc) coordinates.
integer mod_global_parameters::type_block_xcc_io
integer mod_global_parameters::type_block_wc_io
 MPI type for IO: cell corner (wc) or cell center (wcc) variables.
integer mod_global_parameters::type_block_wcc_io
integer mod_global_parameters::ixm
 the mesh range of a physical block without ghost cells
integer mod_global_parameters::ll
integer mod_global_parameters::r_ = -1
 Indices for cylindrical coordinates FOR TESTS, negative value when not used:
integer mod_global_parameters::phi_ = -1
integer mod_global_parameters::z_ = -1
integer mod_global_parameters::ndir =ndim
 Number of spatial dimensions (components) for vector variables.
integer, parameter mod_global_parameters::sdim =3
 starting dimension for electric field
integer mod_global_parameters::domain_nx
 number of cells for each dimension in level-one mesh
integer mod_global_parameters::block_nx
 number of cells for each dimension in grid block excluding ghostcells
integer, parameter mod_global_parameters::ixglo
 Lower index of grid block arrays (always 1).
integer mod_global_parameters::ixghi
 Upper index of grid block arrays.
integer, parameter mod_global_parameters::ixgslo
 Lower index of stagger grid block arrays (always 0).
integer mod_global_parameters::ixgshi
 Upper index of stagger grid block arrays.
integer mod_global_parameters::nghostcells = 2
 Number of ghost cells surrounding a grid.
integer, parameter mod_global_parameters::stretch_none = 0
 No stretching.
integer, parameter mod_global_parameters::stretch_uni = 1
 Unidirectional stretching from a side.
integer, parameter mod_global_parameters::stretch_symm = 2
 Symmetric stretching around the center.
integer, dimension(ndim) mod_global_parameters::stretch_type
 What kind of stretching is used per dimension.
integer, dimension(ndim) mod_global_parameters::nstretchedblocks_baselevel
 (even) number of (symmetrically) stretched blocks at AMR level 1, per dimension
integer, dimension(:,:), allocatable mod_global_parameters::nstretchedblocks
 (even) number of (symmetrically) stretched blocks per level and dimension
integer, parameter mod_global_parameters::nodehi =^ND+1
 grid hierarchy info (level and grid indices)
integer, parameter mod_global_parameters::plevel_ =1
integer, parameter mod_global_parameters::pig
integer, parameter mod_global_parameters::d_ =plevel_+^D
integer, dimension(:,:), allocatable mod_global_parameters::node
integer, dimension(:,:), allocatable mod_global_parameters::node_sub
integer, parameter mod_global_parameters::rnodehi =3*^ND
 grid location info (corner coordinates and grid spacing)
integer, parameter mod_global_parameters::rpxmin0_ =0
integer, parameter mod_global_parameters::rpxmin
integer, parameter mod_global_parameters::rpxmax0_ =^ND
integer, parameter mod_global_parameters::rpxmax
integer, parameter mod_global_parameters::rpdx
integer mod_global_parameters::index_latest_data
 index number of the latest existing data file
integer, dimension(nsavehi, nfile) mod_global_parameters::itsave
 Save output of type N on iterations itsave(:, N).
integer, dimension(nfile) mod_global_parameters::itsavelast
integer, dimension(nfile) mod_global_parameters::ditsave
 Repeatedly save output of type N when ditsave(N) time steps have passed.
integer, dimension(nfile) mod_global_parameters::isavet
integer, dimension(nfile) mod_global_parameters::isaveit
integer mod_global_parameters::collapselevel
 The level at which to produce line-integrated / collapsed output.
integer, dimension(1:nfile) mod_global_parameters::n_saves
 Number of saved files of each type.
integer mod_global_parameters::snapshotnext
 IO: snapshot and collapsed views output numbers/labels.
integer mod_global_parameters::collapsenext
integer mod_global_parameters::slicenext
 IO: slice output number/label.
integer, parameter mod_global_parameters::filelog_ = 1
 Constant indicating log output.
integer, parameter mod_global_parameters::fileout_ = 2
 Constant indicating regular output.
integer, parameter mod_global_parameters::fileslice_ = 3
 Constant indicating slice output.
integer, parameter mod_global_parameters::filecollapse_ = 4
 Constant indicating collapsed output.
integer, parameter mod_global_parameters::fileanalysis_ = 5
 Constant indicating analysis output (see Writing a custom analysis subroutine).
integer, parameter mod_global_parameters::unitstdin =5
 Unit for standard input.
integer, parameter mod_global_parameters::unitterm =6
 Unit for standard output.
integer, parameter mod_global_parameters::uniterr =6
 Unit for error messages.
integer, parameter mod_global_parameters::unitpar =9
 file handle for IO
integer, parameter mod_global_parameters::unitconvert =10
integer, parameter mod_global_parameters::unitslice =11
integer, parameter mod_global_parameters::unitsnapshot =12
integer, parameter mod_global_parameters::unitcollapse =13
integer, parameter mod_global_parameters::unitanalysis =14
integer mod_global_parameters::nwauxio
 Number of auxiliary variables that are only included in output.
integer mod_global_parameters::level_io
integer mod_global_parameters::level_io_min
integer mod_global_parameters::level_io_max
integer mod_global_parameters::type_endian
integer mod_global_parameters::snapshotini
 Resume from the snapshot with this index.
integer mod_global_parameters::number_equi_vars = 0
 number of equilibrium set variables, besides the mag field
integer mod_global_parameters::phys_trac_type =1
integer mod_global_parameters::phys_trac_finegrid =4
integer mod_global_parameters::phys_trac_nzones =1
double precision, dimension(10) mod_global_parameters::phys_trac_zone_splits =-1.d0
integer, parameter mod_global_parameters::type_maxsum =1
 integer switchers for type courant
integer, parameter mod_global_parameters::type_summax =2
integer, parameter mod_global_parameters::type_minimum =3
integer mod_global_parameters::max_blocks
 The maximum number of grid blocks in a processor.
integer, parameter mod_global_parameters::nlevelshi = 20
 The maximum number of levels in the grid refinement.
integer mod_global_parameters::refine_max_level
 Maximal number of AMR levels.
integer mod_global_parameters::itfixgrid
 Fix the AMR grid after this many time steps.
integer mod_global_parameters::ditregrid
 Reconstruct the AMR grid once every ditregrid iteration(s).
integer mod_global_parameters::refine_criterion
 select types of refine criterion
integer mod_global_parameters::nbufferx
 Number of cells as buffer zone.
integer mod_global_parameters::levmin
integer mod_global_parameters::levmax
integer mod_global_parameters::levmax_sub
integer mod_global_parameters::iprob
 problem switch allowing different setups in same usr_mod.t
integer, dimension(3, 3) mod_global_parameters::kr
 Kronecker delta tensor.
integer, dimension(3, 3, 3) mod_global_parameters::lvc
 Levi-Civita tensor.
integer mod_global_parameters::type_courant =1
 How to compute the CFL-limited time step.
integer mod_global_parameters::it
 Number of time steps taken.
integer mod_global_parameters::it_max
 Stop the simulation after this many time steps have been taken.
integer mod_global_parameters::it_init
 initial iteration count
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 \).
integer mod_global_parameters::istep
 Index of the sub-step in a multi-step time integrator.
integer mod_global_parameters::nstep
 How many sub-steps the time integrator takes.
integer, parameter mod_global_parameters::fs_hll =1
 flux schemes
integer, parameter mod_global_parameters::fs_hllc =2
integer, parameter mod_global_parameters::fs_hlld =3
integer, parameter mod_global_parameters::fs_hllcd =4
integer, parameter mod_global_parameters::fs_tvdlf =5
integer, parameter mod_global_parameters::fs_tvdmu =6
integer, parameter mod_global_parameters::fs_tvd =7
integer, parameter mod_global_parameters::fs_hancock =8
integer, parameter mod_global_parameters::fs_cd =9
integer, parameter mod_global_parameters::fs_cd4 =10
integer, parameter mod_global_parameters::fs_fd =11
integer, parameter mod_global_parameters::fs_source =12
integer, parameter mod_global_parameters::fs_nul =13
integer mod_global_parameters::t_stepper =0
 time stepper type
integer, parameter mod_global_parameters::onestep =1
integer, parameter mod_global_parameters::twostep =2
integer, parameter mod_global_parameters::threestep =3
integer, parameter mod_global_parameters::fourstep =4
integer, parameter mod_global_parameters::fivestep =5
integer mod_global_parameters::t_integrator =0
 time integrator method
integer, parameter mod_global_parameters::forward_euler =1
integer, parameter mod_global_parameters::predictor_corrector =2
integer, parameter mod_global_parameters::ssprk3 =3
integer, parameter mod_global_parameters::ssprk4 =4
integer, parameter mod_global_parameters::ssprk5 =5
integer, parameter mod_global_parameters::imex_euler =6
integer, parameter mod_global_parameters::imex_sp =7
integer, parameter mod_global_parameters::rk2_alf =8
integer, parameter mod_global_parameters::ssprk2 =9
integer, parameter mod_global_parameters::imex_midpoint =10
integer, parameter mod_global_parameters::imex_trapezoidal =11
integer, parameter mod_global_parameters::imex_222 =12
integer, parameter mod_global_parameters::rk3_bt =13
integer, parameter mod_global_parameters::imex_ars3 =14
integer, parameter mod_global_parameters::imex_232 =15
integer, parameter mod_global_parameters::imex_cb3a =16
integer, parameter mod_global_parameters::rk4 =17
integer, dimension(:), allocatable mod_global_parameters::ng
 number of grid blocks in domain per dimension, in array over levels
integer, dimension(:), allocatable mod_global_parameters::flux_method
 Which flux scheme of spatial discretization to use (per grid level).
integer, dimension(:), allocatable mod_global_parameters::typepred1
 The spatial discretization for the predictor step when using a two step PC method.
integer, dimension(:), allocatable mod_global_parameters::type_limiter
 Type of slope limiter used for reconstructing variables on cell edges.
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'.
double precision mod_global_parameters::ppm_avisc = 0.0d0
 Coefficient alpha of the explicit diffusive flux of Mignone et al. 2005 eq. B19-B21, the second half of PPM's dissipation algorithm. 0 = off (default); the paper says "alpha is typically set to 0.1".
double precision mod_global_parameters::ppm_rjv = 0.0d0
 Residual-jump velocity reconstruction (RJV). 0 = off (default), 1 = full strength.
integer mod_global_parameters::b0i =0
 background magnetic field location indicator
integer mod_global_parameters::prolong_limiter =0
 Limiter used for prolongation to refined grids and ghost cells.
integer mod_global_parameters::boundspeed
 bound (left/min and right.max) speed of Riemann fan
integer mod_global_parameters::nxdiffusehllc
integer mod_global_parameters::ssprk_order
 SSPRK choice of methods (both threestep and fourstep, Shu-Osher 2N* implementation) also fivestep SSPRK54.
integer mod_global_parameters::rk3_switch
 RK3 Butcher table.
integer mod_global_parameters::imex_switch
 IMEX_232 choice and parameters.
integer, dimension(:, :), allocatable mod_global_parameters::typeboundary
 Array indicating the type of boundary condition per variable and per physical boundary.
integer, parameter mod_global_parameters::bc_special =1
 boundary condition types
integer, parameter mod_global_parameters::bc_cont =2
integer, parameter mod_global_parameters::bc_symm =3
integer, parameter mod_global_parameters::bc_asymm =4
integer, parameter mod_global_parameters::bc_periodic =5
integer, parameter mod_global_parameters::bc_aperiodic =6
integer, parameter mod_global_parameters::bc_noinflow =7
integer, parameter mod_global_parameters::bc_data =8
integer, parameter mod_global_parameters::bc_character =9
integer, parameter mod_global_parameters::bc_icarus =10
integer mod_global_parameters::wavelength
 wavelength for output
integer mod_global_parameters::emin_sxr
integer mod_global_parameters::emax_sxr
integer mod_global_parameters::spectrum_wl
 wave length for spectrum
integer mod_global_parameters::direction_slit
 direction of the slit (for dat resolution only)
logical mod_global_parameters::slab
 Cartesian geometry or not.
logical mod_global_parameters::slab_uniform
 uniform Cartesian geometry or not (stretched Cartesian)
logical mod_global_parameters::local_timestep = .false.
 each cell has its own timestep or not
logical, dimension(nfile) mod_global_parameters::save_file
 whether or not to save an output file
logical mod_global_parameters::stretch_uncentered
 If true, adjust mod_geometry routines to account for grid stretching (but the flux computation will not).
logical, dimension(ndim) mod_global_parameters::stretched_dim
 True if a dimension is stretched.
logical mod_global_parameters::resume_previous_run
 If true, restart a previous run from the latest snapshot.
logical mod_global_parameters::convert
 If true and restart_from_file is given, convert snapshots to other file formats.
logical mod_global_parameters::autoconvert
 If true, already convert to output format during the run.
logical mod_global_parameters::saveprim
 If true, convert from conservative to primitive variables in output.
logical mod_global_parameters::time_advance
 do time evolving
logical mod_global_parameters::final_dt_exit
 Force timeloop exit when final dt < dtmin.
logical mod_global_parameters::reset_time
 If true, reset iteration count and global_time to original values, and start writing snapshots at index 0.
logical mod_global_parameters::reset_it
 If true, reset iteration count to 0.
logical mod_global_parameters::final_dt_reduction
 If true, allow final dt reduction for matching time_max on output.
logical mod_global_parameters::firstprocess
 If true, call initonegrid_usr upon restarting.
logical mod_global_parameters::allow_ndir_change
 If true, allow a restart from a snapshot whose ndir differs from the current run (e.g. hd ndir=2 -> mhd ndir=3). Block I/O is ndim-based only, so the data loads exactly; use usr_transform_w to place the source vars into the right slots.
logical mod_global_parameters::pass_wall_time
 If true, wall time is up, modify snapshotnext for later overwrite.
logical mod_global_parameters::h_correction =.false.
 If true, do H-correction to fix the carbuncle problem at grid-aligned shocks.
logical mod_global_parameters::reset_grid
 If true, rebuild the AMR grid upon restarting.
logical mod_global_parameters::stagger_grid =.false.
 True for using stagger grid.
logical mod_global_parameters::ghostcell_comm_batched =.false.
 Limit outstanding ghost-cell send requests to avoid MPI request pressure. In large-scale MHD tests, the original all-at-once ghost-cell exchange could stall during spherical u512 initialization. Batching avoids that failure mode, while u256 5-step tests showed less than 0.1% total runtime difference. The original path is still available by setting this to false; if batching remains stable in broader tests, the old path can be removed later. Disabled by default; set this to true to opt in.
integer mod_global_parameters::ghostcell_comm_batch_size =64
logical mod_global_parameters::record_electric_field =.false.
 True for record electric field.
logical mod_global_parameters::dat_resolution
 resolution of the images
logical mod_global_parameters::output_tau
 output optical-depth map for synthetic emission when available
logical mod_global_parameters::output_absorption_fraction
 output absorption fraction for thick/thin EUV synthesis when available
logical, dimension(ndim) mod_global_parameters::collapse
 If collapse(DIM) is true, generate output integrated over DIM.
logical mod_global_parameters::nocartesian
 IO switches for conversion.
logical mod_global_parameters::use_particles =.false.
 Use particles module or not.
logical mod_global_parameters::use_multigrid = .false.
 Use multigrid (only available in 2D and 3D).
logical mod_global_parameters::prolongprimitive =.false.
 prolongate primitive variables in level-jump ghost cells
logical mod_global_parameters::coarsenprimitive =.false.
 coarsen primitive variables in level-jump ghost cells
logical mod_global_parameters::crash =.false.
 Save a snapshot before crash a run met unphysical values.
logical mod_global_parameters::check_small_values =.true.
 check and optionally fix unphysical small values (density, gas pressure)
logical mod_global_parameters::fix_small_values =.false.
 fix small values with average or replace methods
logical mod_global_parameters::b0field =.false.
 split magnetic field as background B0 field
logical mod_global_parameters::b0fieldalloccoarse =.false.
logical mod_global_parameters::si_unit =.false.
 Use SI units (.true.) or use cgs units (.false.).
logical mod_global_parameters::phys_trac =.false.
 Use TRAC for MHD or 1D HD.
logical mod_global_parameters::phys_escape_prob =.false.
 Use escape probability for radiative cooling modification.
logical mod_global_parameters::fix_conserve_global = .true.
 Whether to apply flux conservation at refinement boundaries.
logical mod_global_parameters::flux_adaptive_diffusion
double precision mod_global_parameters::flux_adaptive_diffusion_min
double precision mod_global_parameters::flux_adaptive_diffusion_scale
logical mod_global_parameters::flathllc
logical mod_global_parameters::flatcd
logical mod_global_parameters::flatsh
logical mod_global_parameters::source_split_usr
 Use split or unsplit way to add user's source terms, default: unsplit.
logical mod_global_parameters::any_source_split =.false.
 if any normal source term is added in split fasion
logical mod_global_parameters::dimsplit
logical mod_global_parameters::limit_on_wold
 VAC-type MUSCL-Hancock: limit the corrector slopes on w^n (typelimited='previous'), for time_stepper='twostep' with the Predictor_Corrector integrator and a Hancock predictor.
logical mod_global_parameters::use_imex_scheme
 whether IMEX in use or not
logical mod_global_parameters::need_global_cmax =.false.
 need global maximal wave speed
logical, dimension(ndim) mod_global_parameters::periodb
 True for dimensions with periodic boundaries.
logical, dimension(2, ndim) mod_global_parameters::poleb
 Indicates whether there is a pole at a boundary.
logical, dimension(ndim) mod_global_parameters::aperiodb
 True for dimensions with aperiodic boundaries.
logical mod_global_parameters::save_physical_boundary
 True for save physical boundary cells in dat files.
logical mod_global_parameters::ghost_copy =.false.
 whether copy values instead of interpolation in ghost cells of finer blocks
logical mod_global_parameters::internalboundary
 if there is an internal boundary
logical mod_global_parameters::activate_unit_arcsec
 use arcsec as length unit of images/spectra
logical mod_global_parameters::big_image
 big image
logical, dimension(:), allocatable mod_global_parameters::phyboundblock
 True if a block has any physical boundary.
logical, dimension(:), allocatable mod_global_parameters::w_write
 if true write the w variable in output
logical, dimension(:), allocatable mod_global_parameters::writelevel
logical, dimension(:), allocatable mod_global_parameters::loglimit
logical, dimension(:), allocatable mod_global_parameters::logflag
character(len= *), parameter mod_global_parameters::undefined = 'undefined'
character(len=40), dimension(nfile), parameter mod_global_parameters::output_names = ['log ', 'normal ', 'slice ', 'collapsed', 'analysis ']
 Names of the output methods.
character(len=std_len) mod_global_parameters::convert_type
 Which format to use when converting.
character(len=std_len) mod_global_parameters::collapse_type
character(len=std_len) mod_global_parameters::usr_filename
 User parameter file.
character(len=std_len) mod_global_parameters::base_filename
 Base file name for simulation output, which will be followed by a number.
character(len=std_len) mod_global_parameters::restart_from_file
 If not 'unavailable', resume from snapshot with this base file name.
character(len=std_len) mod_global_parameters::typefilelog
 Which type of log to write: 'normal', 'special', 'regression_test'.
character(len=std_len) mod_global_parameters::typeaverage
character(len=std_len) mod_global_parameters::typedimsplit
character(len=std_len) mod_global_parameters::geometry_name ='default'
character(len=std_len) mod_global_parameters::typepoly
character(len=std_len) mod_global_parameters::filename_euv
 Base file name for synthetic EUV emission output.
character(len=std_len) mod_global_parameters::filename_sxr
 Base file name for synthetic SXR emission output.
character(len=std_len) mod_global_parameters::filename_whitelight
 Base file name for synthetic white light.
character(len=std_len) mod_global_parameters::whitelight_instrument
 white light observation instrument
character(len=std_len) mod_global_parameters::typetvd
 Which type of TVD method to use.
character(len=std_len) mod_global_parameters::typediv
character(len=std_len) mod_global_parameters::typegrad
character(len=std_len), dimension(:), allocatable mod_global_parameters::par_files
 Which par files are used as input.
character(len=std_len), dimension(:), allocatable mod_global_parameters::typeentropy
 Which type of entropy fix to use with Riemann-type solvers.
type(state), pointer mod_global_parameters::block
 Block pointer for using one block and its previous state.