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

Changeset 1441


Ignore:
Timestamp:
2009-05-12T15:33:06+02:00 (15 years ago)
Author:
rblod
Message:

Correct some incompatibility with AGRIF, see #415 first part

Location:
trunk/NEMO
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/NST_SRC/agrif_opa_update.F90

    r1438 r1441  
    107107 
    108108      IF( n_cla == 1 ) CALL div_cla( kt ) 
    109       CALL wzv( kt ) 
     109!      CALL wzv( kt ) 
    110110 
    111111   END SUBROUTINE recompute_diags 
  • trunk/NEMO/OPA_SRC/IOM/iom.F90

    r1412 r1441  
    153153      ENDIF 
    154154#else 
    155 IF( Agrif_Root() ) THEN 
    156       IF( iom_open_init == 0 ) THEN 
    157          iom_file(:)%nfid = 0 
    158          iom_open_init = 1 
     155      IF( Agrif_Root() ) THEN 
     156         IF( iom_open_init == 0 ) THEN 
     157            iom_file(:)%nfid = 0 
     158            iom_open_init = 1 
     159         ENDIF 
    159160      ENDIF 
    160161#endif 
  • trunk/NEMO/OPA_SRC/lib_mpp.F90

    r1412 r1441  
    106106   !!  MPI  variable definition !! 
    107107   !! ========================= !! 
    108    !$AGRIF_DO_NOT_TREAT 
    109 #  include <mpif.h> 
    110    !$AGRIF_END_DO_NOT_TREAT 
     108!$AGRIF_DO_NOT_TREAT 
     109#  include "mpif.h" 
     110!$AGRIF_END_DO_NOT_TREAT 
    111111    
    112112   LOGICAL, PUBLIC, PARAMETER ::   lk_mpp = .TRUE.    !: mpp flag 
     
    19651965      ! Allocate the right size to nrank_north 
    19661966#if ! defined key_agrif 
    1967       IF( ALLOCATED( nrank_ice ) )   DEALLOCATE( nrank_ice ) 
     1967      IF( ALLOCATED ( nrank_ice ) )   DEALLOCATE( nrank_ice ) 
    19681968#else 
    1969       DEALLOCATE( nrank_ice ) 
     1969      IF( ASSOCIATED( nrank_ice ) )   DEALLOCATE( nrank_ice ) 
    19701970#endif 
    19711971      ALLOCATE( nrank_ice(ndim_rank_ice) ) 
     
    20442044         ! Allocate the right size to nrank_znl 
    20452045#if ! defined key_agrif 
    2046          IF (ALLOCATED(nrank_znl)) DEALLOCATE(nrank_znl) 
     2046         IF (ALLOCATED (nrank_znl)) DEALLOCATE(nrank_znl) 
    20472047#else 
    2048          DEALLOCATE(nrank_znl) 
     2048         IF (ASSOCIATED(nrank_znl)) DEALLOCATE(nrank_znl) 
    20492049#endif 
    20502050         ALLOCATE(nrank_znl(ndim_rank_znl)) 
     
    21262126      ! 
    21272127      ! Allocate the right size to nrank_north 
     2128#if ! defined key_agrif 
     2129      IF (ALLOCATED (nrank_north)) DEALLOCATE(nrank_north) 
     2130#else 
     2131      IF (ASSOCIATED(nrank_north)) DEALLOCATE(nrank_north) 
     2132#endif 
    21282133      ALLOCATE( nrank_north(ndim_rank_north) ) 
    21292134 
Note: See TracChangeset for help on using the changeset viewer.