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 3288 for branches – NEMO

Changeset 3288 for branches


Ignore:
Timestamp:
2012-01-27T14:32:32+01:00 (12 years ago)
Author:
rblod
Message:

Update prtctl in case of one processor run

Location:
branches/2011/dev_NEMO_MERGE_2011/NEMOGCM/NEMO/OPA_SRC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2011/dev_NEMO_MERGE_2011/NEMOGCM/NEMO/OPA_SRC/IOM/prtctl.F90

    r3186 r3288  
    123123      IF( PRESENT(mask2)   )   zmask2  (:,:,:)      = mask2  (:,:,:) 
    124124 
    125       IF( lk_mpp ) THEN       ! processor number 
     125      IF( lk_mpp .AND. jpnij > 1 ) THEN       ! processor number 
    126126         sind = narea 
    127127         eind = narea 
    128       ELSE                    ! processors total number 
     128      ELSE                                    ! processors total number 
    129129         sind = 1 
    130130         eind = ijsplt 
     
    137137         ! Set indices for the SUM control 
    138138         IF( .NOT. lsp_area ) THEN 
    139             IF (lk_mpp )   THEN 
     139            IF (lk_mpp .AND. jpnij > 1)   THEN 
    140140               nictls = MAX( 1, nlditl(jn) - overlap ) 
    141141               nictle = nleitl(jn) + overlap * MIN( 1, nlcitl(jn) - nleitl(jn))  
     
    229229      !!---------------------------------------------------------------------- 
    230230 
    231       IF( lk_mpp ) THEN       ! processor number 
     231      IF( lk_mpp .AND. jpnij > 1 ) THEN       ! processor number 
    232232         sind = narea 
    233233         eind = narea 
    234       ELSE                    ! total number of processors 
     234      ELSE                                    ! total number of processors 
    235235         sind = 1 
    236236         eind = ijsplt 
     
    294294      ktime = 1 
    295295 
    296       IF( lk_mpp ) THEN 
     296      IF( lk_mpp .AND. jpnij > 1 ) THEN 
    297297         sind = narea 
    298298         eind = narea 
  • branches/2011/dev_NEMO_MERGE_2011/NEMOGCM/NEMO/OPA_SRC/nemogcm.F90

    r3240 r3288  
    270270         WRITE(numout,*) '                       NEMO team' 
    271271         WRITE(numout,*) '            Ocean General Circulation Model' 
    272          WRITE(numout,*) '                version 3.4_beta  (2011) ' 
     272         WRITE(numout,*) '                  version 3.4  (2011) ' 
    273273         WRITE(numout,*) 
    274274         WRITE(numout,*) 
     
    414414      ! 
    415415      IF( ln_ctl ) THEN                 ! sub-domain area indices for the control prints 
    416          IF( lk_mpp ) THEN 
     416         IF( lk_mpp .AND. jpnij > 1 ) THEN 
    417417            isplt = jpni   ;   jsplt = jpnj   ;   ijsplt = jpni*jpnj   ! the domain is forced to the real split domain 
    418418         ELSE 
Note: See TracChangeset for help on using the changeset viewer.