84 real(RP),
public,
allocatable ::
ocean_t2 (:,:)
85 real(RP),
public,
allocatable ::
ocean_q2 (:,:)
90 real(RP),
public,
allocatable ::
atmos_w (:,:)
91 real(RP),
public,
allocatable ::
atmos_u (:,:)
92 real(RP),
public,
allocatable ::
atmos_v (:,:)
94 real(RP),
public,
allocatable ::
atmos_qv (:,:)
110 logical,
private :: ocean_vars_checkrange = .false.
112 integer,
private,
parameter :: vmax = 14
113 integer,
private,
parameter :: i_temp = 1
114 integer,
private,
parameter :: i_sfc_temp = 2
115 integer,
private,
parameter :: i_alb_lw = 3
116 integer,
private,
parameter :: i_alb_sw = 4
117 integer,
private,
parameter :: i_sfc_z0m = 5
118 integer,
private,
parameter :: i_sfc_z0h = 6
119 integer,
private,
parameter :: i_sfc_z0e = 7
120 integer,
private,
parameter :: i_sflx_mw = 8
121 integer,
private,
parameter :: i_sflx_mu = 9
122 integer,
private,
parameter :: i_sflx_mv = 10
123 integer,
private,
parameter :: i_sflx_sh = 11
124 integer,
private,
parameter :: i_sflx_lh = 12
125 integer,
private,
parameter :: i_sflx_wh = 13
126 integer,
private,
parameter :: i_sflx_evap = 14
128 character(len=H_SHORT),
private :: var_name(vmax)
129 character(len=H_MID),
private :: var_desc(vmax)
130 character(len=H_SHORT),
private :: var_unit(vmax)
131 integer,
private :: var_id(vmax)
132 integer,
private :: restart_fid = -1
134 data var_name /
'OCEAN_TEMP', &
148 data var_desc /
'temperature at uppermost ocean layer', &
149 'ocean surface skin temperature', &
150 'ocean surface albedo (longwave)', &
151 'ocean surface albedo (shortwave)', &
152 'ocean surface roughness length (momentum)', &
153 'ocean surface roughness length (heat)', &
154 'ocean surface roughness length (vapor)', &
155 'ocean surface w-momentum flux', &
156 'ocean surface u-momentum flux', &
157 'ocean surface v-momentum flux', &
158 'ocean surface sensible heat flux', &
159 'ocean surface latent heat flux', &
160 'ocean surface water heat flux', &
161 'ocean surface water vapor flux' /
162 data var_unit /
'K', &
188 namelist / param_ocean_vars / &
193 ocean_vars_checkrange
200 if(
io_l )
write(
io_fid_log,*)
'++++++ Module[VARS] / Categ[OCEAN] / Origin[SCALE-RM]' 283 if(
io_l )
write(
io_fid_log,*)
'*** Not found namelist. Default used.' 284 elseif( ierr > 0 )
then 285 write(*,*)
'xxx Not appropriate names in namelist PARAM_OCEAN_VARS. Check!' 291 if(
io_l )
write(
io_fid_log,*)
'*** List of prognostic variables (OCEAN) ***' 293 '*** |',
'VARNAME ',
'|',
'DESCRIPTION ',
'[',
'UNIT ',
']' 296 '*** NO.',iv,
'|',var_name(iv),
'|',var_desc(iv),
'[',var_unit(iv),
']' 328 if(
io_l )
write(
io_fid_log,*)
'*** Input restart file (OCEAN) ***' 365 if(
io_l )
write(
io_fid_log,*)
'*** restart file for ocean is not specified.' 382 character(len=20) :: timelabel
383 character(len=H_LONG) :: basename
392 if(
io_l )
write(
io_fid_log,*)
'*** Output restart file (OCEAN) ***' 398 var_name(i_temp), var_desc(i_temp), var_unit(i_temp), &
401 var_name(i_sfc_temp), var_desc(i_sfc_temp), var_unit(i_sfc_temp), &
404 var_name(i_alb_lw), var_desc(i_alb_lw), var_unit(i_alb_lw), &
407 var_name(i_alb_sw), var_desc(i_alb_sw), var_unit(i_alb_sw), &
410 var_name(i_sfc_z0m), var_desc(i_sfc_z0m), var_unit(i_sfc_z0m), &
413 var_name(i_sfc_z0h), var_desc(i_sfc_z0h), var_unit(i_sfc_z0h), &
416 var_name(i_sfc_z0e), var_desc(i_sfc_z0e), var_unit(i_sfc_z0e), &
419 var_name(i_sflx_mw), var_desc(i_sflx_mw), var_unit(i_sflx_mw), &
422 var_name(i_sflx_mu), var_desc(i_sflx_mu), var_unit(i_sflx_mu), &
425 var_name(i_sflx_mv), var_desc(i_sflx_mv), var_unit(i_sflx_mv), &
428 var_name(i_sflx_sh), var_desc(i_sflx_sh), var_unit(i_sflx_sh), &
431 var_name(i_sflx_lh), var_desc(i_sflx_lh), var_unit(i_sflx_lh), &
434 var_name(i_sflx_wh), var_desc(i_sflx_wh), var_unit(i_sflx_wh), &
437 var_name(i_sflx_evap), var_desc(i_sflx_evap), var_unit(i_sflx_evap), &
453 if ( ocean_vars_checkrange )
then 470 call hist_in(
ocean_temp(:,:), var_name(i_temp), var_desc(i_temp), var_unit(i_temp) )
471 call hist_in(
ocean_sfc_temp(:,:), var_name(i_sfc_temp), var_desc(i_sfc_temp), var_unit(i_sfc_temp) )
472 call hist_in(
ocean_sfc_albedo(:,:,i_lw), var_name(i_alb_lw), var_desc(i_alb_lw), var_unit(i_alb_lw) )
473 call hist_in(
ocean_sfc_albedo(:,:,i_sw), var_name(i_alb_sw), var_desc(i_alb_sw), var_unit(i_alb_sw) )
474 call hist_in(
ocean_sfc_z0m(:,:), var_name(i_sfc_z0m), var_desc(i_sfc_z0m), var_unit(i_sfc_z0m) )
475 call hist_in(
ocean_sfc_z0h(:,:), var_name(i_sfc_z0h), var_desc(i_sfc_z0h), var_unit(i_sfc_z0h) )
476 call hist_in(
ocean_sfc_z0e(:,:), var_name(i_sfc_z0e), var_desc(i_sfc_z0e), var_unit(i_sfc_z0e) )
478 call hist_in(
ocean_sflx_mw(:,:), var_name(i_sflx_mw), var_desc(i_sflx_mw), var_unit(i_sflx_mw) )
479 call hist_in(
ocean_sflx_mu(:,:), var_name(i_sflx_mu), var_desc(i_sflx_mu), var_unit(i_sflx_mu) )
480 call hist_in(
ocean_sflx_mv(:,:), var_name(i_sflx_mv), var_desc(i_sflx_mv), var_unit(i_sflx_mv) )
481 call hist_in(
ocean_sflx_sh(:,:), var_name(i_sflx_sh), var_desc(i_sflx_sh), var_unit(i_sflx_sh) )
482 call hist_in(
ocean_sflx_lh(:,:), var_name(i_sflx_lh), var_desc(i_sflx_lh), var_unit(i_sflx_lh) )
483 call hist_in(
ocean_sflx_wh(:,:), var_name(i_sflx_wh), var_desc(i_sflx_wh), var_unit(i_sflx_wh) )
484 call hist_in(
ocean_sflx_evap(:,:), var_name(i_sflx_evap), var_desc(i_sflx_evap), var_unit(i_sflx_evap) )
502 call stat_total( total,
ocean_temp(:,:), var_name(i_temp) )
503 call stat_total( total,
ocean_sfc_temp(:,:), var_name(i_sfc_temp) )
506 call stat_total( total,
ocean_sfc_z0m(:,:), var_name(i_sfc_z0m) )
507 call stat_total( total,
ocean_sfc_z0h(:,:), var_name(i_sfc_z0h) )
508 call stat_total( total,
ocean_sfc_z0e(:,:), var_name(i_sfc_z0e) )
510 call stat_total( total,
ocean_sflx_mw(:,:), var_name(i_sflx_mw) )
511 call stat_total( total,
ocean_sflx_mu(:,:), var_name(i_sflx_mu) )
512 call stat_total( total,
ocean_sflx_mv(:,:), var_name(i_sflx_mv) )
513 call stat_total( total,
ocean_sflx_sh(:,:), var_name(i_sflx_sh) )
514 call stat_total( total,
ocean_sflx_lh(:,:), var_name(i_sflx_lh) )
515 call stat_total( total,
ocean_sflx_wh(:,:), var_name(i_sflx_wh) )
528 OCEAN_SFC_albedo_in, &
534 real(RP),
intent(in) :: OCEAN_TEMP_in (
ia,
ja)
535 real(RP),
intent(in) :: OCEAN_SFC_TEMP_in (
ia,
ja)
536 real(RP),
intent(in) :: OCEAN_SFC_albedo_in(
ia,
ja,2)
537 real(RP),
intent(in) :: OCEAN_SFC_Z0M_in (
ia,
ja)
538 real(RP),
intent(in) :: OCEAN_SFC_Z0H_in (
ia,
ja)
539 real(RP),
intent(in) :: OCEAN_SFC_Z0E_in (
ia,
ja)
543 if(
io_l )
write(
io_fid_log,*)
'*** External Input file (ocean) ***' 576 character(len=20) :: timelabel
577 character(len=H_LONG) :: basename
586 if(
io_l )
write(
io_fid_log,*)
'*** Output restart file (OCEAN) ***' 602 if ( restart_fid .NE. -1 )
then 616 if ( restart_fid .NE. -1 )
then 633 if ( restart_fid .NE. -1 )
then 635 call fileio_def_var( restart_fid, var_id(i_temp), var_name(i_temp), var_desc(i_temp), &
637 call fileio_def_var( restart_fid, var_id(i_sfc_temp), var_name(i_sfc_temp), var_desc(i_sfc_temp), &
639 call fileio_def_var( restart_fid, var_id(i_alb_lw), var_name(i_alb_lw), var_desc(i_alb_lw), &
641 call fileio_def_var( restart_fid, var_id(i_alb_sw), var_name(i_alb_sw), var_desc(i_alb_sw), &
643 call fileio_def_var( restart_fid, var_id(i_sfc_z0m), var_name(i_sfc_z0m), var_desc(i_sfc_z0m), &
645 call fileio_def_var( restart_fid, var_id(i_sfc_z0h), var_name(i_sfc_z0h), var_desc(i_sfc_z0h), &
647 call fileio_def_var( restart_fid, var_id(i_sfc_z0e), var_name(i_sfc_z0e), var_desc(i_sfc_z0e), &
649 call fileio_def_var( restart_fid, var_id(i_sflx_mw), var_name(i_sflx_mw), var_desc(i_sflx_mw), &
651 call fileio_def_var( restart_fid, var_id(i_sflx_mu), var_name(i_sflx_mu), var_desc(i_sflx_mu), &
653 call fileio_def_var( restart_fid, var_id(i_sflx_mv), var_name(i_sflx_mv), var_desc(i_sflx_mv), &
655 call fileio_def_var( restart_fid, var_id(i_sflx_sh), var_name(i_sflx_sh), var_desc(i_sflx_sh), &
657 call fileio_def_var( restart_fid, var_id(i_sflx_lh), var_name(i_sflx_lh), var_desc(i_sflx_lh), &
659 call fileio_def_var( restart_fid, var_id(i_sflx_wh), var_name(i_sflx_wh), var_desc(i_sflx_wh), &
661 call fileio_def_var( restart_fid, var_id(i_sflx_evap), var_name(i_sflx_evap), var_desc(i_sflx_evap), &
678 if ( restart_fid .NE. -1 )
then 682 call fileio_write_var( restart_fid, var_id(i_temp),
ocean_temp(:,:), &
683 var_name(i_temp),
'XY', nohalo=.true. )
684 call fileio_write_var( restart_fid, var_id(i_sfc_temp),
ocean_sfc_temp(:,:), &
685 var_name(i_sfc_temp),
'XY', nohalo=.true. )
686 call fileio_write_var( restart_fid, var_id(i_alb_lw),
ocean_sfc_albedo(:,:,i_lw), &
687 var_name(i_alb_lw),
'XY', nohalo=.true. )
688 call fileio_write_var( restart_fid, var_id(i_alb_sw),
ocean_sfc_albedo(:,:,i_sw), &
689 var_name(i_alb_sw),
'XY', nohalo=.true. )
690 call fileio_write_var( restart_fid, var_id(i_sfc_z0m),
ocean_sfc_z0m(:,:), &
691 var_name(i_sfc_z0m),
'XY', nohalo=.true. )
692 call fileio_write_var( restart_fid, var_id(i_sfc_z0h),
ocean_sfc_z0h(:,:), &
693 var_name(i_sfc_z0h),
'XY', nohalo=.true. )
694 call fileio_write_var( restart_fid, var_id(i_sfc_z0e),
ocean_sfc_z0e(:,:), &
695 var_name(i_sfc_z0e),
'XY', nohalo=.true. )
696 call fileio_write_var( restart_fid, var_id(i_sflx_mw),
ocean_sflx_mw(:,:), &
697 var_name(i_sflx_mw),
'XY', nohalo=.true. )
698 call fileio_write_var( restart_fid, var_id(i_sflx_mu),
ocean_sflx_mu(:,:), &
699 var_name(i_sflx_mu),
'XY', nohalo=.true. )
700 call fileio_write_var( restart_fid, var_id(i_sflx_mv),
ocean_sflx_mv(:,:), &
701 var_name(i_sflx_mv),
'XY', nohalo=.true. )
702 call fileio_write_var( restart_fid, var_id(i_sflx_sh),
ocean_sflx_sh(:,:), &
703 var_name(i_sflx_sh),
'XY', nohalo=.true. )
704 call fileio_write_var( restart_fid, var_id(i_sflx_lh),
ocean_sflx_lh(:,:), &
705 var_name(i_sflx_lh),
'XY', nohalo=.true. )
706 call fileio_write_var( restart_fid, var_id(i_sflx_wh),
ocean_sflx_wh(:,:), &
707 var_name(i_sflx_wh),
'XY', nohalo=.true. )
708 call fileio_write_var( restart_fid, var_id(i_sflx_evap),
ocean_sflx_evap(:,:), &
709 var_name(i_sflx_evap),
'XY', nohalo=.true. )
character(len=h_mid), public ocean_restart_out_dtype
REAL4 or REAL8.
real(rp), dimension(:,:), allocatable, public ocean_v10
ocean surface velocity v at 10m [m/s]
integer, public is
start point of inner domain: x, local
real(rp), dimension(:,:), allocatable, public atmos_w
logical, public statistics_checktotal
calc&report variable totals to logfile?
real(rp), dimension(:,:), allocatable, public ocean_sfc_temp_t
tendency of OCEAN_SFC_TEMP
integer, public je
end point of inner domain: y, local
real(rp), dimension(:,:), allocatable, public ocean_sfc_z0e_t
tendency of OCEAN_SFC_Z0E
real(rp), dimension(:,:,:), allocatable, public ocean_sfc_albedo
ocean surface albedo [0-1]
real(rp), dimension(:,:), allocatable, public atmos_dens
integer, public const_i_lw
long-wave radiation index
subroutine, public prc_mpistop
Abort MPI.
real(rp), dimension(:,:,:), allocatable, public ocean_sfc_albedo_t
tendency of OCEAN_SFC_alebdo
logical, public io_l
output log or not? (this process)
real(rp), dimension(:,:), allocatable, public ocean_sfc_z0e
ocean surface roughness length for vapor [m]
real(rp), dimension(:,:), allocatable, public ocean_temp
temperature at uppermost ocean layer [K]
subroutine, public ocean_vars_restart_write
Write ocean restart.
real(rp), dimension(:,:), allocatable, public atmos_v
subroutine, public ocean_vars_history
History output set for ocean variables.
real(rp), dimension(:,:), allocatable, public ocean_sflx_wh
ocean surface water heat flux [J/m2/s]
subroutine, public ocean_vars_restart_def_var
Define ocean variables in restart file.
real(rp), dimension(:,:), allocatable, public atmos_sflx_lw
subroutine, public ocean_vars_restart_enddef
Exit netCDF define mode.
real(rp), dimension(:,:), allocatable, public ocean_temp_t
tendency of OCEAN_TEMP
real(rp), public const_undef
subroutine, public ocean_vars_restart_create
Create ocean restart file.
real(rp), dimension(:,:), allocatable, public atmos_cossza
subroutine, public fileio_def_var(fid, vid, varname, desc, unit, axistype, datatype, timeintv)
Define a variable to file.
integer, public ia
of x whole cells (local, with HALO)
real(rp), dimension(:,:), allocatable, public ocean_sflx_mv
ocean surface v-momentum flux [kg/m2/s]
subroutine, public time_gettimelabel(timelabel)
generate time label
subroutine, public ocean_vars_restart_write_var
Write ocean variables to restart file.
real(rp), dimension(:,:), allocatable, public atmos_sfc_pres
real(rp), dimension(:,:), allocatable, public atmos_qv
subroutine, public ocean_vars_total
Budget monitor for ocean.
subroutine, public fileio_create(fid, basename, title, datatype, date, subsec, append, nozcoord)
Create/open a netCDF file.
real(rp), dimension(:,:), allocatable, public ocean_sfc_z0h_t
tendency of OCEAN_SFC_Z0H
integer, public js
start point of inner domain: y, local
real(rp), dimension(:,:), allocatable, public atmos_sflx_prec
subroutine, public ocean_vars_external_in(OCEAN_TEMP_in, OCEAN_SFC_TEMP_in, OCEAN_SFC_albedo_in, OCEAN_SFC_Z0M_in, OCEAN_SFC_Z0H_in, OCEAN_SFC_Z0E_in)
Input from External I/O.
real(rp), dimension(:,:), allocatable, public atmos_temp
subroutine, public ocean_vars_restart_read
Read ocean restart.
real(rp), dimension(:,:), allocatable, public ocean_sflx_mw
ocean surface w-momentum flux [kg/m2/s]
real(rp), dimension(:,:), allocatable, public ocean_sflx_mu
ocean surface u-momentum flux [kg/m2/s]
real(rp), dimension(:,:), allocatable, public ocean_q2
ocean surface water vapor at 2m [kg/kg]
subroutine, public fileio_enddef(fid)
Exit netCDF file define mode.
real(rp), dimension(:,:), allocatable, public atmos_u
integer, public ie
end point of inner domain: x, local
real(rp), dimension(:,:), allocatable, public atmos_sflx_sw
real(rp), dimension(:,:), allocatable, public ocean_sfc_z0m
ocean surface roughness length for momentum [m]
real(rp), dimension(:,:), allocatable, public atmos_pbl
logical, public io_lnml
output log or not? (for namelist, this process)
integer, public const_i_sw
short-wave radiation index
subroutine, public ocean_vars_setup
Setup.
real(rp), dimension(:,:), allocatable, public ocean_sflx_sh
ocean surface sensible heat flux [J/m2/s]
character(len=h_long), public ocean_restart_in_basename
basename of the input file
real(rp), dimension(:,:), allocatable, public ocean_sfc_temp
ocean surface skin temperature [K]
subroutine, public fileio_close(fid)
Close a netCDF file.
character(len=h_long), public ocean_restart_out_basename
basename of the output file
integer, public io_fid_conf
Config file ID.
real(rp), dimension(:,:), allocatable, public ocean_sfc_z0m_t
tendency of OCEAN_SFC_Z0M
logical, public ocean_restart_output
output restart file?
integer, public io_fid_log
Log file ID.
subroutine, public ocean_vars_restart_close
Close restart file.
real(rp), dimension(:,:), allocatable, public atmos_pres
real(rp), dimension(:,:), allocatable, public ocean_sflx_lh
ocean surface latent heat flux [J/m2/s]
real(rp), dimension(:,:), allocatable, public ocean_u10
ocean surface velocity u at 10m [m/s]
real(rp), dimension(:,:), allocatable, public ocean_sflx_evap
ocean surface water vapor flux [kg/m2/s]
real(rp), dimension(:,:), allocatable, public ocean_sfc_z0h
ocean surface roughness length for heat [m]
real(rp), dimension(:,:), allocatable, public ocean_t2
ocean surface temperature at 2m [K]
character(len=h_mid), public ocean_restart_out_title
title of the output file
integer, public ja
of y whole cells (local, with HALO)