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 719 for trunk/NEMO/OPA_SRC/lib_mpp.F90 – NEMO

Ignore:
Timestamp:
2007-10-16T16:59:56+02:00 (17 years ago)
Author:
ctlod
Message:

get back to the nemo_v2_3 version for trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/lib_mpp.F90

    • Property svn:keywords changed from Id to Author Date Id Revision
    r717 r719  
    4848   !!---------------------------------------------------------------------- 
    4949   !!  OPA 9.0 , LOCEAN-IPSL (2005)  
    50    !! $Id$ 
     50   !! $Header: /home/opalod/NEMOCVSROOT/NEMO/OPA_SRC/lib_mpp.F90,v 1.21 2007/06/05 10:28:55 opalod Exp $  
    5151   !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt  
    5252   !!--------------------------------------------------------------------- 
     
    270270   !!---------------------------------------------------------------------- 
    271271   !!  OPA 9.0 , LOCEAN-IPSL (2005)  
    272    !! $Id$ 
     272   !! $Header: /home/opalod/NEMOCVSROOT/NEMO/OPA_SRC/lib_mpp.F90,v 1.21 2007/06/05 10:28:55 opalod Exp $  
    273273   !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt  
    274274   !!--------------------------------------------------------------------- 
     
    597597#endif 
    598598 
    599    SUBROUTINE mpp_lnk_3d( ptab, cd_type, psgn, cd_mpp, pval ) 
     599   SUBROUTINE mpp_lnk_3d( ptab, cd_type, psgn, cd_mpp ) 
    600600      !!---------------------------------------------------------------------- 
    601601      !!                  ***  routine mpp_lnk_3d  *** 
     
    632632      CHARACTER(len=3), INTENT( in ), OPTIONAL ::    & 
    633633         cd_mpp        ! fill the overlap area only  
    634       REAL(wp)        , INTENT(in   ), OPTIONAL           ::   pval      ! background value (used at closed boundaries) 
    635634 
    636635      !! * Local variables 
     
    639638      INTEGER ::   ml_req1, ml_req2, ml_err     ! for key_mpi_isend 
    640639      INTEGER ::   ml_stat(MPI_STATUS_SIZE)     ! for key_mpi_isend 
    641       REAL(wp) ::   zland 
    642640      !!---------------------------------------------------------------------- 
    643641 
    644642      ! 1. standard boundary treatment 
    645643      ! ------------------------------ 
    646  
    647       IF( PRESENT( pval ) ) THEN      ! set land value (zero by default) 
    648          zland = pval 
    649       ELSE 
    650          zland = 0.e0 
    651       ENDIF 
    652644 
    653645      IF( PRESENT( cd_mpp ) ) THEN 
     
    670662            SELECT CASE ( cd_type ) 
    671663            CASE ( 'T', 'U', 'V', 'W' ) 
    672                ptab(     1       :jpreci,:,:) = zland 
    673                ptab(nlci-jpreci+1:jpi   ,:,:) = zland 
     664               ptab(     1       :jpreci,:,:) = 0.e0 
     665               ptab(nlci-jpreci+1:jpi   ,:,:) = 0.e0 
    674666            CASE ( 'F' ) 
    675                ptab(nlci-jpreci+1:jpi   ,:,:) = zland 
     667               ptab(nlci-jpreci+1:jpi   ,:,:) = 0.e0 
    676668            END SELECT  
    677669         ENDIF 
     
    681673         SELECT CASE ( cd_type ) 
    682674         CASE ( 'T', 'U', 'V', 'W' ) 
    683             ptab(:,     1       :jprecj,:) = zland 
    684             ptab(:,nlcj-jprecj+1:jpj   ,:) = zland 
     675            ptab(:,     1       :jprecj,:) = 0.e0 
     676            ptab(:,nlcj-jprecj+1:jpj   ,:) = 0.e0 
    685677         CASE ( 'F' ) 
    686             ptab(:,nlcj-jprecj+1:jpj   ,:) = zland 
     678            ptab(:,nlcj-jprecj+1:jpj   ,:) = 0.e0 
    687679         END SELECT 
    688680      
     
    10581050 
    10591051 
    1060    SUBROUTINE mpp_lnk_2d( pt2d, cd_type, psgn, cd_mpp, pval ) 
     1052   SUBROUTINE mpp_lnk_2d( pt2d, cd_type, psgn, cd_mpp ) 
    10611053      !!---------------------------------------------------------------------- 
    10621054      !!                  ***  routine mpp_lnk_2d  *** 
     
    10921084      CHARACTER(len=3), INTENT( in ), OPTIONAL ::    & 
    10931085         cd_mpp        ! fill the overlap area only  
    1094       REAL(wp)        , INTENT(in   ), OPTIONAL           ::   pval      ! background value (used at closed boundaries) 
    10951086 
    10961087      !! * Local variables 
     
    11011092      INTEGER  ::   ml_req1, ml_req2, ml_err     ! for key_mpi_isend 
    11021093      INTEGER  ::   ml_stat(MPI_STATUS_SIZE)     ! for key_mpi_isend 
    1103       REAL(wp) ::   zland 
    11041094      !!---------------------------------------------------------------------- 
    1105  
    1106       IF( PRESENT( pval ) ) THEN      ! set land value (zero by default) 
    1107          zland = pval 
    1108       ELSE 
    1109          zland = 0.e0 
    1110       ENDIF 
    11111095 
    11121096      ! 1. standard boundary treatment 
     
    11311115            SELECT CASE ( cd_type ) 
    11321116            CASE ( 'T', 'U', 'V', 'W' , 'I' ) 
    1133                pt2d(     1       :jpreci,:) = zland 
    1134                pt2d(nlci-jpreci+1:jpi   ,:) = zland 
     1117               pt2d(     1       :jpreci,:) = 0.e0 
     1118               pt2d(nlci-jpreci+1:jpi   ,:) = 0.e0 
    11351119            CASE ( 'F' ) 
    1136                pt2d(nlci-jpreci+1:jpi   ,:) = zland 
     1120               pt2d(nlci-jpreci+1:jpi   ,:) = 0.e0 
    11371121            END SELECT 
    11381122         ENDIF 
     
    11421126         SELECT CASE ( cd_type ) 
    11431127         CASE ( 'T', 'U', 'V', 'W' , 'I' ) 
    1144             pt2d(:,     1       :jprecj) = zland 
    1145             pt2d(:,nlcj-jprecj+1:jpj   ) = zland 
     1128            pt2d(:,     1       :jprecj) = 0.e0 
     1129            pt2d(:,nlcj-jprecj+1:jpj   ) = 0.e0 
    11461130         CASE ( 'F' ) 
    1147             pt2d(:,nlcj-jprecj+1:jpj   ) = zland 
     1131            pt2d(:,nlcj-jprecj+1:jpj   ) = 0.e0 
    11481132         END SELECT 
    11491133 
     
    14101394   
    14111395            CASE ( 'I' )                                  ! ice U-V point 
    1412                pt2d( 2 ,nlcj) = zland 
     1396               pt2d( 2 ,nlcj) = 0.e0 
    14131397               DO ji = 2 , nlci-1 
    14141398                  ijt = iloc - ji + 2 
Note: See TracChangeset for help on using the changeset viewer.