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 5105 for branches/2015/dev_r5003_MERCATOR6_CRS/NEMOGCM/NEMO/TOP_SRC/MY_TRC/trcwri_my_trc.F90 – NEMO

Ignore:
Timestamp:
2015-02-24T15:46:25+01:00 (9 years ago)
Author:
cbricaud
Message:

bug correction

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_r5003_MERCATOR6_CRS/NEMOGCM/NEMO/TOP_SRC/MY_TRC/trcwri_my_trc.F90

    r4996 r5105  
    1313   !!---------------------------------------------------------------------- 
    1414   USE trc         ! passive tracers common variables  
    15    USE iom         ! I/O manager 
     15   USE oce_trc 
     16   USE crs, ONLY : ln_crs 
    1617 
    1718   IMPLICIT NONE 
     
    3233      INTEGER              :: jn 
    3334      !!--------------------------------------------------------------------- 
     35      IF( ln_crs ) CALL iom_swap( "nemo_crs" ) 
    3436  
    3537      ! write the tracer concentrations in the file 
     
    3739      DO jn = jp_myt0, jp_myt1 
    3840         cltra = TRIM( ctrcnm(jn) )                  ! short title for tracer 
    39          CALL iom_put( cltra, trn(:,:,:,jn) ) 
     41         IF( lk_vvl ) THEN 
     42            CALL iom_put( cltra, trn(:,:,:,jn) * fse3t_n(:,:,:) ) 
     43         ELSE 
     44            CALL iom_put( TRIM(cltra), trn(:,:,:,jn) ) 
     45         ENDIF 
    4046      END DO 
     47      ! 
     48      IF( ln_crs ) CALL iom_swap( "nemo" ) 
    4149      ! 
    4250   END SUBROUTINE trc_wri_my_trc 
Note: See TracChangeset for help on using the changeset viewer.