- Timestamp:
- 2015-07-10T13:28:53+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2014/dev_r4765_CNRS_agrif/NEMOGCM/NEMO/OPA_SRC/DIA/diafwb.F90
r4147 r5581 7 7 !! 8.5 ! 02-06 (G. Madec) F90: Free form and module 8 8 !! 9.0 ! 05-11 (V. Garnier) Surface pressure gradient organization 9 !!---------------------------------------------------------------------- 10 #if ! defined key_coupled 11 9 !!---------------------------------------------------------------------- 12 10 !!---------------------------------------------------------------------- 13 11 !! Only for ORCA2 ORCA1 and ORCA025 … … 30 28 PUBLIC dia_fwb ! routine called by step.F90 31 29 32 LOGICAL, PUBLIC, PARAMETER :: lk_diafwb = .TRUE. !: fresh water budget flag33 34 30 REAL(wp) :: a_fwf , & 35 31 & a_sshb, a_sshn, a_salb, a_saln … … 55 51 INTEGER, INTENT( in ) :: kt ! ocean time-step index 56 52 !! 57 INTEGER :: inum ! temporary logical unit 58 INTEGER :: ji, jj, jk, jt ! dummy loop indices 59 INTEGER :: ii0, ii1, ij0, ij1 60 REAL(wp) :: zarea, zvol, zwei 61 REAL(wp) :: ztemi(4), ztemo(4), zsali(4), zsalo(4), zflxi(4), zflxo(4) 62 REAL(wp) :: zt, zs, zu 63 REAL(wp) :: zsm0, zfwfnew 53 INTEGER :: inum ! temporary logical unit 54 INTEGER :: ji, jj, jk, jt ! dummy loop indices 55 INTEGER :: ii0, ii1, ij0, ij1 56 INTEGER :: isrow ! index for ORCA1 starting row 57 REAL(wp) :: zarea, zvol, zwei 58 REAL(wp) :: ztemi(4), ztemo(4), zsali(4), zsalo(4), zflxi(4), zflxo(4) 59 REAL(wp) :: zt, zs, zu 60 REAL(wp) :: zsm0, zfwfnew 64 61 IF( cp_cfg == "orca" .AND. jp_cfg == 1 .OR. jp_cfg == 2 .OR. jp_cfg == 4 ) THEN 65 62 !!---------------------------------------------------------------------- … … 169 166 CASE ( 1 ) ! ORCA_R1 configurations 170 167 ! ! ======================= 171 ii0 = 283 ; ii1 = 283 172 ij0 = 200 ; ij1 = 200 168 ! This dirty section will be suppressed by simplification process: 169 ! all this will come back in input files 170 ! Currently these hard-wired indices relate to configuration with 171 ! extend grid (jpjglo=332) 172 isrow = 332 - jpjglo 173 ! 174 ii0 = 283 ; ii1 = 283 175 ij0 = 241 - isrow ; ij1 = 241 - isrow 173 176 ! ! ======================= 174 177 CASE DEFAULT ! ORCA R05 or R025 … … 216 219 CASE ( 1 ) ! ORCA_R1 configurations 217 220 ! ! ======================= 218 ii0 = 282 ; ii1 = 282 219 ij0 = 200 ; ij1 = 200 221 ! This dirty section will be suppressed by simplification process: 222 ! all this will come back in input files 223 ! Currently these hard-wired indices relate to configuration with 224 ! extend grid (jpjglo=332) 225 isrow = 332 - jpjglo 226 ii0 = 282 ; ii1 = 282 227 ij0 = 240 - isrow ; ij1 = 240 - isrow 220 228 ! ! ======================= 221 229 CASE DEFAULT ! ORCA R05 or R025 … … 263 271 CASE ( 1 ) ! ORCA_R1 configurations 264 272 ! ! ======================= 265 ii0 = 331 ; ii1 = 331 266 ij0 = 176 ; ij1 = 176 273 ! This dirty section will be suppressed by simplification process: 274 ! all this will come back in input files 275 ! Currently these hard-wired indices relate to configuration with 276 ! extend grid (jpjglo=332) 277 isrow = 332 - jpjglo 278 ii0 = 331 ; ii1 = 331 279 ij0 = 215 - isrow ; ij1 = 215 - isrow 267 280 ! ! ======================= 268 281 CASE DEFAULT ! ORCA R05 or R025 … … 310 323 CASE ( 1 ) ! ORCA_R1 configurations 311 324 ! ! ======================= 312 ii0 = 297 ; ii1 = 297 313 ij0 = 230 ; ij1 = 230 325 ! This dirty section will be suppressed by simplification process: 326 ! all this will come back in input files 327 ! Currently these hard-wired indices relate to configuration with 328 ! extend grid (jpjglo=332) 329 isrow = 332 - jpjglo 330 ii0 = 297 ; ii1 = 297 331 ij0 = 269 - isrow ; ij1 = 269 - isrow 314 332 ! ! ======================= 315 333 CASE DEFAULT ! ORCA R05 or R025 … … 453 471 END SUBROUTINE dia_fwb 454 472 455 #else456 !!----------------------------------------------------------------------457 !! Default option : Dummy Module458 !!----------------------------------------------------------------------459 LOGICAL, PUBLIC, PARAMETER :: lk_diafwb = .FALSE. !: fresh water budget flag460 CONTAINS461 SUBROUTINE dia_fwb( kt ) ! Empty routine462 WRITE(*,*) 'dia_fwb: : You should not have seen this print! error?', kt463 END SUBROUTINE dia_fwb464 #endif465 466 473 !!====================================================================== 467 474 END MODULE diafwb
Note: See TracChangeset
for help on using the changeset viewer.