For performing input and output.
Interface for reading boundary files.
Loads the given 2D field from the given boundary file.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | file_name | The NetCDF file to read from |
||
character(len=*), | intent(in) | :: | field_name | The field to read |
Loads the given 2D field at the given month from the given monthly boundary file.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | file_name | The NetCDF file to read from |
||
character(len=*), | intent(in) | :: | field_name | The field to read |
||
integer, | intent(in) | :: | month | The month to read |
Loads the given 2D field at the given month from the given boundary file of a given length.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | file_name | The NetCDF file to read from |
||
character(len=*), | intent(in) | :: | field_name | The field to read |
||
integer, | intent(in) | :: | month | The month to read |
||
integer, | intent(in) | :: | length | The total length of the file in number of months |
Loads the given 2D field from the given boundary file.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | file_name | The NetCDF file to read from |
||
character(len=*), | intent(in) | :: | field_name | The field to read |
Loads the given 2D field at the given month from the given monthly boundary file.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | file_name | The NetCDF file to read from |
||
character(len=*), | intent(in) | :: | field_name | The field to read |
||
integer, | intent(in) | :: | month | The month to read |
Loads the given 2D field at the given month from the given boundary file of a given length.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | file_name | The NetCDF file to read from |
||
character(len=*), | intent(in) | :: | field_name | The field to read |
||
integer, | intent(in) | :: | month | The month to read |
||
integer, | intent(in) | :: | length | The total length of the file in number of months |
Writes a snapshot of all prognostic variables to a NetCDF file.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | timestep | The time step that is being written |
||
complex, | intent(in) | :: | vor(mx,nx,kx,2) | Vorticity |
||
complex, | intent(in) | :: | div(mx,nx,kx,2) | Divergence |
||
complex, | intent(in) | :: | t(mx,nx,kx,2) | Temperature |
||
complex, | intent(in) | :: | ps(mx,nx,2) | log(normalized surface pressure) |
||
complex, | intent(in) | :: | tr(mx,nx,kx,2,ntr) | Tracers |
||
complex, | intent(in) | :: | phi(mx,nx,kx) | Geopotential |
Handles any errors from the NetCDF API.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | ierr |