PLUME-MoM  1.0
Integralvolcanicplumemodel
 All Classes Files Functions Variables Pages
Public Member Functions | Public Attributes | List of all members
inpout Module Reference

Input/Output module. More...

Public Member Functions

subroutine initialize
 Initialize variables. More...
 
subroutine read_inp
 Read Input data. More...
 
subroutine open_file_units
 Initialize output units. More...
 
subroutine close_file_units
 Close output units. More...
 
subroutine write_column
 Write outputs. More...
 
subroutine write_hysplit (last)
 Write outputs. More...
 
subroutine write_dakota (description, value)
 Dakota outputs. More...
 

Public Attributes

integer n_unit
 Counter for unit files. More...
 
character(len=30) inp_file
 Name of input file. More...
 
character(len=30) bak_file
 Name of output file for backup of input parameters. More...
 
character(len=30) run_name
 Name of the run (used for the output and backup files) More...
 
character(len=30) col_file
 Name of output file for backup of input parameters. More...
 
character(len=30) hy_file
 Name of output file for hysplit. More...
 
character(len=30) mom_file
 Name of output file for backup of input parameters. More...
 
character(len=30) dak_file
 Name of output file for the variables used by dakota. More...
 
character(len=30) mat_file
 Name of output file for the parameters of the beta distribution. More...
 
character(len=50) atm_file
 Name of file for the parameters of the atmosphere. More...
 
integer atm_unit
 Atmosphere input unit. More...
 
integer bak_unit
 Backup input unit. More...
 
integer mat_unit
 Beta distribution parameters file unit. More...
 
integer inp_unit
 Input data unit. More...
 
integer col_unit
 Output values along the column data unit. More...
 
integer hy_unit
 hysplit data unit More...
 
integer mom_unit
 Moments values along the column data unit. More...
 
integer dak_unit
 Dakota variables data unit. More...
 
real *8, dimension(:), allocatable mu_lognormal
 
real *8, dimension(:), allocatable sigma_lognormal
 
real *8 month
 
real *8 lat
 
real *8 hy_deltaz
 
real *8 hy_z
 
real *8 hy_z_old
 
real *8 hy_x
 
real *8 hy_y
 
real *8 hy_x_old
 
real *8 hy_y_old
 
real *8, dimension(:), allocatable solid_mfr
 
real *8, dimension(:), allocatable solid_mfr_old
 

Detailed Description

Input/Output module.

This module contains all the input/output subroutine and the realted variables.

Date
28/10/2013
Author
Mattia de' Michieli Vitturi

Definition at line 11 of file inpout.f90.

Member Function/Subroutine Documentation

subroutine inpout::close_file_units ( )

Close output units.

This subroutine close the output units

Date
28/10/2013
Author
Mattia de' Michieli Vitturi

Definition at line 1517 of file inpout.f90.

Here is the caller graph for this function:

subroutine inpout::initialize ( )

Initialize variables.

This subroutine check if the input file exists and if it does not then it it initializes the input variables with default values and creates an input file.

Date
28/10/2013
Author
Mattia de' Michieli Vitturi

Definition at line 142 of file inpout.f90.

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine inpout::open_file_units ( )

Initialize output units.

This subroutine set the names of the output files and open the output units

Date
28/10/2013
Author
Mattia de' Michieli Vitturi

Definition at line 1457 of file inpout.f90.

Here is the caller graph for this function:

subroutine inpout::read_inp ( )

Read Input data.

This subroutine reads input data from the file plume_model.inp and writes a backup file of the input data.

Date
28/10/2013
Author
Mattia de' Michieli Vitturi

Definition at line 280 of file inpout.f90.

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine inpout::write_column ( )

Write outputs.

This subroutine writes the output values on the output files. The values are saved along the column.

Date
28/10/2013
Author
Mattia de' Michieli Vitturi

Definition at line 1548 of file inpout.f90.

Here is the caller graph for this function:

subroutine inpout::write_dakota ( character(20), intent(in)  description,
real*8, intent(in)  value 
)

Dakota outputs.

This subroutine writes the output values used for the sensitivity analysis by dakota.

Parameters
[in]descriptiondescriptor of the output variable
[in]valuevalue of the output variable
Date
28/10/2013
Author
Mattia de' Michieli Vitturi

Definition at line 1740 of file inpout.f90.

Here is the caller graph for this function:

subroutine inpout::write_hysplit ( logical, intent(in)  last)

Write outputs.

This subroutine writes the output values on the output files. The values are saved along the column.

Date
28/10/2013
Author
Mattia de' Michieli Vitturi

Definition at line 1639 of file inpout.f90.

Here is the caller graph for this function:

Member Data Documentation

character(len=50) inpout::atm_file

Name of file for the parameters of the atmosphere.

Definition at line 63 of file inpout.f90.

integer inpout::atm_unit

Atmosphere input unit.

Definition at line 66 of file inpout.f90.

character(len=30) inpout::bak_file

Name of output file for backup of input parameters.

Definition at line 42 of file inpout.f90.

integer inpout::bak_unit

Backup input unit.

Definition at line 70 of file inpout.f90.

character(len=30) inpout::col_file

Name of output file for backup of input parameters.

Definition at line 48 of file inpout.f90.

integer inpout::col_unit

Output values along the column data unit.

Definition at line 79 of file inpout.f90.

character(len=30) inpout::dak_file

Name of output file for the variables used by dakota.

Definition at line 57 of file inpout.f90.

integer inpout::dak_unit

Dakota variables data unit.

Definition at line 88 of file inpout.f90.

real*8 inpout::hy_deltaz

Definition at line 95 of file inpout.f90.

character(len=30) inpout::hy_file

Name of output file for hysplit.

Definition at line 51 of file inpout.f90.

integer inpout::hy_unit

hysplit data unit

Definition at line 82 of file inpout.f90.

real*8 inpout::hy_x

Definition at line 95 of file inpout.f90.

real*8 inpout::hy_x_old

Definition at line 95 of file inpout.f90.

real*8 inpout::hy_y

Definition at line 95 of file inpout.f90.

real*8 inpout::hy_y_old

Definition at line 95 of file inpout.f90.

real*8 inpout::hy_z

Definition at line 95 of file inpout.f90.

real*8 inpout::hy_z_old

Definition at line 95 of file inpout.f90.

character(len=30) inpout::inp_file

Name of input file.

Definition at line 39 of file inpout.f90.

integer inpout::inp_unit

Input data unit.

Definition at line 76 of file inpout.f90.

real*8 inpout::lat

Definition at line 93 of file inpout.f90.

character(len=30) inpout::mat_file

Name of output file for the parameters of the beta distribution.

Definition at line 60 of file inpout.f90.

integer inpout::mat_unit

Beta distribution parameters file unit.

Definition at line 73 of file inpout.f90.

character(len=30) inpout::mom_file

Name of output file for backup of input parameters.

Definition at line 54 of file inpout.f90.

integer inpout::mom_unit

Moments values along the column data unit.

Definition at line 85 of file inpout.f90.

real*8 inpout::month

Definition at line 92 of file inpout.f90.

real*8, dimension(:), allocatable inpout::mu_lognormal

Definition at line 90 of file inpout.f90.

integer inpout::n_unit

Counter for unit files.

Definition at line 36 of file inpout.f90.

character(len=30) inpout::run_name

Name of the run (used for the output and backup files)

Definition at line 45 of file inpout.f90.

real*8, dimension(:), allocatable inpout::sigma_lognormal

Definition at line 90 of file inpout.f90.

real*8, dimension(:), allocatable inpout::solid_mfr

Definition at line 97 of file inpout.f90.

real*8, dimension(:), allocatable inpout::solid_mfr_old

Definition at line 97 of file inpout.f90.


The documentation for this module was generated from the following file: