io Module

HANDLES INPUT AND OUTPUT OF PLASMA STATE PARAMETERS (NOT GRID INPUTS)


Uses

  • module~~io~~UsesGraph module~io io module~pathlib pathlib module~io->module~pathlib ieee_arithmetic ieee_arithmetic module~io->ieee_arithmetic iso_fortran_env iso_fortran_env module~io->iso_fortran_env module~phys_consts phys_consts module~io->module~phys_consts module~mpimod mpimod module~io->module~mpimod module~grid grid module~io->module~grid iso_c_binding iso_c_binding module~io->iso_c_binding module~pathlib->iso_fortran_env module~phys_consts->iso_fortran_env module~mpimod->iso_fortran_env module~mpimod->module~phys_consts mpi mpi module~mpimod->mpi module~grid->iso_fortran_env module~grid->module~phys_consts module~grid->module~mpimod module~reader reader module~grid->module~reader module~mesh mesh module~grid->module~mesh module~reader->iso_fortran_env module~reader->module~phys_consts module~mesh->module~phys_consts

Used by

  • module~~io~~UsedByGraph module~io io module~mag_raw mag_raw module~mag_raw->module~io module~mag mag module~mag->module~io module~io_aurora io_aurora module~io_aurora->module~io program~gemini3d Gemini3D program~gemini3d->module~io module~input input module~input->module~io module~mag_hdf5 mag_hdf5 module~mag_hdf5->module~io module~mag_hdf5~2 mag_hdf5 module~mag_hdf5~2->module~io module~plasma plasma module~plasma->module~io module~output output module~output->module~io program~magcalc MagCalc program~magcalc->module~io module~plasma_output_hdf5 plasma_output_hdf5 module~plasma_output_hdf5->module~plasma module~io_aurora_raw io_aurora_raw module~io_aurora_raw->module~io_aurora module~path_exists~2 path_exists module~path_exists~2->module~input module~plasma_input_raw plasma_input_raw module~plasma_input_raw->module~plasma module~plasma_input_hdf5 plasma_input_hdf5 module~plasma_input_hdf5->module~plasma module~io_aurora_hdf5 io_aurora_hdf5 module~io_aurora_hdf5->module~io_aurora module~io_aurora_hdf5~2 io_aurora_hdf5 module~io_aurora_hdf5~2->module~io_aurora module~plasma_output_raw plasma_output_raw module~plasma_output_raw->module~plasma module~plasma_output_hdf5~2 plasma_output_hdf5 module~plasma_output_hdf5~2->module~plasma module~path_exists path_exists module~path_exists->module~input

Contents


Variables

TypeVisibility AttributesNameInitial
character(len=:), private, allocatable:: indatfile

NONE OF THESE VARIABLES SHOULD BE ACCESSED BY PROCEDURES OUTSIDE THIS MODULE initial condition data files from input configuration file


Interfaces

interface

  • public module subroutine create_outdir_aur(outdir)

    Arguments

    Type IntentOptional AttributesName
    character(len=*), intent(in) :: outdir

interface

  • public module subroutine output_aur(outdir, flagglow, ymd, UTsec, iver)

    Arguments

    Type IntentOptional AttributesName
    character(len=*), intent(in) :: outdir
    integer, intent(in) :: flagglow
    integer, intent(in), dimension(3):: ymd
    real(kind=wp), intent(in) :: UTsec
    real(kind=wp), intent(in), dimension(:,:,:):: iver

interface

  • private module subroutine output_aur_workers(iver)

    Arguments

    Type IntentOptional AttributesName
    real(kind=wp), intent(in), dimension(:,:,:):: iver

interface

  • public module subroutine create_outdir_mag(outdir, fieldpointfile)

    Arguments

    Type IntentOptional AttributesName
    character(len=*), intent(in) :: outdir
    character(len=*), intent(in) :: fieldpointfile

interface

  • public module subroutine output_magfields(outdir, ymd, UTsec, Br, Btheta, Bphi)

    Arguments

    Type IntentOptional AttributesName
    character(len=*), intent(in) :: outdir
    integer, intent(in) :: ymd(3)
    real(kind=wp), intent(in) :: UTsec
    real(kind=wp), intent(in), dimension(:):: Br
    real(kind=wp), intent(in), dimension(:):: Btheta
    real(kind=wp), intent(in), dimension(:):: Bphi

interface

  • public module subroutine input_plasma(x1, x2, x3all, indatsize, ns, vs1, Ts)

    Arguments

    Type IntentOptional AttributesName
    real(kind=wp), intent(in), dimension(-1:):: x1
    real(kind=wp), intent(in), dimension(-1:):: x2
    real(kind=wp), intent(in), dimension(-1:):: x3all
    character(len=*), intent(in) :: indatsize
    real(kind=wp), intent(out), dimension(-1:,-1:,-1:,:):: ns
    real(kind=wp), intent(out), dimension(-1:,-1:,-1:,:):: vs1
    real(kind=wp), intent(out), dimension(-1:,-1:,-1:,:):: Ts

interface

  • public module subroutine input_plasma_currents(outdir, flagoutput, ymd, UTsec, J1, J2, J3)

    Arguments

    Type IntentOptional AttributesName
    character(len=*), intent(in) :: outdir
    integer, intent(in) :: flagoutput
    integer, intent(in), dimension(3):: ymd
    real(kind=wp), intent(in) :: UTsec
    real(kind=wp), intent(out), dimension(:,:,:):: J1
    real(kind=wp), intent(out), dimension(:,:,:):: J2
    real(kind=wp), intent(out), dimension(:,:,:):: J3

interface

  • public module subroutine output_plasma(outdir, flagoutput, ymd, UTsec, vs2, vs3, ns, vs1, Ts, Phiall, J1, J2, J3)

    Arguments

    Type IntentOptional AttributesName
    character(len=*), intent(in) :: outdir
    integer, intent(in) :: flagoutput
    integer, intent(in), dimension(3):: ymd
    real(kind=wp), intent(in) :: UTsec
    real(kind=wp), intent(in), dimension(-1:,-1:,-1:,:):: vs2
    real(kind=wp), intent(in), dimension(-1:,-1:,-1:,:):: vs3
    real(kind=wp), intent(in), dimension(-1:,-1:,-1:,:):: ns
    real(kind=wp), intent(in), dimension(-1:,-1:,-1:,:):: vs1
    real(kind=wp), intent(in), dimension(-1:,-1:,-1:,:):: Ts
    real(kind=wp), intent(inout), dimension(:,:,:), allocatable:: Phiall
    real(kind=wp), intent(in), dimension(:,:,:):: J1
    real(kind=wp), intent(in), dimension(:,:,:):: J2
    real(kind=wp), intent(in), dimension(:,:,:):: J3

interface

  • public module subroutine create_outdir(outdir, infile, indatsize, indatgrid, flagdneu, sourcedir, flagprecfile, precdir, flagE0file, E0dir)

    Arguments

    Type IntentOptional AttributesName
    character(len=*), intent(in) :: outdir
    character(len=*), intent(in) :: infile
    character(len=*), intent(in) :: indatsize
    character(len=*), intent(in) :: indatgrid
    integer, intent(in) :: flagdneu
    character(len=*), intent(in) :: sourcedir
    integer, intent(in) :: flagprecfile
    character(len=*), intent(in) :: precdir
    integer, intent(in) :: flagE0file
    character(len=*), intent(in) :: E0dir

interface

  • public module subroutine read_configfile(infile, ymd, UTsec0, tdur, dtout, activ, tcfl, Teinf, potsolve, flagperiodic, flagoutput, flagcap, indatsize, indatgrid, flagdneu, interptype, sourcemlat, sourcemlon, dtneu, dxn, drhon, dzn, sourcedir, flagprecfile, dtprec, precdir, flagE0file, dtE0, E0dir, flagglow, dtglow, dtglowout)

    Arguments

    Type IntentOptional AttributesName
    character(len=*), intent(in) :: infile
    integer, intent(out), dimension(3):: ymd
    real(kind=wp), intent(out) :: UTsec0
    real(kind=wp), intent(out) :: tdur
    real(kind=wp), intent(out) :: dtout
    real(kind=wp), intent(out), dimension(3):: activ
    real(kind=wp), intent(out) :: tcfl
    real(kind=wp), intent(out) :: Teinf
    integer, intent(out) :: potsolve
    integer, intent(out) :: flagperiodic
    integer, intent(out) :: flagoutput
    integer, intent(out) :: flagcap
    character(len=:), intent(out), allocatable:: indatsize
    character(len=:), intent(out), allocatable:: indatgrid
    integer, intent(out) :: flagdneu
    integer, intent(out) :: interptype
    real(kind=wp), intent(out) :: sourcemlat
    real(kind=wp), intent(out) :: sourcemlon
    real(kind=wp), intent(out) :: dtneu
    real(kind=wp), intent(out) :: dxn
    real(kind=wp), intent(out) :: drhon
    real(kind=wp), intent(out) :: dzn
    character(len=:), intent(out), allocatable:: sourcedir
    integer, intent(out) :: flagprecfile
    real(kind=wp), intent(out) :: dtprec
    character(len=:), intent(out), allocatable:: precdir
    integer, intent(out) :: flagE0file
    real(kind=wp), intent(out) :: dtE0
    character(len=:), intent(out), allocatable:: E0dir
    integer, intent(out) :: flagglow
    real(kind=wp), intent(out) :: dtglow
    real(kind=wp), intent(out) :: dtglowout