PB3D  [2.45]
Ideal linear high-n MHD stability in 3-D
rich_vars.f90
Go to the documentation of this file.
1 !------------------------------------------------------------------------------!
3 !------------------------------------------------------------------------------!
4 module rich_vars
5 #include <PB3D_macros.h>
6  use str_utilities
7  use output_ops
8  use messages
10 
11  implicit none
12  private
13  public rich_info, &
17 
18  ! global variables
19  integer :: rich_lvl
20  integer :: n_par_x
21  integer, parameter :: req_min_n_par_x = 20
22  integer :: min_n_par_x
23  logical :: use_guess
24  logical :: no_guess
25  logical :: rich_conv
26  complex(dp), allocatable :: sol_val_rich(:,:,:)
27  real(dp), allocatable :: x_axis_rich(:,:)
28  real(dp), allocatable :: max_rel_err(:)
29  integer, allocatable :: loc_max_rel_err(:,:)
30 
31 contains
34  elemental character(len=max_str_ln) function rich_info()
35  if (max_it_rich.gt.1) then
36  rich_info = ' for Richardson level '//trim(i2str(rich_lvl))
37  else
38  rich_info = ''
39  end if
40  end function rich_info
41 end module rich_vars
rich_vars::rich_info
elemental character(len=max_str_ln) function, public rich_info()
Returns string with possible extension with Richardson level or nothing if only one level and one par...
Definition: rich_vars.f90:35
num_vars::dp
integer, parameter, public dp
double precision
Definition: num_vars.f90:46
rich_vars::rich_conv
logical, public rich_conv
if Richarson extrapolation has converged
Definition: rich_vars.f90:25
num_vars
Numerical variables used by most other modules.
Definition: num_vars.f90:4
num_vars::max_str_ln
integer, parameter, public max_str_ln
maximum length of strings
Definition: num_vars.f90:50
rich_vars
Variables concerning Richardson extrapolation.
Definition: rich_vars.f90:4
str_utilities::i2str
elemental character(len=max_str_ln) function, public i2str(k)
Convert an integer to string.
Definition: str_utilities.f90:18
str_utilities
Operations on strings.
Definition: str_utilities.f90:4
rich_vars::x_axis_rich
real(dp), dimension(:,:), allocatable, public x_axis_rich
x axis for plot of Eigenvalues with Richardson level
Definition: rich_vars.f90:27
num_vars::max_it_rich
integer, public max_it_rich
number of levels for Richardson extrapolation
Definition: num_vars.f90:127
rich_vars::n_par_x
integer, public n_par_x
nr. of parallel points in field-aligned grid
Definition: rich_vars.f90:20
rich_vars::use_guess
logical, public use_guess
whether a guess is formed from previous level of Richardson
Definition: rich_vars.f90:23
rich_vars::no_guess
logical, public no_guess
disable guessing Eigenfunction from previous level of Richardson
Definition: rich_vars.f90:24
messages
Numerical utilities related to giving output.
Definition: messages.f90:4
rich_vars::max_rel_err
real(dp), dimension(:), allocatable, public max_rel_err
maximum relative error for all Richardson levels
Definition: rich_vars.f90:28
num_vars::pi
real(dp), parameter, public pi
Definition: num_vars.f90:83
rich_vars::min_n_par_x
integer, public min_n_par_x
min. of n_par_X (e.g. first value in Richardson loop)
Definition: rich_vars.f90:22
rich_vars::rich_lvl
integer, public rich_lvl
current level of Richardson extrapolation
Definition: rich_vars.f90:19
output_ops
Operations concerning giving output, on the screen as well as in output files.
Definition: output_ops.f90:5
rich_vars::req_min_n_par_x
integer, parameter, public req_min_n_par_x
required minimum n_par_X
Definition: rich_vars.f90:21
rich_vars::sol_val_rich
complex(dp), dimension(:,:,:), allocatable, public sol_val_rich
Richardson array of eigenvalues.
Definition: rich_vars.f90:26
rich_vars::loc_max_rel_err
integer, dimension(:,:), allocatable, public loc_max_rel_err
location of maximum of relative error
Definition: rich_vars.f90:29
num_vars::tol_rich
real(dp), public tol_rich
tolerance for Richardson extrapolation
Definition: num_vars.f90:128