PB3D  [2.45]
Ideal linear high-n MHD stability in 3-D
Functions/Subroutines | Variables
files_ops Module Reference

Operations related to files ! More...

Functions/Subroutines

subroutine, public init_files ()
 Initialize the variables for the module. More...
 
integer function, public parse_args ()
 Parses the command line arguments. More...
 
integer function, public open_input ()
 Open the input files. More...
 
integer function, public open_output ()
 Open the output files. More...
 
subroutine, public close_output ()
 Closes the output file. More...
 

Variables

character(len=max_str_ln), dimension(:), allocatable, public opt_args
 optional arguments that can be passed using –[name] More...
 

Detailed Description

Operations related to files !

Function/Subroutine Documentation

◆ close_output()

subroutine, public files_ops::close_output

Closes the output file.

Definition at line 703 of file files_ops.f90.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ init_files()

subroutine, public files_ops::init_files

Initialize the variables for the module.

Definition at line 25 of file files_ops.f90.

+ Here is the caller graph for this function:

◆ open_input()

integer function, public files_ops::open_input

Open the input files.

  • input file with user options
  • equilibrium file in
    • NetCDF for VMEC
    • plain for HELENA
Returns
ierr

Definition at line 178 of file files_ops.f90.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ open_output()

integer function, public files_ops::open_output

Open the output files.

  • output file .txt
  • shell commands file .sh
  • HDF5 file: only for PB3D, not for POST.
  • memory usage file .dat

Also sets some output variables.

Note
  1. memory usage file is only for debug version.
  2. There can be resart of a Richardson level for PB3D
  3. There can also be a direct jump to the solution for PB3D, if the equilibrium and perturbation phases are already done and saved (see init_files()).
  4. In the case of a Richardson restart, PB3D reopens the HDF5 file.
Returns
ierr

Definition at line 529 of file files_ops.f90.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parse_args()

integer function, public files_ops::parse_args

Parses the command line arguments.

Note
The input arguments are saved in command_arg
Returns
ierr

Definition at line 79 of file files_ops.f90.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ opt_args

character(len=max_str_ln), dimension(:), allocatable, public files_ops::opt_args

optional arguments that can be passed using –[name]

Definition at line 19 of file files_ops.f90.