- Timestamp:
- 2017-06-19T17:43:22+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/dev_r5518_GO6_package_inc_asm/NEMOGCM/NEMO/OPA_SRC/DYN/dynhpg.F90
r8036 r8190 85 85 INTEGER, INTENT(in) :: kt ! ocean time-step index 86 86 REAL(wp), POINTER, DIMENSION(:,:,:) :: ztrdu, ztrdv 87 REAL(wp), DIMENSION(jpi,jpj,jpk) :: z_rhd_st ! tmp density storage for pressure corr88 REAL(wp), DIMENSION(jpi,jpj) :: z_gru_st ! tmp ua trends storage for pressure corr89 REAL(wp), DIMENSION(jpi,jpj) :: z_grv_st ! tmp va trends storage for pressure corr87 REAL(wp), ALLOCATABLE, DIMENSION(:,:,:) :: z_rhd_st ! tmp density storage for pressure corr 88 REAL(wp), ALLOCATABLE, DIMENSION(:,:) :: z_gru_st ! tmp ua trends storage for pressure corr 89 REAL(wp), ALLOCATABLE, DIMENSION(:,:) :: z_grv_st ! tmp va trends storage for pressure corr 90 90 !!---------------------------------------------------------------------- 91 91 ! … … 99 99 ! 100 100 IF ( ln_bias .AND. ln_bias_pc_app ) THEN 101 102 !Allocate space for tempory variables 103 ALLOCATE( z_rhd_st(jpi,jpj,jpk), & 104 & z_gru_st(jpi,jpj), & 105 & z_grv_st(jpi,jpj) ) 106 101 107 z_rhd_st(:,:,:) = rhd(:,:,:) ! store orig density 102 108 rhd(:,:,:) = rhd_pc(:,:,:) ! use pressure corrected density … … 105 111 z_grv_st(:,:) = grv(:,:) 106 112 grv(:,:) = grv_pc(:,:) 113 107 114 ENDIF 108 115 ! … … 130 137 gru(:,:) = z_gru_st(:,:) 131 138 grv(:,:) = z_grv_st(:,:) 139 140 !Deallocate tempory variables 141 DEALLOCATE( z_rhd_st(jpi,jpj,jpk), & 142 & z_gru_st(jpi,jpj), & 143 & z_grv_st(jpi,jpj) ) 132 144 ENDIF 133 145 !
Note: See TracChangeset
for help on using the changeset viewer.