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 217 for trunk/NEMO/OPA_SRC/DYN – NEMO

Changeset 217 for trunk/NEMO/OPA_SRC/DYN


Ignore:
Timestamp:
2005-03-18T15:57:51+01:00 (19 years ago)
Author:
opalod
Message:

CT : UPDATE152 : optimization: reduce the MPI communications in doing only one CALL lbc_lnk() with a 3D array instead of jpk CALL lbc_lnk() with a 2D array; or suppressing useless CALL lbc_lnk()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/DYN/dynspg_fsc.F90

    r216 r217  
    145145      znugdt =  rnu * grav * z2dt 
    146146      znurau =  znugdt * zraur 
    147       IF( lk_mpp ) THEN 
    148          ! Mpp : export boundary values of to neighboring processors 
    149          !!bug :  I don t understand why this only in mpp???? ==> Can be suppressed, no? 
    150          CALL lbc_lnk( ua, 'U', -1. ) 
    151          CALL lbc_lnk( va, 'V', -1. ) 
    152       ENDIF 
    153147 
    154148      ! 1. Surface pressure gradient (now) 
     
    351345      ! Euler (forward) time stepping, no time filter 
    352346      IF( neuler == 0 .AND. kt == nit000 ) THEN 
    353          DO jj = 2, jpjm1            !!bug  if 1, jpj  the lbc_lnk call can be suppress 
     347         DO jj = 1, jpj 
    354348            DO ji = 1, jpi 
    355349               ! after free surface elevation 
     
    362356      ELSE 
    363357         ! Leap-frog time stepping and time filter 
    364          DO jj = 2, jpjm1            !!bug  if 1, jpj  the lbc_lnk call can be suppress 
     358         DO jj = 1, jpj 
    365359            DO ji = 1, jpi 
    366360               ! after free surface elevation 
     
    373367      ENDIF 
    374368 
    375       ! Boundary conditions on sshn 
    376       CALL lbc_lnk( sshn, 'T', 1. ) 
    377369 
    378370      IF(l_ctl) THEN         ! print sum trends (used for debugging) 
    379371         WRITE(numout,*) ' spg - ssh:', SUM( sshn(2:nictl,2:njctl)*tmask(2:nictl,2:njctl,1) ) 
    380372      ENDIF 
    381  
    382373 
    383374   END SUBROUTINE dyn_spg_fsc 
Note: See TracChangeset for help on using the changeset viewer.