24 module get_grid_version_mod
25 use constants_mod,
only: deg_to_rad
26 use platform_mod,
only: r4_kind, r8_kind, fms_path_len
28 use mpp_domains_mod,
only :
domain2d,
operator(.NE.),
operator(.EQ.)
31 variable_exists,
read_data, get_variable_size, get_variable_num_dimensions
37 module procedure get_grid_version_1_r4
38 module procedure get_grid_version_1_r8
42 module procedure get_grid_version_2_r4
43 module procedure get_grid_version_2_r8
50 character(len=12),
intent(in) :: domain_name
51 type (domain2d),
intent(in) :: Domain
52 integer,
intent(in) :: nlon, nlat
54 character(len=184) :: error_message
55 integer :: xsize, ysize
58 if(nlon .NE. xsize .OR. nlat .NE. ysize)
then
59 error_message =
'Error in data_override_init. Size of grid as specified by '// &
60 ' does not conform to that specified by grid_spec.nc.'// &
61 ' From : by From grid_spec.nc: by '
62 error_message( 59: 70) = domain_name
63 error_message(130:141) = domain_name
64 write(error_message(143:146),
'(i4)') xsize
65 write(error_message(150:153),
'(i4)') ysize
66 write(error_message(174:177),
'(i4)') nlon
67 write(error_message(181:184),
'(i4)') nlat
72 #include "get_grid_version_r4.fh"
73 #include "get_grid_version_r8.fh"
75 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 compute domains....
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...