Changeset 1884 for branches/TAM_V3_0/NEMO/OPA_SRC/DTA
- Timestamp:
- 2010-05-27T11:26:52+02:00 (14 years ago)
- Location:
- branches/TAM_V3_0/NEMO/OPA_SRC/DTA
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/TAM_V3_0/NEMO/OPA_SRC/DTA/dtasal.F90
r1152 r1884 34 34 INTEGER :: & 35 35 numsdt, & !: logical unit for data salinity 36 #if defined key_pomme_r025 37 nsal1, nsal2 , & ! first and second record used 38 nlecsa = 0 ! flag for first read 39 #else 36 40 nsal1, nsal2 ! first and second record used 41 #endif 37 42 REAL(wp), DIMENSION(jpi,jpj,jpk,2) :: & 38 43 saldta ! salinity data at two consecutive times … … 89 94 REAL(wp) :: zfac 90 95 #endif 96 CHARACTER (len=38) :: & 97 cl_sdata = 'data_1m_salinity_nomask ' 91 98 REAL(wp), DIMENSION(jpk,2) :: & 92 99 zsaldta ! auxiliary array for interpolation … … 96 103 ! ----------------- 97 104 98 iman = INT( raamo ) 105 #if defined key_pomme_r025 106 ! DRAKKAR : we use input file with 1 month only 107 iman = 1 108 #else 109 iman = INT( raamo ) 110 #endif 111 99 112 !!! better but change the results i15 = INT( 2*FLOAT( nday ) / ( FLOAT( nobis(nmonth) ) + 0.5 ) ) 100 113 i15 = nday / 16 … … 109 122 nsal1 = 0 ! initializations 110 123 IF(lwp) WRITE(numout,*) ' dta_sal : monthly salinity data in NetCDF file' 111 CALL iom_open ( 'data_1m_salinity_nomask', numsdt )112 124 CALL iom_open ( cl_sdata, numsdt ) 125 113 126 ENDIF 114 127 … … 117 130 ! ------------------- 118 131 132 #if defined key_pomme_r025 133 ! IF( kt == nit000 .OR. imois /= nsal1 ) THEN 134 ! In standard ORCA025, no damping is done. We read Levitus only for initial condition 135 IF( kt == nit000 .AND. nlecsa == 0 ) THEN 136 nlecsa = 1 137 #else 119 138 IF( kt == nit000 .OR. imois /= nsal1 ) THEN 139 #endif 120 140 121 141 ! 2.1 Calendar computation … … 318 338 CALL prihre(saldta(:,:,jpkm1,1),jpi,jpj,1,jpi,20,1,jpj,20,1.,numout) 319 339 ENDIF 340 #if ! defined key_pomme_r025 320 341 ENDIF 342 #endif 321 343 322 344 … … 326 348 zxy = FLOAT(nday + 15 - 30*i15)/30. 327 349 s_dta(:,:,:) = ( 1.- zxy ) * saldta(:,:,:,1) + zxy * saldta(:,:,:,2) 350 351 #if defined key_pomme_r025 352 ENDIF 353 #endif 328 354 329 355 ! Close the file -
branches/TAM_V3_0/NEMO/OPA_SRC/DTA/dtatem.F90
r1152 r1884 33 33 INTEGER :: & 34 34 numtdt, & !: logical unit for data temperature 35 #if defined key_pomme_r025 36 ntem1, ntem2 , & ! first and second record used 37 nlecte = 0 ! switch for frist read 38 #else 35 39 ntem1, ntem2 ! first and second record used 40 #endif 36 41 REAL(wp), DIMENSION(jpi,jpj,jpk,2) :: & 37 42 temdta ! temperature data at two consecutive times … … 94 99 REAL(wp) :: zfac 95 100 #endif 101 CHARACTER (len=38) :: & 102 cl_tdata = 'data_1m_potential_temperature_nomask ' 96 103 REAL(wp), DIMENSION(jpk,2) :: & 97 104 ztemdta ! auxiliary array for interpolation … … 101 108 ! ----------------- 102 109 110 #if defined key_pomme_r025 111 ! DRAKKAR : we use input file with 1 month only 112 iman = 1 113 #else 103 114 iman = INT( raamo ) 115 #endif 104 116 !!! better but change the results i15 = INT( 2*FLOAT( nday ) / ( FLOAT( nobis(nmonth) ) + 0.5 ) ) 105 117 i15 = nday / 16 … … 114 126 ntem1= 0 ! initializations 115 127 IF(lwp) WRITE(numout,*) ' dta_tem : Levitus monthly fields' 116 CALL iom_open ( 'data_1m_potential_temperature_nomask', numtdt )128 CALL iom_open ( cl_tdata, numtdt ) 117 129 118 130 ENDIF … … 122 134 ! ------------------- 123 135 136 #if defined key_pomme_r025 137 ! DRAKKAR read only first step 138 ! IF( kt == nit000 .OR. imois /= ntem1 ) THEN 139 IF( kt == nit000 .AND. nlecte == 0 ) THEN 140 nlecte = 1 141 #else 124 142 IF( kt == nit000 .OR. imois /= ntem1 ) THEN 143 #endif 125 144 126 145 ! Calendar computation … … 314 333 CALL prihre( temdta(:,:,jpkm1,1), jpi, jpj, 1, jpi, 20, 1, jpj, 20, 1., numout ) 315 334 ENDIF 335 #if ! defined key_pomme_r025 316 336 ENDIF 337 #endif 317 338 318 339 … … 322 343 zxy = FLOAT( nday + 15 - 30 * i15 ) / 30. 323 344 t_dta(:,:,:) = (1.-zxy) * temdta(:,:,:,1) + zxy * temdta(:,:,:,2) 324 345 346 #if defined key_pomme_r025 347 ENDIF 348 #endif 349 325 350 ! Close the file 326 351 ! --------------
Note: See TracChangeset
for help on using the changeset viewer.