CAM
cam_pio_utils Module Reference

Data Types

interface  calc_permutation
 
interface  cam_permute_array
 
interface  cam_pio_def_var
 
interface  cam_pio_get_var
 
type  iodesc_list
 
type  vdesc_ptr
 

Functions/Subroutines

logical function use_scam_limits (File, start, kount, dimnames)
 
subroutine calc_permutation_int (filedims, arraydims, perm, isperm)
 
subroutine calc_permutation_char (filedims, arraydims, perm, isperm)
 
subroutine permute_array_int (array, perm)
 
subroutine permute_array_r8 (array, perm)
 
subroutine, public cam_pio_handle_error (ierr, errorstr)
 
subroutine, public cam_pio_var_info (ncid, varid, ndims, dimids, dimlens, dimnames, varname, unlimDimID)
 
subroutine, public cam_pio_find_var (ncid, varname, varid, found)
 
subroutine, public cam_pio_check_var (ncid, varname, varid, ndims, dimids, dimlens, readvar, dimnames)
 
subroutine, public init_pio_subsystem (nlfilename)
 
subroutine, public cam_pio_get_decomp (iodesc, ldims, fdims, dtype, map, field_dist_in, file_dist_in, permute)
 
subroutine, public cam_pio_newdecomp (iodesc, dims, dof, dtype)
 
subroutine find_iodesc (ldimlens, fdimlens, dtype, map, iodesc_p, found, perm)
 
subroutine, public cam_pio_def_dim (File, name, size, dimid, existOK)
 
subroutine cam_pio_def_var_0d (File, name, dtype, vardesc, existOK)
 
subroutine cam_pio_def_var_md (File, name, dtype, dimids, vardesc, existOK)
 
subroutine cam_pio_get_var_2d_r8 (varname, File, field, start, kount, found)
 
subroutine cam_pio_get_var_2d_r8_perm (varname, File, arraydims, field, start, kount, found)
 
subroutine cam_pio_get_var_3d_r8 (varname, File, field, start, kount, found)
 
subroutine cam_pio_get_var_3d_r8_perm (varname, File, arraydims, field, start, kount, found)
 
subroutine, public clean_iodesc_list ()
 
subroutine, public cam_pio_createfile (file, fname, mode_in)
 
subroutine, public cam_pio_openfile (file, fname, mode)
 
subroutine, public cam_pio_closefile (file)
 
logical function, public cam_pio_fileexists (fname)
 

Variables

integer pio_iotype
 
integer pio_rearranger
 
type(iosystem_desc_t), pointer, public pio_subsystem => null()
 
integer, parameter errormsg_str_len = 128
 
integer, parameter tag_len = 48
 
type(iodesc_list), target iodesc_list_top
 

Function/Subroutine Documentation

◆ calc_permutation_char()

subroutine cam_pio_utils::calc_permutation_char ( character(len=*), dimension(:), intent(in)  filedims,
character(len=*), dimension(:), intent(in)  arraydims,
integer, dimension(:), intent(out)  perm,
logical, intent(out)  isperm 
)

◆ calc_permutation_int()

subroutine cam_pio_utils::calc_permutation_int ( integer, dimension(:), intent(in)  filedims,
integer, dimension(:), intent(in)  arraydims,
integer, dimension(:), intent(out)  perm,
logical, intent(out)  isperm 
)

◆ cam_pio_check_var()

subroutine, public cam_pio_utils::cam_pio_check_var ( type(file_desc_t), intent(inout)  ncid,
character(len=*), intent(in)  varname,
type(var_desc_t), intent(out)  varid,
integer, intent(out)  ndims,
integer, dimension(:), intent(out)  dimids,
integer, dimension(:), intent(out)  dimlens,
logical, intent(out)  readvar,
character(len=*), dimension(:), intent(out), optional  dimnames 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cam_pio_closefile()

subroutine, public cam_pio_utils::cam_pio_closefile ( type(file_desc_t), intent(inout), target  file)
Here is the caller graph for this function:

◆ cam_pio_createfile()

subroutine, public cam_pio_utils::cam_pio_createfile ( type(file_desc_t), intent(inout)  file,
character(len=*), intent(in)  fname,
integer, intent(in), optional  mode_in 
)
Here is the caller graph for this function:

◆ cam_pio_def_dim()

subroutine, public cam_pio_utils::cam_pio_def_dim ( type(file_desc_t), intent(inout)  File,
character(len=*), intent(in)  name,
integer, intent(in)  size,
integer, intent(out)  dimid,
logical, intent(in), optional  existOK 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cam_pio_def_var_0d()

subroutine cam_pio_utils::cam_pio_def_var_0d ( type(file_desc_t), intent(inout)  File,
character(len=*), intent(in)  name,
integer, intent(in)  dtype,
type(var_desc_t), intent(inout)  vardesc,
logical, intent(in), optional  existOK 
)

◆ cam_pio_def_var_md()

subroutine cam_pio_utils::cam_pio_def_var_md ( type(file_desc_t), intent(inout)  File,
character(len=*), intent(in)  name,
integer, intent(in)  dtype,
integer, dimension(:), intent(in)  dimids,
type(var_desc_t), intent(inout)  vardesc,
logical, intent(in), optional  existOK 
)
private
Here is the call graph for this function:

◆ cam_pio_fileexists()

logical function, public cam_pio_utils::cam_pio_fileexists ( character(len=*), intent(in)  fname)

◆ cam_pio_find_var()

subroutine, public cam_pio_utils::cam_pio_find_var ( type(file_desc_t), intent(inout)  ncid,
character(len=*), intent(in)  varname,
type(var_desc_t), intent(out)  varid,
logical, intent(out)  found 
)
Here is the caller graph for this function:

◆ cam_pio_get_decomp()

subroutine, public cam_pio_utils::cam_pio_get_decomp ( type(io_desc_t), pointer  iodesc,
integer, dimension(:), intent(in)  ldims,
integer, dimension(:), intent(in)  fdims,
integer, intent(in)  dtype,
type(cam_filemap_t), intent(in), target  map,
integer, dimension(:), intent(in), optional  field_dist_in,
integer, dimension(:), intent(in), optional  file_dist_in,
integer, dimension(:), intent(in), optional  permute 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cam_pio_get_var_2d_r8()

subroutine cam_pio_utils::cam_pio_get_var_2d_r8 ( character(len=*), intent(in)  varname,
type(file_desc_t), intent(inout)  File,
real(r8), dimension(:,:), intent(inout)  field,
integer, dimension(2), intent(in), optional  start,
integer, dimension(2), intent(in), optional  kount,
logical, intent(out), optional  found 
)
Here is the call graph for this function:

◆ cam_pio_get_var_2d_r8_perm()

subroutine cam_pio_utils::cam_pio_get_var_2d_r8_perm ( character(len=*), intent(in)  varname,
type(file_desc_t), intent(inout)  File,
character(len=*), dimension(2), intent(in)  arraydims,
real(r8), dimension(:,:), intent(inout)  field,
integer, dimension(2), intent(in), optional  start,
integer, dimension(2), intent(in), optional  kount,
logical, intent(out), optional  found 
)
Here is the call graph for this function:

◆ cam_pio_get_var_3d_r8()

subroutine cam_pio_utils::cam_pio_get_var_3d_r8 ( character(len=*), intent(in)  varname,
type(file_desc_t), intent(inout)  File,
real(r8), dimension(:,:,:), intent(inout)  field,
integer, dimension(3), intent(in), optional  start,
integer, dimension(3), intent(in), optional  kount,
logical, intent(out), optional  found 
)
Here is the call graph for this function:

◆ cam_pio_get_var_3d_r8_perm()

subroutine cam_pio_utils::cam_pio_get_var_3d_r8_perm ( character(len=*), intent(in)  varname,
type(file_desc_t), intent(inout)  File,
character(len=*), dimension(3), intent(in)  arraydims,
real(r8), dimension(:,:,:), intent(inout)  field,
integer, dimension(3), intent(in), optional  start,
integer, dimension(3), intent(in), optional  kount,
logical, intent(out), optional  found 
)
Here is the call graph for this function:

◆ cam_pio_handle_error()

subroutine, public cam_pio_utils::cam_pio_handle_error ( integer, intent(in)  ierr,
character(len=*), intent(in)  errorstr 
)
Here is the caller graph for this function:

◆ cam_pio_newdecomp()

subroutine, public cam_pio_utils::cam_pio_newdecomp ( type(io_desc_t), pointer  iodesc,
integer, dimension(:), intent(in)  dims,
integer(kind=pio_offset_kind), dimension(:), intent(in)  dof,
integer, intent(in)  dtype 
)
Here is the caller graph for this function:

◆ cam_pio_openfile()

subroutine, public cam_pio_utils::cam_pio_openfile ( type(file_desc_t), intent(inout), target  file,
character(len=*), intent(in)  fname,
integer, intent(in)  mode 
)
Here is the caller graph for this function:

◆ cam_pio_var_info()

subroutine, public cam_pio_utils::cam_pio_var_info ( type(file_desc_t), intent(inout)  ncid,
type(var_desc_t), intent(in)  varid,
integer, intent(out)  ndims,
integer, dimension(:), intent(out)  dimids,
integer, dimension(:), intent(out)  dimlens,
character(len=*), dimension(:), intent(out), optional  dimnames,
character(len=*), intent(in), optional  varname,
integer, intent(out), optional  unlimDimID 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ clean_iodesc_list()

subroutine, public cam_pio_utils::clean_iodesc_list ( )
Here is the caller graph for this function:

◆ find_iodesc()

subroutine cam_pio_utils::find_iodesc ( integer, dimension(:), intent(in)  ldimlens,
integer, dimension(:), intent(in)  fdimlens,
integer, intent(in)  dtype,
type(cam_filemap_t), intent(in)  map,
type(iodesc_list), pointer  iodesc_p,
logical, intent(out)  found,
integer, dimension(:), intent(in), optional  perm 
)
Here is the caller graph for this function:

◆ init_pio_subsystem()

subroutine, public cam_pio_utils::init_pio_subsystem ( character(len=*)  nlfilename)
Here is the caller graph for this function:

◆ permute_array_int()

subroutine cam_pio_utils::permute_array_int ( integer, dimension(:), intent(inout)  array,
integer, dimension(:), intent(in)  perm 
)

◆ permute_array_r8()

subroutine cam_pio_utils::permute_array_r8 ( real(r8), dimension(:), intent(inout)  array,
integer, dimension(:), intent(in)  perm 
)
private

◆ use_scam_limits()

logical function cam_pio_utils::use_scam_limits ( type(file_desc_t), intent(inout)  File,
integer, dimension(:), intent(inout)  start,
integer, dimension(:), intent(inout)  kount,
character(len=*), dimension(:), intent(in), optional  dimnames 
)
private
Here is the caller graph for this function:

Variable Documentation

◆ errormsg_str_len

integer, parameter cam_pio_utils::errormsg_str_len = 128
private

◆ iodesc_list_top

type(iodesc_list), target cam_pio_utils::iodesc_list_top
private

◆ pio_iotype

integer cam_pio_utils::pio_iotype
private

◆ pio_rearranger

integer cam_pio_utils::pio_rearranger
private

◆ pio_subsystem

type(iosystem_desc_t), pointer, public cam_pio_utils::pio_subsystem => null()

◆ tag_len

integer, parameter cam_pio_utils::tag_len = 48
private