Changeset 2715 for trunk/NEMOGCM/NEMO/TOP_SRC/trcdia.F90
- Timestamp:
- 2011-03-30T17:58:35+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMOGCM/NEMO/TOP_SRC/trcdia.F90
r2567 r2715 25 25 USE par_trc 26 26 USE dianam ! build name of file (routine) 27 USE in_out_manager ! I/O manager28 USE lib_mpp29 27 USE ioipsl 30 28 … … 32 30 PRIVATE 33 31 34 PUBLIC trc_dia ! called by XXX module 32 PUBLIC trc_dia ! called by XXX module 33 PUBLIC trc_dia_alloc ! called by nemogcm.F90 35 34 36 35 INTEGER :: nit5 !: id for tracer output file … … 40 39 INTEGER :: ndimt51 !: number of ocean points in index array 41 40 REAL(wp) :: zjulian !: ???? not DOCTOR ! 42 INTEGER , DIMENSION (jpij*jpk) :: ndext50 !: integer arrays for ocean 3D index43 INTEGER , DIMENSION (jpij):: ndext51 !: integer arrays for ocean surface index41 INTEGER , ALLOCATABLE, SAVE, DIMENSION (:) :: ndext50 !: integer arrays for ocean 3D index 42 INTEGER , ALLOCATABLE, SAVE, DIMENSION (:) :: ndext51 !: integer arrays for ocean surface index 44 43 # if defined key_diatrc 45 44 INTEGER :: nitd !: id for additional array output file … … 58 57 !! NEMO/TOP 3.3 , NEMO Consortium (2010) 59 58 !! $Id$ 60 !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt)59 !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) 61 60 !!---------------------------------------------------------------------- 62 61 CONTAINS … … 68 67 !! ** Purpose : output passive tracers fields 69 68 !!--------------------------------------------------------------------- 70 INTEGER, INTENT( in ) :: kt 71 INTEGER :: kindic 69 INTEGER, INTENT(in) :: kt ! ocean time-step 70 ! 71 INTEGER :: kindic ! local integer 72 72 !!--------------------------------------------------------------------- 73 73 ! … … 95 95 !! IF kindic >0, output of fields before the time step loop 96 96 !!---------------------------------------------------------------------- 97 INTEGER, INTENT( in ) :: kt! ocean time-step98 INTEGER, INTENT( in ) :: kindic! indicator of abnormal termination99 ! !97 INTEGER, INTENT(in) :: kt ! ocean time-step 98 INTEGER, INTENT(in) :: kindic ! indicator of abnormal termination 99 ! 100 100 INTEGER :: jn 101 101 LOGICAL :: ll_print = .FALSE. … … 183 183 DO jn = 1, jptra 184 184 IF( lutsav(jn) ) THEN 185 cltra = ctrcnm(jn) ! short title for tracer186 cltral = ctrcnl(jn) ! long title for tracer187 cltrau = ctrcun(jn) ! UNIT for tracer185 cltra = TRIM( ctrcnm(jn) ) ! short title for tracer 186 cltral = TRIM( ctrcnl(jn) ) ! long title for tracer 187 cltrau = TRIM( ctrcun(jn) ) ! UNIT for tracer 188 188 CALL histdef( nit5, cltra, cltral, cltrau, jpi, jpj, nhorit5, & 189 189 & ipk, 1, ipk, ndepit5, 32, clop, zsto, zout ) … … 208 208 209 209 DO jn = 1, jptra 210 cltra = ctrcnm(jn)! short title for tracer210 cltra = TRIM( ctrcnm(jn) ) ! short title for tracer 211 211 IF( lutsav(jn) ) CALL histwrite( nit5, cltra, it, trn(:,:,:,jn), ndimt50, ndext50 ) 212 212 END DO … … 216 216 IF( kt == nitend .OR. kindic < 0 ) CALL histclo( nit5 ) 217 217 ! 218 219 218 END SUBROUTINE trcdit_wr 220 219 … … 237 236 !! IF kindic >0, output of fields before the time step loop 238 237 !!---------------------------------------------------------------------- 239 INTEGER, INTENT( in ) :: kt! ocean time-step240 INTEGER, INTENT( in ) :: kindic! indicator of abnormal termination238 INTEGER, INTENT(in) :: kt ! ocean time-step 239 INTEGER, INTENT(in) :: kindic ! indicator of abnormal termination 241 240 !! 242 241 LOGICAL :: ll_print = .FALSE. … … 308 307 ! more 3D horizontal arrays 309 308 DO jl = 1, jpdia3d 310 cltra = ctrc3d(jl) ! short title for 3D diagnostic311 cltral = ctrc3l(jl)! long title for 3D diagnostic312 cltrau = ctrc3u(jl)! UNIT for 3D diagnostic309 cltra = TRIM( ctrc3d(jl) ) ! short title for 3D diagnostic 310 cltral = TRIM( ctrc3l(jl) ) ! long title for 3D diagnostic 311 cltrau = TRIM( ctrc3u(jl) ) ! UNIT for 3D diagnostic 313 312 CALL histdef( nitd, cltra, cltral, cltrau, jpi, jpj, nhoritd, & 314 313 & ipk, 1, ipk, ndepitd, 32, clop, zsto, zout ) … … 317 316 ! more 2D horizontal arrays 318 317 DO jl = 1, jpdia2d 319 cltra = ctrc2d(jl)! short title for 2D diagnostic320 cltral = ctrc2l(jl)! long title for 2D diagnostic321 cltrau = ctrc2u(jl)! UNIT for 2D diagnostic318 cltra = TRIM( ctrc2d(jl) ) ! short title for 2D diagnostic 319 cltral = TRIM( ctrc2l(jl) ) ! long title for 2D diagnostic 320 cltrau = TRIM( ctrc2u(jl) ) ! UNIT for 2D diagnostic 322 321 CALL histdef( nitd, cltra, cltral, cltrau, jpi, jpj, nhoritd, & 323 322 & 1, 1, 1, -99, 32, clop, zsto, zout ) … … 345 344 ! more 3D horizontal arrays 346 345 DO jl = 1, jpdia3d 347 cltra = ctrc3d(jl) ! short title for 3D diagnostic346 cltra = TRIM( ctrc3d(jl) ) ! short title for 3D diagnostic 348 347 CALL histwrite( nitd, cltra, it, trc3d(:,:,:,jl), ndimt50 ,ndext50) 349 348 END DO … … 351 350 ! more 2D horizontal arrays 352 351 DO jl = 1, jpdia2d 353 cltra = ctrc2d(jl) ! short title for 2D diagnostic352 cltra = TRIM( ctrc2d(jl) ) ! short title for 2D diagnostic 354 353 CALL histwrite(nitd, cltra, it, trc2d(:,:,jl), ndimt51 ,ndext51) 355 354 END DO … … 364 363 # else 365 364 SUBROUTINE trcdii_wr( kt, kindic ) ! Dummy routine 366 INTEGER, INTENT ( in) :: kt, kindic365 INTEGER, INTENT (in) :: kt, kindic 367 366 END SUBROUTINE trcdii_wr 368 367 # endif … … 400 399 ! Initialisation 401 400 ! -------------- 402 403 401 404 402 ! local variable for debugging … … 451 449 ! biological trends 452 450 DO jl = 1, jpdiabio 453 cltra = ctrbio(jl) ! short title for biological diagnostic454 cltral = ctrbil(jl)! long title for biological diagnostic455 cltrau = ctrbiu(jl)! UNIT for biological diagnostic451 cltra = TRIM( ctrbio(jl) ) ! short title for biological diagnostic 452 cltral = TRIM( ctrbil(jl) ) ! long title for biological diagnostic 453 cltrau = TRIM( ctrbiu(jl) ) ! UNIT for biological diagnostic 456 454 CALL histdef( nitb, cltra, cltral, cltrau, jpi, jpj, nhoritb, & 457 455 & ipk, 1, ipk, ndepitb, 32, clop, zsto, zout) … … 477 475 478 476 DO jl = 1, jpdiabio 479 cltra = ctrbio(jl)! short title for biological diagnostic477 cltra = TRIM( ctrbio(jl) ) ! short title for biological diagnostic 480 478 CALL histwrite(nitb, cltra, it, trbio(:,:,:,jl), ndimt50,ndext50) 481 479 END DO … … 485 483 IF( kt == nitend .OR. kindic < 0 ) CALL histclo( nitb ) 486 484 ! 487 488 485 END SUBROUTINE trcdib_wr 489 486 … … 496 493 # endif 497 494 495 INTEGER FUNCTION trc_dia_alloc() 496 !!--------------------------------------------------------------------- 497 !! *** ROUTINE trc_dia_alloc *** 498 !!--------------------------------------------------------------------- 499 ALLOCATE( ndext50(jpij*jpk), ndext51(jpij), STAT=trc_dia_alloc ) 500 ! 501 IF( trc_dia_alloc /= 0 ) CALL ctl_warn('trc_dia_alloc : failed to allocate arrays') 502 ! 503 END FUNCTION trc_dia_alloc 498 504 #else 499 505 !!----------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.