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 4437 for branches/2011/DEV_r2739_STFC_dCSE/NEMOGCM/NEMO/OPA_SRC/LBC/partition_mod.F90 – NEMO

Ignore:
Timestamp:
2014-02-04T13:14:54+01:00 (10 years ago)
Author:
trackstand2
Message:

Trim columns in exchs_generic and init mbkmax in mpp_init3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2011/DEV_r2739_STFC_dCSE/NEMOGCM/NEMO/OPA_SRC/LBC/partition_mod.F90

    r3849 r4437  
    1414                      nperio,      &  ! Local periodicity  
    1515                      nwidthmax,   &  ! Width of widest northern domain 
    16                       narea           ! ID of local area (= rank + 1) 
     16                      narea,       &  ! ID of local area (= rank + 1) 
     17                      mbkmax          ! Deepest level above ocean floor 
    1718#if defined key_mpp_mpi 
    1819   USE lib_mpp,        ONLY: mppsize, mppsync, mpi_comm_opa,                & 
     
    115116      INTEGER :: iproc, jproc                  ! Loop index 
    116117      INTEGER :: ierr                          ! Error flag 
    117       INTEGER :: i,j !,npoints ! ARPDBG for debugging only 
     118      INTEGER :: ji, jj 
    118119      CHARACTER(LEN=4) :: intStr 
    119120 
     
    181182            WRITE (997,FMT='("0 1 0 setrgbcolor")') 
    182183            WRITE (997,FMT='("newpath")') 
    183             DO j = 1,jpjglo,1 
    184                DO i = 1,jpiglo,1 
    185                   IF(imask(i,j) /= 1)THEN 
    186                      WRITE (997,FMT='(I3," u ",I3," u 1 u 0 360 arc closepath")') i, j 
     184            DO jj = 1,jpjglo,1 
     185               DO ji = 1,jpiglo,1 
     186                  IF(imask(ji,jj) /= 1)THEN 
     187                     WRITE (997,FMT='(I3," u ",I3," u 1 u 0 360 arc closepath")') ji, jj 
    187188                     ! Use 'fill' instead of 'stroke' to get filled circles 
    188189                     WRITE (997,FMT='("fill")') 
     
    298299      ! read 
    299300      CALL write_partition() 
     301 
     302      ! Initialise mbkmax because it's needed in any halo swap calls but we didn't have 
     303      ! jpi and jpj until the partitioning was done. 
     304      DO jj=1,jpj,1 
     305         DO ji=1,jpi,1 
     306            mbkmax(ji,jj) = ibotlevel(MIN(jpiglo,ji+nimpp-1), & 
     307                                      MIN(jpjglo,jj+njmpp-1)) 
     308         END DO 
     309      END DO 
    300310 
    301311      ! ARPDBG - test comms setup 
Note: See TracChangeset for help on using the changeset viewer.