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 14623 for utils/tools/DOMAINcfg/src/dombat.F90 – NEMO

Ignore:
Timestamp:
2021-03-21T19:40:22+01:00 (3 years ago)
Author:
ldebreu
Message:

AGFdomcfg: 1) Update DOMAINcfg to be compliant with the removal of halo cells 2) Update most of the LBC ... subroutines to a recent NEMO 4 version #2638

File:
1 edited

Legend:

Unmodified
Added
Removed
  • utils/tools/DOMAINcfg/src/dombat.F90

    r13204 r14623  
    4949      latname=TRIM(cn_lat) 
    5050    
    51       CALL iom_open( bathyfile, inum, lagrif=.FALSE. ) 
     51      CALL iom_open( bathyfile, inum, ldiof=.TRUE. ) 
    5252       
    5353      ! check if lon/lat are 2D arrays 
     
    404404        !             
    405405      ENDIF 
    406       CALL lbc_lnk( 'dom_bat', bathy, 'T', 1. ) 
     406      CALL lbc_lnk( 'dom_bat', bathy, 'T', 1.,kfillmode = jpfillcopy) 
    407407 
    408408       ! Correct South and North 
    409 #if defined key_agrif 
    410       IF( lk_south ) THEN   
    411          IF( (nbondj == -1).OR.(nbondj == 2) ) THEN 
    412            bathy(:,1)=bathy(:,2) 
    413          ENDIF 
    414       ELSE 
    415             bathy(:,1) = 0. 
    416       ENDIF 
    417 #else 
    418       IF ((nbondj == -1).OR.(nbondj == 2)) THEN 
    419             bathy(:,1)=bathy(:,2) 
    420       ENDIF 
    421 #endif 
    422  
    423       IF ((nbondj == 1).OR.(nbondj == 2)) THEN 
    424          bathy(:,jpj)=bathy(:,jpj-1) 
    425       ENDIF 
    426  
    427       ! Correct West and East 
    428       IF (jperio /=1) THEN 
    429          IF ((nbondi == -1).OR.(nbondi == 2)) THEN 
    430             bathy(1,:)=bathy(2,:) 
    431          ENDIF 
    432          IF ((nbondi == 1).OR.(nbondi == 2)) THEN 
    433          bathy(jpi,:)=bathy(jpi-1,:) 
    434          ENDIF 
    435       ENDIF 
     409! #if defined key_agrif 
     410!       IF( lk_south ) THEN   
     411!          IF( (nbondj == -1).OR.(nbondj == 2) ) THEN 
     412!            bathy(:,1)=bathy(:,2) 
     413!          ENDIF 
     414!       ELSE 
     415!             bathy(:,1) = 0. 
     416!       ENDIF 
     417! #else 
     418!       IF ((nbondj == -1).OR.(nbondj == 2)) THEN 
     419!             bathy(:,1)=bathy(:,2) 
     420!       ENDIF 
     421! #endif 
     422 
     423!       IF ((nbondj == 1).OR.(nbondj == 2)) THEN 
     424!          bathy(:,jpj)=bathy(:,jpj-1) 
     425!       ENDIF 
     426 
     427!       ! Correct West and East 
     428!       IF (jperio /=1) THEN 
     429!          IF ((nbondi == -1).OR.(nbondi == 2)) THEN 
     430!             bathy(1,:)=bathy(2,:) 
     431!          ENDIF 
     432!          IF ((nbondi == 1).OR.(nbondi == 2)) THEN 
     433!          bathy(jpi,:)=bathy(jpi-1,:) 
     434!          ENDIF 
     435!       ENDIF 
    436436 
    437437 
Note: See TracChangeset for help on using the changeset viewer.