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 6647 – NEMO

Changeset 6647


Ignore:
Timestamp:
2016-05-31T16:40:26+02:00 (8 years ago)
Author:
frrh
Message:

Try to reorganise to avoid clashes with other GO6 package branches.
Also reinstate incorrectly dleted $Id line in DIA/diadct.F90 apparently deleted
by originial medusa branch at rev 5726 when it should merely have reformatted it
or left it alone completely.

Location:
branches/UKMO/dev_r5518_RH_MEDUSA_Stable/NEMOGCM
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_r5518_RH_MEDUSA_Stable/NEMOGCM/CONFIG/cfg.txt

    r6639 r6647  
    11GYRE_PISCES OPA_SRC TOP_SRC 
     2ORCA2_OFF_MEDUSA OPA_SRC OFF_SRC TOP_SRC 
    23ORCA2_LIM_CFC_C14b OPA_SRC LIM_SRC_2 NST_SRC TOP_SRC 
    34GYRE_XIOS OPA_SRC 
     
    1112ORCA2_LIM OPA_SRC LIM_SRC_2 NST_SRC 
    1213ORCA2_OFF_PISCES OPA_SRC OFF_SRC TOP_SRC 
    13 ORCA2_OFF_MEDUSA OPA_SRC OFF_SRC TOP_SRC 
  • branches/UKMO/dev_r5518_RH_MEDUSA_Stable/NEMOGCM/NEMO/OPA_SRC/DIA/diadct.F90

    r6637 r6647  
    112112  REAL(wp), ALLOCATABLE, DIMENSION(:,:,:)   ::  transports_2d   
    113113 
     114   !! $Id$ 
    114115CONTAINS 
    115116 
     
    12971298   LOGICAL, PUBLIC, PARAMETER ::   lk_diadct = .FALSE.    !: diamht flag 
    12981299   PUBLIC  
     1300   !! $Id$ 
    12991301CONTAINS 
    13001302 
  • branches/UKMO/dev_r5518_RH_MEDUSA_Stable/NEMOGCM/NEMO/TOP_SRC/trcini.F90

    r6639 r6647  
    156156        ! 
    157157        IF( ln_trcdta .AND. nb_trcdta > 0 ) THEN  ! Initialisation of tracer from a file that may also be used for damping 
     158#if !defined key_medusa 
    158159            ! 
    159 #if defined key_medusa 
    160             IF(lwp) WRITE(numout,*) 'AXY: calling wrk_alloc' 
    161             IF(lwp) CALL flush(numout) 
    162 #endif 
    163160            CALL wrk_alloc( jpi, jpj, jpk, ztrcdta )    ! Memory allocation 
    164161            ! 
    165 #if defined key_medusa 
    166             IF(lwp) WRITE(numout,*) 'AXY: calling trc_dta' 
    167             IF(lwp) CALL flush(numout) 
    168 #endif 
    169162            DO jn = 1, jptra 
    170163               IF( ln_trc_ini(jn) ) THEN      ! update passive tracers arrays with input data read from file 
     
    172165                  CALL trc_dta( nit000, sf_trcdta(jl),rf_trfac(jl) )   ! read tracer data at nit000 
    173166                  ztrcdta(:,:,:) = sf_trcdta(jl)%fnow(:,:,:) 
    174                   trn(:,:,:,jn) = ztrcdta(:,:,:) * tmask(:,:,:)   
     167                  trn(:,:,:,jn) = ztrcdta(:,:,:) * tmask(:,:,:)  
     168                  IF( .NOT.ln_trcdmp .AND. .NOT.ln_trcdmp_clo ) THEN      !== deallocate data structure   ==! 
     169                     !                                                    (data used only for initialisation) 
     170                     IF(lwp) WRITE(numout,*) 'trc_dta: deallocate data arrays as they are only used to initialize the run' 
     171                                                  DEALLOCATE( sf_trcdta(jl)%fnow )     !  arrays in the structure 
     172                     IF( sf_trcdta(jl)%ln_tint )  DEALLOCATE( sf_trcdta(jl)%fdta ) 
     173                     ! 
     174                  ENDIF 
     175               ENDIF 
     176            ENDDO 
     177            CALL wrk_dealloc( jpi, jpj, jpk, ztrcdta ) 
     178 
     179#else 
     180            IF(lwp) WRITE(numout,*) 'AXY: calling wrk_alloc' 
     181            IF(lwp) CALL flush(numout) 
     182 
     183            CALL wrk_alloc( jpi, jpj, jpk, ztrcdta )    ! Memory allocation 
     184               ! 
     185            IF(lwp) WRITE(numout,*) 'AXY: calling trc_dta' 
     186            IF(lwp) CALL flush(numout) 
     187 
     188            DO jn = 1, jptra 
     189               IF( ln_trc_ini(jn) ) THEN      ! update passive tracers arrays with input data read from file 
     190                  jl = n_trc_index(jn) 
     191                  CALL trc_dta( nit000, sf_trcdta(jl),rf_trfac(jl) )   ! read tracer data at nit000 
     192                  ztrcdta(:,:,:) = sf_trcdta(jl)%fnow(:,:,:) 
     193                  trn(:,:,:,jn) = ztrcdta(:,:,:) * tmask(:,:,:)  
    175194                  IF( .NOT.ln_trcdmp .AND. .NOT. ln_trcdmp_clo ) THEN      !== deallocate data structure   ==! 
    176195                     !                                                    (data used only for initialisation) 
     
    182201               ENDIF 
    183202            ENDDO 
    184 #if defined key_medusa 
     203 
    185204            IF(lwp) WRITE(numout,*) 'AXY: calling wrk_dealloc' 
    186205            IF(lwp) CALL flush(numout) 
Note: See TracChangeset for help on using the changeset viewer.