forked from wrf-model/WRF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwrf_restartout.F
56 lines (48 loc) · 1.82 KB
/
wrf_restartout.F
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
SUBROUTINE wrf_restartout ( fid , grid , config_flags, switch , &
dryrun, ierr )
USE module_io
USE module_wrf_error
USE module_io_wrf
USE module_domain
USE module_state_description
USE module_configure
USE module_scalar_tables
USE module_utility
IMPLICIT NONE
#include "wrf_io_flags.h"
#include "wrf_status_codes.h"
TYPE(domain) :: grid
TYPE(grid_config_rec_type), INTENT(INOUT) :: config_flags
INTEGER, INTENT(IN) :: fid, switch
INTEGER, INTENT(INOUT) :: ierr
LOGICAL, INTENT(IN) :: dryrun
! Local data
INTEGER ids , ide , jds , jde , kds , kde , &
ims , ime , jms , jme , kms , kme , &
ips , ipe , jps , jpe , kps , kpe
INTEGER itrace,idim1,idim2,idim3,idim4,idim5,idim6,idim7
INTEGER , DIMENSION(3) :: domain_start , domain_end
INTEGER , DIMENSION(3) :: memory_start , memory_end
INTEGER , DIMENSION(3) :: patch_start , patch_end
INTEGER i,j
INTEGER julyr, julday, idt, iswater , map_proj
REAL gmt, cen_lat, cen_lon, bdyfrq , truelat1 , truelat2, &
mp_physics, ra_lw_physics, ra_sw_physics, sf_sfclay_physics, &
sf_surface_physics, bl_pbl_physics, cu_physics
REAL khdif, kvdif
INTEGER rc
CHARACTER*256 message
CHARACTER*80 char_junk
INTEGER ibuf(1)
REAL rbuf(1)
CHARACTER*40 :: next_datestr
CALL get_ijk_from_grid ( grid , &
ids, ide, jds, jde, kds, kde, &
ims, ime, jms, jme, kms, kme, &
ips, ipe, jps, jpe, kps, kpe )
! note that the string current_date comes in through use association
! of module_io_wrf
! generated by the registry
#include "wrf_restartout.inc"
RETURN
END