globals.f90 Source File


This file depends on

sourcefile~~globals.f90~~EfferentGraph sourcefile~globals.f90 globals.f90 sourcefile~kinds.f90 kinds.f90 sourcefile~globals.f90->sourcefile~kinds.f90

Files dependent on this one

sourcefile~~globals.f90~~AfferentGraph sourcefile~globals.f90 globals.f90 sourcefile~benchmark.f90 benchmark.f90 sourcefile~benchmark.f90->sourcefile~globals.f90 sourcefile~vsh.f90 vsh.f90 sourcefile~benchmark.f90->sourcefile~vsh.f90 sourcefile~convergence_main.f90 convergence_main.f90 sourcefile~convergence_main.f90->sourcefile~globals.f90 sourcefile~tests.f90 tests.f90 sourcefile~convergence_main.f90->sourcefile~tests.f90 sourcefile~convergence_main.f90->sourcefile~vsh.f90 sourcefile~dipole_flux_expulsion.f90 dipole_flux_expulsion.f90 sourcefile~dipole_flux_expulsion.f90->sourcefile~globals.f90 sourcefile~dipole_flux_expulsion.f90->sourcefile~vsh.f90 sourcefile~dipole_synthesis.f90 dipole_synthesis.f90 sourcefile~dipole_synthesis.f90->sourcefile~globals.f90 sourcefile~dipole_synthesis.f90->sourcefile~vsh.f90 sourcefile~dipole_uniform_sphere.f90 dipole_uniform_sphere.f90 sourcefile~dipole_uniform_sphere.f90->sourcefile~globals.f90 sourcefile~dipole_uniform_sphere.f90->sourcefile~vsh.f90 sourcefile~gwi_gwj_sweep.f90 gwi_gwj_sweep.f90 sourcefile~gwi_gwj_sweep.f90->sourcefile~globals.f90 sourcefile~gwi_gwj_sweep.f90->sourcefile~vsh.f90 sourcefile~main.f90 main.f90 sourcefile~main.f90->sourcefile~globals.f90 sourcefile~main.f90->sourcefile~tests.f90 sourcefile~stability_main.f90 stability_main.f90 sourcefile~stability_main.f90->sourcefile~globals.f90 sourcefile~stability_main.f90->sourcefile~vsh.f90 sourcefile~tests.f90->sourcefile~globals.f90 sourcefile~tests.f90->sourcefile~vsh.f90 sourcefile~unnorm_stability_main.f90 unnorm_stability_main.f90 sourcefile~unnorm_stability_main.f90->sourcefile~globals.f90 sourcefile~unnorm_stability_main.f90->sourcefile~vsh.f90 sourcefile~vsh.f90->sourcefile~globals.f90 sourcefile~vsh_decomposition.f90 vsh_decomposition.f90 sourcefile~vsh_decomposition.f90->sourcefile~globals.f90 sourcefile~vsh_decomposition.f90->sourcefile~vsh.f90 sourcefile~vsh_decomposition_tor.f90 vsh_decomposition_tor.f90 sourcefile~vsh_decomposition_tor.f90->sourcefile~globals.f90 sourcefile~vsh_decomposition_tor.f90->sourcefile~vsh.f90 sourcefile~bench_main.f90 bench_main.f90 sourcefile~bench_main.f90->sourcefile~benchmark.f90

Source Code

!> Physical/mathematical constants shared across the library: \( \pi \)
!> and the imaginary unit \( i \), both at [[KINDS:dp]] precision so every
!> expression built from them (spherical harmonics, VSH, coupling
!> coefficients) stays in double precision without repeated literal
!> casts.
MODULE GLOBALS
  USE KINDS, ONLY: dp
  IMPLICIT NONE
  PRIVATE
  PUBLIC :: pi, j
  !> \( \pi \), double precision.
  REAL(KIND=dp), PARAMETER :: pi=3.14159265358979324d0
  !> Imaginary unit \( i=\sqrt{-1} \), double-precision complex.
  COMPLEX(KIND=dp), PARAMETER :: j = (0,1)
END MODULE GLOBALS