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/DTA – NEMO

Changeset 389 for trunk/NEMO/OPA_SRC/DTA


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
Location:
trunk/NEMO/OPA_SRC/DTA
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/DTA/dtasal.F90

    r247 r389  
    121121          
    122122         clname = 'data_1m_salinity_nomask' 
     123#if defined key_AGRIF 
     124         if ( .NOT. Agrif_Root() ) then 
     125            clname = TRIM(Agrif_CFixed())//'_'//TRIM(clname) 
     126         endif 
     127#endif           
    123128         CALL flinopen(TRIM(clname),mig(1),nlci,mjg(1),nlcj,.FALSE.   & 
    124129              ,ipi,ipj,ipk,zlon,zlat,zlev,itime,istep,zdate0,rdt,numsdt) 
     
    270275            WRITE(numout,*) 
    271276            WRITE(numout,*) ' Levitus month = ',nsal1,'  level = 1' 
    272             CALL prihre(saldta(1,1,1,1),jpi,jpj,1,jpi,20,1,jpj,20,1.,numout) 
     277            CALL prihre(saldta(:,:,1,1),jpi,jpj,1,jpi,20,1,jpj,20,1.,numout) 
    273278            WRITE(numout,*) ' Levitus month = ',nsal1,'  level = ',jpk/2 
    274             CALL prihre(saldta(1,1,jpk/2,1),jpi,jpj,1,jpi,20,1,jpj,20,1.,numout) 
     279            CALL prihre(saldta(:,:,jpk/2,1),jpi,jpj,1,jpi,20,1,jpj,20,1.,numout) 
    275280            WRITE(numout,*) ' Levitus month = ',nsal1,'  level = ',jpkm1 
    276             CALL prihre(saldta(1,1,jpkm1,1),jpi,jpj,1,jpi,20,1,jpj,20,1.,numout) 
     281            CALL prihre(saldta(:,:,jpkm1,1),jpi,jpj,1,jpi,20,1,jpj,20,1.,numout) 
    277282         ENDIF 
    278283      ENDIF 
  • trunk/NEMO/OPA_SRC/DTA/dtasst.F90

    r247 r389  
    9191      REAL(wp) ::   zlon(jpi,jpj), zlat(jpi,jpj), zlev(jpk) 
    9292      CHARACTER (len=45) ::   & 
    93          clname = "sst_1d.nc"      ! filename for daily SST 
     93         clname       ! filename for daily SST 
    9494      !!---------------------------------------------------------------------- 
    95  
     95         clname = 'sst_1d.nc' 
     96#if defined key_AGRIF 
     97      if ( .NOT. Agrif_Root() ) then 
     98         clname = TRIM(Agrif_CFixed())//'_'//TRIM(clname) 
     99      endif 
     100#endif          
    96101      IF( kt == nit000 ) THEN 
    97102         IF(lwp) WRITE(numout,*) 
  • trunk/NEMO/OPA_SRC/DTA/dtatem.F90

    r247 r389  
    2828 
    2929   !! * Module variables 
    30    CHARACTER (len=38) ::   & 
    31       cl_tdata = 'data_1m_potential_temperature_nomask ' 
     30   CHARACTER (len=45) ::   & 
     31      cl_tdata 
    3232   INTEGER ::   & 
    3333      nlecte =  0,   &  ! switch for the first read 
     
    9898      !!---------------------------------------------------------------------- 
    9999 
     100      cl_tdata = 'data_1m_potential_temperature_nomask ' 
     101 
     102#if defined key_AGRIF 
     103      if ( .NOT. Agrif_Root() ) then 
     104         cl_tdata = TRIM(Agrif_CFixed())//'_'//TRIM(cl_tdata) 
     105      endif 
     106#endif          
    100107 
    101108      ! 0. Initialization 
     
    262269            WRITE(numout,*) 
    263270            WRITE(numout,*) ' Levitus month = ', ntem1, '  level = 1' 
    264             CALL prihre( temdta(1,1,1,1), jpi, jpj, 1, jpi, 20, 1, jpj, 20, 1., numout ) 
     271            CALL prihre( temdta(:,:,1,1), jpi, jpj, 1, jpi, 20, 1, jpj, 20, 1., numout ) 
    265272            WRITE(numout,*) ' Levitus month = ', ntem1, '  level = ', jpk/2 
    266             CALL prihre( temdta(1,1,jpk/2,1), jpi, jpj, 1, jpi, 20, 1, jpj, 20, 1., numout ) 
     273            CALL prihre( temdta(:,:,jpk/2,1), jpi, jpj, 1, jpi, 20, 1, jpj, 20, 1., numout ) 
    267274            WRITE(numout,*) ' Levitus month = ',ntem1,'  level = ', jpkm1 
    268             CALL prihre( temdta(1,1,jpkm1,1), jpi, jpj, 1, jpi, 20, 1, jpj, 20, 1., numout ) 
     275            CALL prihre( temdta(:,:,jpkm1,1), jpi, jpj, 1, jpi, 20, 1, jpj, 20, 1., numout ) 
    269276         ENDIF 
    270277      ENDIF 
Note: See TracChangeset for help on using the changeset viewer.