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 389 for trunk/NEMO/OPA_SRC/SBC/tau_forced_monthly.h90 – NEMO

Ignore:
Timestamp:
2006-03-09T18:22:04+01:00 (18 years ago)
Author:
opalod
Message:

RB:nemo_v1_update_038: first integration of Agrif :

  • configuration parameters are just integer when agrif is used
  • add call to agrif routines with key_agrif
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/SBC/tau_forced_monthly.h90

    r319 r389  
    1414 
    1515   CHARACTER (len=34) ::   &      !!! * monthly climatology/interanual fields 
    16       cl_taux = 'taux_1m.nc',  & ! generic name of the i-component monthly NetCDF file 
    17       cl_tauy = 'tauy_1m.nc'     ! generic name of the j-component monthly NetCDF file 
     16      cl_taux,  & ! generic name of the i-component monthly NetCDF file 
     17      cl_tauy     ! generic name of the j-component monthly NetCDF file 
    1818 
    1919   REAL(wp), DIMENSION(jpi,jpj,2) ::   & 
     
    7777         zxy          ! coefficient of the linear time interpolation 
    7878      !!--------------------------------------------------------------------- 
     79      cl_taux = 'taux_1m.nc' 
     80      cl_tauy = 'tauy_1m.nc' 
    7981 
    8082      ! -------------- ! 
     
    106108          
    107109         ! title, dimensions and tests 
     110 
     111#if defined key_AGRIF 
     112      if ( .NOT. Agrif_Root() ) then 
     113         cl_taux = TRIM(Agrif_CFixed())//'_'//TRIM(cl_taux) 
     114      endif 
     115#endif 
    108116          
    109117         CALL flinopen( cl_taux, mig(1), nlci, mjg(1), nlcj,   &   ! taux on U-grid 
     
    126134            nstop = nstop + 1 
    127135         ENDIF 
    128  
     136#if defined key_AGRIF 
     137      if ( .NOT. Agrif_Root() ) then 
     138         cl_tauy = TRIM(Agrif_CFixed())//'_'//TRIM(cl_tauy) 
     139      endif 
     140#endif 
    129141         CALL flinopen( cl_tauy, mig(1), nlci, mjg(1), nlcj,   &   ! tauy on V-grid 
    130142                        .FALSE., ipi   , ipj, ipk   ,        & 
     
    185197            WRITE(numout,*) 
    186198            WRITE(numout,*) ' month: ', ntau1, '  taux: 1 multiply by ', 1. 
    187             CALL prihre( taux_dta(1,1,1), jpi, jpj, 1, jpi, 20, 1, jpj, 10, 1., numout ) 
     199            CALL prihre( taux_dta(:,:,1), jpi, jpj, 1, jpi, 20, 1, jpj, 10, 1., numout ) 
    188200            WRITE(numout,*) 
    189201            WRITE(numout,*) ' month: ', ntau2, '  tauy: 2 multiply by ', 1. 
    190             CALL prihre( tauy_dta(1,1,2), jpi, jpj, 1, jpi, 20, 1, jpj, 10, 1., numout ) 
     202            CALL prihre( tauy_dta(:,:,2), jpi, jpj, 1, jpi, 20, 1, jpj, 10, 1., numout ) 
    191203         ENDIF 
    192204 
Note: See TracChangeset for help on using the changeset viewer.