32 module gaussian_topog_mod
39 use constants_mod,
only: pi
41 use mpp_mod,
only: input_nml_file
42 use platform_mod,
only: r4_kind, r8_kind
50 module procedure gaussian_topog_init_r4
51 module procedure gaussian_topog_init_r8
55 module procedure get_gaussian_topog_r4, get_gaussian_topog_r8
95 integer,
parameter :: maxmts = 10
97 real(kind=r8_kind),
dimension(maxmts) ::
height = 0.0_r8_kind
98 real(kind=r8_kind),
dimension(maxmts) ::
olon = 0.0_r8_kind
99 real(kind=r8_kind),
dimension(maxmts) ::
olat = 0.0_r8_kind
100 real(kind=r8_kind),
dimension(maxmts) ::
wlon = 0.0_r8_kind
101 real(kind=r8_kind),
dimension(maxmts) ::
wlat = 0.0_r8_kind
102 real(kind=r8_kind),
dimension(maxmts) ::
rlon = 0.0_r8_kind
104 real(kind=r8_kind),
dimension(maxmts) ::
rlat = 0.0_r8_kind
113 #include<file_version.h>
115 logical :: do_nml = .true.
116 logical :: module_is_initialized = .false.
126 integer :: iunit, ierr, io
130 read (input_nml_file, gaussian_topog_nml, iostat=io)
135 if (
mpp_pe() == mpp_root_pe())
then
137 write (iunit, nml=gaussian_topog_nml)
146 #include "gaussian_topog_r4.fh"
147 #include "gaussian_topog_r8.fh"
149 end module gaussian_topog_mod
integer function, public check_nml_error(IOSTAT, NML_NAME)
Checks the iostat argument that is returned after reading a namelist and determines if the error code...
subroutine, public write_version_number(version, tag, unit)
Prints to the log file (or a specified unit) the version id string and tag name.
subroutine, public error_mesg(routine, message, level)
Print notes, warnings and error messages; terminates program for warning and error messages....
real(kind=r8_kind), dimension(maxmts) wlon
Longitude of half-width mountain trails (degrees)
real(kind=r8_kind), dimension(maxmts) rlon
Longitude of half-width mountain ridges (degrees) for "standard" gaussian mountain set,...
real(kind=r8_kind), dimension(maxmts) olon
longitude of mountain origins (degrees)
real(kind=r8_kind), dimension(maxmts) olat
Latitude of mountain origins (degrees)
real(kind=r8_kind), dimension(maxmts) height
height in meters of the gaussian mountiains
real(kind=r8_kind), dimension(maxmts) rlat
Latitude of half-width mountain ridges (degrees) for "standard" gaussian mountain set,...
real(kind=r8_kind), dimension(maxmts) wlat
Latitude of half-width mountain trails (degrees)
integer function stdlog()
This function returns the current standard fortran unit numbers for log messages. Log messages,...
integer function mpp_pe()
Returns processor ID.