25 module get_grid_version_mod
26 use constants_mod,
only: deg_to_rad
27 use platform_mod,
only: r4_kind, r8_kind, fms_path_len
29 use mpp_domains_mod,
only :
domain2d,
operator(.NE.),
operator(.EQ.)
32 variable_exists,
read_data, get_variable_size, get_variable_num_dimensions
38 module procedure get_grid_version_1_r4
39 module procedure get_grid_version_1_r8
43 module procedure get_grid_version_2_r4
44 module procedure get_grid_version_2_r8
51 character(len=12),
intent(in) :: domain_name
52 type (domain2d),
intent(in) :: Domain
53 integer,
intent(in) :: nlon, nlat
55 character(len=184) :: error_message
56 integer :: xsize, ysize
59 if(nlon .NE. xsize .OR. nlat .NE. ysize)
then
60 error_message =
'Error in data_override_init. Size of grid as specified by '// &
61 ' does not conform to that specified by grid_spec.nc.'// &
62 ' From : by From grid_spec.nc: by '
63 error_message( 59: 70) = domain_name
64 error_message(130:141) = domain_name
65 write(error_message(143:146),
'(i4)') xsize
66 write(error_message(150:153),
'(i4)') ysize
67 write(error_message(174:177),
'(i4)') nlon
68 write(error_message(181:184),
'(i4)') nlat
73 #include "get_grid_version_r4.fh"
74 #include "get_grid_version_r8.fh"
76 end module get_grid_version_mod
Close a netcdf or domain file opened with open_file or open_virtual_file.
Opens a given netcdf or domain file.
Read data from a defined field in a file.
subroutine check_grid_sizes(domain_name, Domain, nlon, nlat)
Get lon and lat of three model (target) grids from grid_spec.nc.
subroutine, public get_mosaic_tile_grid(grid_file, fileobj, domain, tile_count)
Gets the name of a mosaic tile grid file.
These routines retrieve the axis specifications associated with the data domains. The domain is a der...
These routines retrieve the axis specifications associated with the global domains....
The domain2D type contains all the necessary information to define the global, compute and data domai...
Reduction operations. Find the max of scalar a from the PEs in pelist result is also automatically br...
Reduction operations. Find the min of scalar a from the PEs in pelist result is also automatically br...