diff --git a/atmos_model.F90 b/atmos_model.F90 index 134d806..4da607c 100644 --- a/atmos_model.F90 +++ b/atmos_model.F90 @@ -25,28 +25,28 @@ module atmos_model_mod ! ! ! -! Null atmosphere model. +! Null atmosphere model. ! ! -! Null atmosphere model. +! Null atmosphere model. ! ! ! ! -! Processor domain layout for atmos model. -! +! Processor domain layout for atmos model. +! ! ! A text file to specify n_mask, layout and mask_list to reduce number of processor -! usage by masking out some domain regions which contain all land points. -! The default file name of mask_table is "INPUT/atmos_mask_table". Please note that -! the file name must begin with "INPUT/". The first -! line of mask_table will be number of region to be masked out. The second line +! usage by masking out some domain regions which contain all land points. +! The default file name of mask_table is "INPUT/atmos_mask_table". Please note that +! the file name must begin with "INPUT/". The first +! line of mask_table will be number of region to be masked out. The second line ! of the mask_table will be the layout of the model. User need to set atmos_model_nml ! variable layout to be the same as the second line of the mask table. ! The following n_mask line will be the position of the processor to be masked out. -! The mask_table could be created by tools check_mask. -! For example the mask_table will be as following if n_mask=2, layout=4,6 and -! the processor (1,2) and (3,6) will be masked out. +! The mask_table could be created by tools check_mask. +! For example the mask_table will be as following if n_mask=2, layout=4,6 and +! the processor (1,2) and (3,6) will be masked out. ! 2 ! 4,6 ! 1,2 @@ -67,6 +67,7 @@ module atmos_model_mod use mpp_domains_mod, only : CYCLIC_GLOBAL_DOMAIN, mpp_get_data_domain use mpp_domains_mod, only : mpp_get_compute_domain, mpp_get_tile_id use mpp_domains_mod, only : mpp_get_current_ntile +use mpp_domains_mod, only : mpp_define_io_domain use fms_mod, only : stdout use fms_mod, only : check_nml_error use fms2_io_mod, only : file_exists, parse_mask_table @@ -119,7 +120,7 @@ module atmos_model_mod ! type atmos_data_type type (domain2d) :: domain ! domain decomposition - integer :: axes(4) ! axis indices (returned by diag_manager) for the atmospheric grid + integer :: axes(4) ! axis indices (returned by diag_manager) for the atmospheric grid ! (they correspond to the x, y, pfull, phalf axes) real, pointer, dimension(:,:) :: lon_bnd => NULL() ! local longitude axis grid box boundaries in radians. real, pointer, dimension(:,:) :: lat_bnd => NULL() ! local latitude axis grid box boundaries in radians. @@ -129,8 +130,8 @@ module atmos_model_mod real, pointer, dimension(:,:) :: p_bot => NULL() ! pressure at lowest model level real, pointer, dimension(:,:) :: u_bot => NULL() ! zonal wind component at lowest model level real, pointer, dimension(:,:) :: v_bot => NULL() ! meridional wind component at lowest model level - real, pointer, dimension(:,:) :: p_surf => NULL() ! surface pressure - real, pointer, dimension(:,:) :: slp => NULL() ! sea level pressure + real, pointer, dimension(:,:) :: p_surf => NULL() ! surface pressure + real, pointer, dimension(:,:) :: slp => NULL() ! sea level pressure real, pointer, dimension(:,:) :: gust => NULL() ! gustiness factor real, pointer, dimension(:,:) :: coszen => NULL() ! cosine of the zenith angle real, pointer, dimension(:,:) :: flux_sw => NULL() ! net shortwave flux (W/m2) at the surface @@ -180,7 +181,7 @@ module atmos_model_mod real, dimension(:,:), pointer :: albedo_nir_dir =>NULL() real, dimension(:,:), pointer :: albedo_vis_dif =>NULL() real, dimension(:,:), pointer :: albedo_nir_dif =>NULL() - real, dimension(:,:), pointer :: land_frac =>NULL() ! fraction amount of land in a grid box + real, dimension(:,:), pointer :: land_frac =>NULL() ! fraction amount of land in a grid box real, dimension(:,:), pointer :: dt_t =>NULL() ! temperature tendency at the lowest level real, dimension(:,:,:), pointer :: dt_tr =>NULL() ! tracer tendency at the lowest level, including specific humidity real, dimension(:,:), pointer :: u_flux =>NULL() ! zonal wind stress @@ -215,7 +216,7 @@ module atmos_model_mod real, dimension(:,:), pointer :: data =>NULL() ! quantities going from ice alone to atmos (none at present) end type ice_atmos_boundary_type ! - + !----------------------------------------------------------------------- character(len=128) :: version = '$Id$' @@ -235,7 +236,7 @@ module atmos_model_mod ! ! ! -! compute the atmospheric tendencies for dynamics, radiation, +! compute the atmospheric tendencies for dynamics, radiation, ! vertical diffusion of momentum, tracers, and heat/moisture. ! ! @@ -244,7 +245,7 @@ module atmos_model_mod ! atmospheric tendencies for dynamics, radiation, vertical diffusion of ! momentum, tracers, and heat/moisture. For heat/moisture only the ! downward sweep of the tridiagonal elimination is performed, hence -! the name "_down". +! the name "_down". ! ! ! -! Derived-type variable that contains quantities going from land+ice to atmos. +! Derived-type variable that contains quantities going from land+ice to atmos. ! ! @@ -290,7 +291,7 @@ end subroutine update_atmos_model_down ! Called every time step as the atmospheric driver to finish the upward ! sweep of the tridiagonal elimination for heat/moisture and compute the ! convective and large-scale tendencies. The atmospheric variables are -! advanced one time step and tendencies set back to zero. +! advanced one time step and tendencies set back to zero. ! ! ! -! Derived-type variable that contains quantities going from land+ice to atmos. +! Derived-type variable that contains quantities going from land+ice to atmos. ! ! @@ -317,7 +318,7 @@ subroutine update_atmos_model_up( Surface_boundary, Atmos ) type(land_ice_atmos_boundary_type), intent(in) :: Surface_boundary type (atmos_data_type), intent(in) :: Atmos - + return end subroutine update_atmos_model_up @@ -349,7 +350,7 @@ end subroutine update_atmos_model_dynamics ! ! This routine allocates storage and returns a variable of type -! atmos_boundary_data_type, and also reads a namelist input and restart file. +! atmos_boundary_data_type, and also reads a namelist input and restart file. ! !