New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 7330 for branches/2016/dev_r7233_CMIP6_diags_trunk_version/NEMOGCM/NEMO/OPA_SRC/DIA/diaptr.F90 – NEMO

Ignore:
Timestamp:
2016-11-24T17:10:48+01:00 (7 years ago)
Author:
timgraham
Message:

Final bug fixes needed for compilation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2016/dev_r7233_CMIP6_diags_trunk_version/NEMOGCM/NEMO/OPA_SRC/DIA/diaptr.F90

    r7236 r7330  
    2222   USE dom_oce          ! ocean space and time domain 
    2323   USE phycst           ! physical constants 
    24    USE ldftra  
    2524   ! 
    2625   USE iom              ! IOM library 
     
    372371         ENDIF 
    373372 
    374          IF(ln_ldfeiv) THEN 
    375             IF( iom_use("sophteiv") .OR. iom_use("sopsteiv") ) THEN  
    376                z2d(1,:) = htr_eiv(:,1) * rc_pwatt        !  (conversion in PW)  
    377                DO ji = 1, jpi 
    378                   z2d(ji,:) = z2d(1,:) 
    379                ENDDO 
    380                cl1 = 'sophteiv' 
    381                CALL iom_put( TRIM(cl1), z2d ) 
    382                z2d(1,:) = str_eiv(:,1) * rc_ggram        !  (conversion in Gg) 
    383                DO ji = 1, jpi 
    384                   z2d(ji,:) = z2d(1,:) 
    385                ENDDO 
    386                cl1 = 'sopsteiv' 
    387                CALL iom_put( TRIM(cl1), z2d ) 
    388                IF( ln_subbas ) THEN 
    389                   DO jn=2,nptr 
    390                      z2d(1,:) = htr_eiv(:,jn) * rc_pwatt        !  (conversion in PW) 
    391                      DO ji = 1, jpi 
    392                         z2d(ji,:) = z2d(1,:) 
    393                      ENDDO 
    394                      cl1 = TRIM('sophteiv_'//clsubb(jn))                  
    395                      CALL iom_put( cl1, z2d ) 
    396                      z2d(1,:) = str_eiv(:,jn) * rc_ggram        ! (conversion in Gg) 
    397                      DO ji = 1, jpi 
    398                         z2d(ji,:) = z2d(1,:) 
    399                      ENDDO 
    400                      cl1 = TRIM('sopsteiv_'//clsubb(jn))  
    401                      CALL iom_put( cl1, z2d )               
     373         IF( iom_use("sophteiv") .OR. iom_use("sopsteiv") ) THEN  
     374            z2d(1,:) = htr_eiv(:,1) * rc_pwatt        !  (conversion in PW)  
     375            DO ji = 1, jpi 
     376               z2d(ji,:) = z2d(1,:) 
     377            ENDDO 
     378            cl1 = 'sophteiv' 
     379            CALL iom_put( TRIM(cl1), z2d ) 
     380            z2d(1,:) = str_eiv(:,1) * rc_ggram        !  (conversion in Gg) 
     381            DO ji = 1, jpi 
     382               z2d(ji,:) = z2d(1,:) 
     383            ENDDO 
     384            cl1 = 'sopsteiv' 
     385            CALL iom_put( TRIM(cl1), z2d ) 
     386            IF( ln_subbas ) THEN 
     387               DO jn=2,nptr 
     388                  z2d(1,:) = htr_eiv(:,jn) * rc_pwatt        !  (conversion in PW) 
     389                  DO ji = 1, jpi 
     390                     z2d(ji,:) = z2d(1,:) 
    402391                  ENDDO 
    403                ENDIF 
     392                  cl1 = TRIM('sophteiv_'//clsubb(jn))                  
     393                  CALL iom_put( cl1, z2d ) 
     394                  z2d(1,:) = str_eiv(:,jn) * rc_ggram        ! (conversion in Gg) 
     395                  DO ji = 1, jpi 
     396                     z2d(ji,:) = z2d(1,:) 
     397                  ENDDO 
     398                  cl1 = TRIM('sopsteiv_'//clsubb(jn))  
     399                  CALL iom_put( cl1, z2d )               
     400               ENDDO 
    404401            ENDIF 
    405402         ENDIF 
Note: See TracChangeset for help on using the changeset viewer.