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 1789 for branches/dev_005_AWL – NEMO

Changeset 1789 for branches/dev_005_AWL


Ignore:
Timestamp:
2009-12-08T16:17:43+01:00 (14 years ago)
Author:
sga
Message:

add a logical so that code can be run with nolim key set, but zero nests, NEMO branch dev_005_AWL

Location:
branches/dev_005_AWL/NEMO
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/dev_005_AWL/NEMO/NST_SRC/agrif_nolim_interp.F90

    r1788 r1789  
    3434   PUBLIC agrif_nolim_extrap 
    3535 
     36   LOGICAL, PUBLIC                ::   lk_nolim_nst = .TRUE. 
    3637   INTEGER, PARAMETER             ::   jp_nst = 10  ! maximum number of grids to remember 
    3738   INTEGER                        ::   mp_nst       ! number of grids remembered 
     
    142143 
    143144  100 CONTINUE 
     145 
     146      !  only set logical if we have any nests to run with 
     147      lk_nolim_nst = .FALSE. 
     148      IF( mp_nst > 0 ) lk_nolim_nst = .TRUE. 
    144149 
    145150   END SUBROUTINE agrif_nolim_init 
     
    474479 
    475480#else 
     481   ! 
     482   LOGICAL, PUBLIC                ::   lk_nolim_nst = .FALSE. 
     483   ! 
    476484CONTAINS 
    477    SUBROUTINE Agrif_flx_Interp_empty 
     485   SUBROUTINE agrif_nolim_init( ) 
    478486      !!--------------------------------------------- 
    479       !!   *** ROUTINE agrif_flx_Interp_empty *** 
     487      !!   *** ROUTINE agrif_nolim_init *** 
    480488      !!--------------------------------------------- 
    481       WRITE(*,*)  'agrif_flx_interp : You should not have seen this print! error?' 
    482    END SUBROUTINE Agrif_flx_Interp_empty 
     489      WRITE(*,*)  'agrif_nolim_init : You should not have seen this print! error?' 
     490   END SUBROUTINE agrif_nolim_init 
     491   SUBROUTINE agrif_nolim_extrap( ) 
     492      !!--------------------------------------------- 
     493      !!   *** ROUTINE agrif_nolim_extrap  *** 
     494      !!--------------------------------------------- 
     495      WRITE(*,*)  'agrif_nolim_extrap : You should not have seen this print! error?' 
     496   END SUBROUTINE agrif_nolim_extrap 
     497   SUBROUTINE agrif_nolim_flx( ) 
     498      !!--------------------------------------------- 
     499      !!   *** ROUTINE agrif_nolim_flx  *** 
     500      !!--------------------------------------------- 
     501      WRITE(*,*)  'agrif_nolim_flx : You should not have seen this print! error?' 
     502   END SUBROUTINE agrif_nolim_flx 
    483503#endif 
    484504   !!====================================================================== 
  • branches/dev_005_AWL/NEMO/OPA_SRC/SBC/sbcmod.F90

    r1786 r1789  
    3737   USE iom 
    3838   USE in_out_manager  ! I/O manager 
    39 #if defined key_agrif_nolim 
    4039   USE agrif_nolim 
    41 #endif 
    4240 
    4341   IMPLICIT NONE 
     
    215213#if key_agrif && defined key_agrif_nolim 
    216214 
    217       IF( Agrif_Root() ) THEN 
    218          ! 
    219          CALL agrif_nolim_extrap( kt ) 
    220          ! 
    221       ELSE 
    222          ! 
    223          CALL agrif_nolim_flx( kt ) 
    224          ! 
    225       ENDIF 
    226  
    227 #else 
     215      ! use nolim code only if both key_agrif_nolim is set and logical is true 
     216      ! this way the logical can be false if there are no nests (ie AGRIF_FixedGrids.in has a zero) 
     217 
     218      IF( lk_nolim_nst) THEN 
     219 
     220         IF( Agrif_Root() ) THEN 
     221            ! 
     222            CALL agrif_nolim_extrap( kt ) 
     223            ! 
     224         ELSE 
     225            ! 
     226            CALL agrif_nolim_flx( kt ) 
     227            ! 
     228         ENDIF 
     229 
     230      ENDIF 
     231#endif 
     232 
     233      IF( .NOT. lk_nolim_nst ) THEN 
    228234 
    229235      SELECT CASE( nsbc )                        ! Compute ocean surface boundary condition 
     
    265271      IF( nclosea == 1 )   CALL sbc_clo( kt )                   ! treatment of closed sea in the model domain  
    266272      !                                                         ! (update freshwater fluxes) 
    267 #endif 
     273      ENDIF 
    268274      ! 
    269275      IF( MOD( kt-1, nn_fsbc ) == 0 ) THEN 
Note: See TracChangeset for help on using the changeset viewer.