ocnice_prep  1.13.0
All Data Structures Files Functions Variables Pages
init_mod.F90 File Reference

Define the input namelist variables. More...

Go to the source code of this file.

Data Types

type  init_mod::vardefs
 

Functions/Subroutines

subroutine init_mod::readcsv (fname, errmsg, rc, nvalid)
 Read the input csv file and fill the vardefs type. More...
 
subroutine init_mod::readnml (fname, errmsg, rc)
 Read input namelist file. More...
 

Variables

logical init_mod::debug
 If true, print debug messages and intermediate files. More...
 
logical init_mod::do_ocnprep
 If true, the source file is ocean, otherwise ice. More...
 
character(len=10) init_mod::fdst
 A character string for the destination grid. More...
 
character(len=10) init_mod::fsrc
 A character string for tripole grid. More...
 
character(len=10) init_mod::ftype
 The type of tripole grid (ocean or ice) More...
 
character(len=120) init_mod::griddir
 The directory containing the master tripole grid file. More...
 
character(len=20) init_mod::input_file
 The input file name. More...
 
integer init_mod::logunit
 The log unit. More...
 
character(len=10) init_mod::maskvar = 'h'
 The variable in the ocean source file used to create the interpolation mask with dynamic masking. More...
 
integer, parameter init_mod::maxvars = 60
 The maximum number of fields expected in a source file. More...
 
integer init_mod::nlevs
 The vertical or category dimension of the source tripole grid. More...
 
integer init_mod::nxr
 The x-dimension of the destination tripole grid. More...
 
integer init_mod::nxt
 The x-dimension of the source tripole grid. More...
 
integer init_mod::nyr
 The y-dimension of the destination tripole grid. More...
 
integer init_mod::nyt
 The y-dimension of the source tripole grid. More...
 
type(vardefs), dimension(maxvars) init_mod::outvars
 An empty structure filled by reading a csv file describing the fields. More...
 
character(len=120) init_mod::wgtsdir
 The directory containing the regridding weights. More...
 

Detailed Description

Define the input namelist variables.

Author
Denis.nosp@m.e.Wo.nosp@m.rthen.nosp@m.@noa.nosp@m.a.gov

This module contains the namelist variables

Author
Denis.nosp@m.e.Wo.nosp@m.rthen.nosp@m.@noa.nosp@m.a.gov

Definition in file init_mod.F90.

Function/Subroutine Documentation

◆ readcsv()

subroutine init_mod::readcsv ( character(len=*), intent(in)  fname,
character(len=*), intent(out)  errmsg,
integer, intent(out)  rc,
integer, intent(out)  nvalid 
)

Read the input csv file and fill the vardefs type.

Parameters
[in]fnameinput csv file
[out]errmsgreturn error message
[out]rcreturn error code
[out]nvalidthe number of variables in the csv file
Author
Denis.nosp@m.e.Wo.nosp@m.rthen.nosp@m.@noa.nosp@m.a.gov

Definition at line 162 of file init_mod.F90.

◆ readnml()

subroutine init_mod::readnml ( character(len=*), intent(in)  fname,
character(len=*), intent(out)  errmsg,
integer, intent(out)  rc 
)

Read input namelist file.

Parameters
[in]fnamenamelist file
[out]errmsgreturn error message
[out]rcreturn error code
Author
Denis.nosp@m.e.Wo.nosp@m.rthen.nosp@m.@noa.nosp@m.a.gov

Definition at line 57 of file init_mod.F90.

Variable Documentation

◆ debug

logical init_mod::debug

If true, print debug messages and intermediate files.

Definition at line 45 of file init_mod.F90.

◆ do_ocnprep

logical init_mod::do_ocnprep

If true, the source file is ocean, otherwise ice.

Definition at line 46 of file init_mod.F90.

◆ fdst

character(len=10) init_mod::fdst

A character string for the destination grid.

Definition at line 32 of file init_mod.F90.

◆ fsrc

character(len=10) init_mod::fsrc

A character string for tripole grid.

Definition at line 31 of file init_mod.F90.

◆ ftype

character(len=10) init_mod::ftype

The type of tripole grid (ocean or ice)

Definition at line 30 of file init_mod.F90.

◆ griddir

character(len=120) init_mod::griddir

The directory containing the master tripole grid file.

Definition at line 34 of file init_mod.F90.

◆ input_file

character(len=20) init_mod::input_file

The input file name.

Definition at line 35 of file init_mod.F90.

◆ logunit

integer init_mod::logunit

The log unit.

Definition at line 44 of file init_mod.F90.

◆ maskvar

character(len=10) init_mod::maskvar = 'h'

The variable in the ocean source file used to create the interpolation mask with dynamic masking.

Definition at line 14 of file init_mod.F90.

◆ maxvars

integer, parameter init_mod::maxvars = 60

The maximum number of fields expected in a source file.

Definition at line 13 of file init_mod.F90.

◆ nlevs

integer init_mod::nlevs

The vertical or category dimension of the source tripole grid.

Definition at line 39 of file init_mod.F90.

◆ nxr

integer init_mod::nxr

The x-dimension of the destination tripole grid.

Definition at line 41 of file init_mod.F90.

◆ nxt

integer init_mod::nxt

The x-dimension of the source tripole grid.

Definition at line 37 of file init_mod.F90.

◆ nyr

integer init_mod::nyr

The y-dimension of the destination tripole grid.

Definition at line 42 of file init_mod.F90.

◆ nyt

integer init_mod::nyt

The y-dimension of the source tripole grid.

Definition at line 38 of file init_mod.F90.

◆ outvars

type(vardefs), dimension(maxvars) init_mod::outvars

An empty structure filled by reading a csv file describing the fields.

Definition at line 27 of file init_mod.F90.

◆ wgtsdir

character(len=120) init_mod::wgtsdir

The directory containing the regridding weights.

Definition at line 33 of file init_mod.F90.