Oasis3-MCT
 All Classes Files Functions Variables Macros Pages
Public Member Functions | List of all members
mod_oasis_io Module Reference

Provides reusable IO routines for OASIS. More...

Public Member Functions

subroutine, public oasis_io_read_avfld (filename, av, gsmap, mpicom, avfld, filefld, fldtype)
 Reads single field from a file into an attribute Vector. More...
 
subroutine, public oasis_io_write_avfile (rstfile, av, gsmap, mpicom, nx, ny, nampre)
 Writes all fields from an attribute vector to a file. More...
 
subroutine, public oasis_io_read_avfile (rstfile, av, gsmap, mpicom, abort, nampre, didread)
 Reads all fields for an attribute vector from a file. More...
 
subroutine, public oasis_io_read_array (rstfile, mpicom, iarray, ivarname, rarray, rvarname, abort)
 Reads an integer or real field from a file into an array. More...
 
subroutine, public oasis_io_write_array (rstfile, mpicom, iarray, ivarname, rarray, rvarname)
 Writes a real or integer array to a file. More...
 
subroutine, public oasis_io_write_avfbf (av, gsmap, mpicom, nx, ny, msec, f_string, filename)
 Write each field in an attribute vector to an individual files. More...
 
subroutine, public oasis_io_read_avfbf (av, gsmap, mpicom, msec, f_string, filename)
 Read each field in an attribute vector from individual files. More...
 
subroutine, public oasis_io_read_field_fromroot (filename, fldname, ifld2, fld2, fld3, nx, ny, nz)
 Read a field on the root task from a file into an array. More...
 
subroutine, public oasis_io_write_2dgridfld_fromroot (filename, fldname, fld, nx, ny)
 Write a real array named field from the root task to a file. More...
 
subroutine, public oasis_io_write_2dgridint_fromroot (filename, fldname, fld, nx, ny)
 Write an integer array named field from the root task to a file. More...
 
subroutine, public oasis_io_write_3dgridfld_fromroot (filename, fldname, fld, nx, ny, nc)
 Write a 3d real array named field from the root task to a file. More...
 

Detailed Description

Provides reusable IO routines for OASIS.

Definition at line 4 of file mod_oasis_io.F90.

Member Function/Subroutine Documentation

subroutine, public mod_oasis_io::oasis_io_read_array ( character(len=*), intent(in)  rstfile,
integer(ip_i4_p), intent(in)  mpicom,
integer(ip_i4_p), dimension(:), intent(inout), optional  iarray,
character(len=*), intent(in), optional  ivarname,
real(ip_double_p), dimension(:), intent(inout), optional  rarray,
character(len=*), intent(in), optional  rvarname,
logical, intent(in), optional  abort 
)

Reads an integer or real field from a file into an array.

Parameters
[in]rstfilefilename
[in]mpicommpicom
[in,out]iarrayinteger data on root
[in]ivarnameinteger variable name on file
[in,out]rarrayreal data on root
[in]rvarnamereal variable name on file
[in]abortabort on error flag, default is true

Definition at line 519 of file mod_oasis_io.F90.

subroutine, public mod_oasis_io::oasis_io_read_avfbf ( type(mct_avect), intent(inout)  av,
type(mct_gsmap), intent(in)  gsmap,
integer(ip_i4_p), intent(in)  mpicom,
integer(ip_i4_p), intent(in), optional  msec,
character(len=*), intent(in), optional  f_string,
character(len=*), intent(in), optional  filename 
)

Read each field in an attribute vector from individual files.

Parameters
[in,out]avavect
[in]gsmapgsmap
[in]mpicommpicom
[in]msecoptional time info in seconds
[in]f_stringoptional f_string to append to filename
[in]filenameoptional input filename

Definition at line 1022 of file mod_oasis_io.F90.

subroutine, public mod_oasis_io::oasis_io_read_avfile ( character(len=*), intent(in)  rstfile,
type(mct_avect), intent(inout)  av,
type(mct_gsmap), intent(in)  gsmap,
integer(ip_i4_p), intent(in)  mpicom,
logical, intent(in), optional  abort,
character(len=*), intent(in), optional  nampre,
logical, intent(out), optional  didread 
)

Reads all fields for an attribute vector from a file.

Parameters
[in]rstfilefilename
[in,out]avavect
[in]gsmapgsmap
[in]mpicommpicom
[in]abortabort on error flag, default is true
[in]namprename prepend string for fields on file
[out]didreadflag indicating that read was successful

Definition at line 364 of file mod_oasis_io.F90.

subroutine, public mod_oasis_io::oasis_io_read_avfld ( character(len=*), intent(in)  filename,
type(mct_avect), intent(inout)  av,
type(mct_gsmap), intent(in)  gsmap,
integer(ip_i4_p), intent(in)  mpicom,
character(len=*), intent(in)  avfld,
character(len=*), intent(in)  filefld,
character(len=*), intent(in), optional  fldtype 
)

Reads single field from a file into an attribute Vector.

Parameters
[in]filenamefilename
[in,out]avavect
[in]gsmapgsmap
[in]mpicommpicom
[in]avfldav field name
[in]filefldfile field name
[in]fldtypekind

Definition at line 40 of file mod_oasis_io.F90.

subroutine, public mod_oasis_io::oasis_io_read_field_fromroot ( character(len=*), intent(in)  filename,
character(len=*), intent(in)  fldname,
integer(ip_i4_p), dimension(:,:), intent(inout), optional  ifld2,
real(ip_realwp_p), dimension(:,:), intent(inout), optional  fld2,
real(ip_realwp_p), dimension(:,:,:), intent(inout), optional  fld3,
integer(ip_i4_p), intent(inout), optional  nx,
integer(ip_i4_p), intent(inout), optional  ny,
integer(ip_i4_p), intent(inout), optional  nz 
)

Read a field on the root task from a file into an array.

Parameters
[in]filenamefilename
[in]fldnamefield name
[in,out]ifld22d integer array
[in,out]fld22d real array
[in,out]fld33d real array
[in,out]nxglobal nx size
[in,out]nyglobal ny size
[in,out]nzglobal nz size

Definition at line 1184 of file mod_oasis_io.F90.

subroutine, public mod_oasis_io::oasis_io_write_2dgridfld_fromroot ( character(len=*), intent(in)  filename,
character(len=*), intent(in)  fldname,
real(ip_realwp_p), dimension(:,:), intent(in)  fld,
integer(ip_i4_p), intent(in)  nx,
integer(ip_i4_p), intent(in)  ny 
)

Write a real array named field from the root task to a file.

Parameters
[in]filenamefile name
[in]fldnamefield name
[in]fld2d real field
[in]nx2d global nx size
[in]ny2d global ny size

Definition at line 1303 of file mod_oasis_io.F90.

subroutine, public mod_oasis_io::oasis_io_write_2dgridint_fromroot ( character(len=*), intent(in)  filename,
character(len=*), intent(in)  fldname,
integer(ip_i4_p), dimension(:,:), intent(in)  fld,
integer(ip_i4_p), intent(in)  nx,
integer(ip_i4_p), intent(in)  ny 
)

Write an integer array named field from the root task to a file.

Parameters
[in]filenamefile name
[in]fldnamefield name
[in]fldinteger field
[in]nx2d global nx size
[in]ny2d global ny size

Definition at line 1406 of file mod_oasis_io.F90.

subroutine, public mod_oasis_io::oasis_io_write_3dgridfld_fromroot ( character(len=*), intent(in)  filename,
character(len=*), intent(in)  fldname,
real(ip_realwp_p), dimension(:,:,:), intent(in)  fld,
integer(ip_i4_p), intent(in)  nx,
integer(ip_i4_p), intent(in)  ny,
integer(ip_i4_p), intent(in)  nc 
)

Write a 3d real array named field from the root task to a file.

Parameters
[in]filenamefile name
[in]fldnamefield name
[in]fld3d real array
[in]nx3d global nx size
[in]ny3d global ny size
[in]nc3d global nz size or nc size for corners

Definition at line 1509 of file mod_oasis_io.F90.

subroutine, public mod_oasis_io::oasis_io_write_array ( character(len=*), intent(in)  rstfile,
integer(ip_i4_p), intent(in)  mpicom,
integer(ip_i4_p), dimension(:), intent(in), optional  iarray,
character(len=*), intent(in), optional  ivarname,
real(ip_double_p), dimension(:), intent(in), optional  rarray,
character(len=*), intent(in), optional  rvarname 
)

Writes a real or integer array to a file.

Parameters
[in]rstfilefilename
[in]mpicommpicom
[in]iarrayinteger data on root
[in]ivarnameinteger variable name on file
[in]rarrayreal data on root
[in]rvarnamereal variable name on file

Definition at line 684 of file mod_oasis_io.F90.

subroutine, public mod_oasis_io::oasis_io_write_avfbf ( type(mct_avect), intent(in)  av,
type(mct_gsmap), intent(in)  gsmap,
integer(ip_i4_p), intent(in)  mpicom,
integer(ip_i4_p), intent(in)  nx,
integer(ip_i4_p), intent(in)  ny,
integer(ip_i4_p), intent(in), optional  msec,
character(len=*), intent(in), optional  f_string,
character(len=*), intent(in), optional  filename 
)

Write each field in an attribute vector to an individual files.

Parameters
[in]avavect
[in]gsmapgsmap
[in]mpicommpicom
[in]nx2d global nx size
[in]ny2d global ny size
[in]msecoptional time info in seconds
[in]f_stringoptional f_string to append to filename
[in]filenameoptional output filename

Definition at line 831 of file mod_oasis_io.F90.

subroutine, public mod_oasis_io::oasis_io_write_avfile ( character(len=*), intent(in)  rstfile,
type(mct_avect), intent(in)  av,
type(mct_gsmap), intent(in)  gsmap,
integer(ip_i4_p), intent(in)  mpicom,
integer(ip_i4_p), intent(in)  nx,
integer(ip_i4_p), intent(in)  ny,
character(len=*), intent(in), optional  nampre 
)

Writes all fields from an attribute vector to a file.

Parameters
[in]rstfilefilename
[in]avavect
[in]gsmapgsmap
[in]mpicommpicom
[in]nx2d global nx size
[in]ny2d global ny size
[in]namprefield name prepend string on file

Definition at line 188 of file mod_oasis_io.F90.


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