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 531 for trunk/NEMO/OPA_SRC/DOM – NEMO

Changeset 531 for trunk/NEMO/OPA_SRC/DOM


Ignore:
Timestamp:
2006-10-19T14:55:25+02:00 (18 years ago)
Author:
opalod
Message:

nemo_v1_update_75 : CT : enables bit comparison between single and multiple processor runs adding nbit_cmp namelist parameter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/DOM/domain.F90

    r516 r531  
    177177 
    178178      ndastp = ndate0                ! Assign initial date to current date 
    179  
    180 ! ... Control the sub-domain area indices for the print control 
    181       IF(ln_ctl)   THEN 
    182          IF( lk_mpp ) THEN 
    183             ! the domain is forced to the real splitted domain in MPI 
    184             isplt = jpni ; jsplt = jpnj ; ijsplt = jpni*jpnj 
    185          ELSE 
    186             IF( isplt == 1 .AND. jsplt == 1  ) THEN 
    187                IF(lwp) WRITE(numout,cform_war) 
    188                IF(lwp) WRITE(numout,*)'          - isplt & jsplt are equal to 1' 
    189                IF(lwp) WRITE(numout,*)'          - the print control will be done over the whole domain' 
    190                IF(lwp) WRITE(numout,*) 
    191             ENDIF 
    192  
    193             ! compute the total number of processors ijsplt 
    194             ijsplt = isplt*jsplt 
    195          ENDIF 
    196  
    197          IF(lwp) WRITE(numout,*)'          - The total number of processors over which the' 
    198          IF(lwp) WRITE(numout,*)'            print control will be done is ijsplt : ', ijsplt 
    199  
    200          ! Control the indices used for the SUM control 
    201          IF( nictls+nictle+njctls+njctle == 0 )   THEN 
    202             ! the print control is done over the default area 
    203             lsp_area = .FALSE. 
    204          ELSE 
    205             ! the print control is done over a specific  area 
    206             lsp_area = .TRUE. 
    207             IF( nictls < 1 .OR. nictls > jpiglo )   THEN 
    208                IF(lwp) WRITE(numout,cform_war) 
    209                IF(lwp) WRITE(numout,*)'          - nictls must be 1<=nictls>=jpiglo, it is forced to 1' 
    210                IF(lwp) WRITE(numout,*) 
    211                nwarn = nwarn + 1 
    212                nictls = 1 
    213             ENDIF 
    214  
    215             IF( nictle < 1 .OR. nictle > jpiglo )   THEN 
    216                IF(lwp) WRITE(numout,cform_war) 
    217                IF(lwp) WRITE(numout,*)'          - nictle must be 1<=nictle>=jpiglo, it is forced to jpiglo' 
    218                IF(lwp) WRITE(numout,*) 
    219                nwarn = nwarn + 1 
    220                nictle = jpjglo 
    221             ENDIF 
    222  
    223             IF( njctls < 1 .OR. njctls > jpjglo )   THEN 
    224                IF(lwp) WRITE(numout,cform_war) 
    225                IF(lwp) WRITE(numout,*)'          - njctls must be 1<=njctls>=jpjglo, it is forced to 1' 
    226                IF(lwp) WRITE(numout,*) 
    227                nwarn = nwarn + 1 
    228                njctls = 1 
    229             ENDIF 
    230  
    231             IF( njctle < 1 .OR. njctle > jpjglo )   THEN 
    232                IF(lwp) WRITE(numout,cform_war) 
    233                IF(lwp) WRITE(numout,*)'          - njctle must be 1<=njctle>= jpjglo, it is forced to jpjglo' 
    234                IF(lwp) WRITE(numout,*) 
    235                nwarn = nwarn + 1 
    236                njctle = jpjglo 
    237             ENDIF 
    238  
    239          ENDIF          ! IF( nictls+nictle+njctls+njctle == 0 ) 
    240        ENDIF            ! IF(ln_ctl) 
    241179 
    242180! ... Control of output frequency 
     
    342280      ENDIF 
    343281 
     282      IF( nbit_cmp == 1 .AND. n_cla /= 0 ) THEN 
     283         CALL ctl_stop( ' Reproductibility tests (nbit_cmp=1) require n_cla = 0' ) 
     284      END IF 
     285 
    344286   END SUBROUTINE dom_nam 
    345287 
Note: See TracChangeset for help on using the changeset viewer.