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 9383 for branches/UKMO/test_moci_test_suite_namelist_read/NEMOGCM/NEMO/OPA_SRC/LBC/lib_mpp.F90 – NEMO

Ignore:
Timestamp:
2018-03-08T10:22:55+01:00 (6 years ago)
Author:
andmirek
Message:

#2050 fixes and changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/test_moci_test_suite_namelist_read/NEMOGCM/NEMO/OPA_SRC/LBC/lib_mpp.F90

    r8243 r9383  
    9090   INTERFACE mpp_bcast 
    9191      MODULE PROCEDURE mpp_bcast_i1, mpp_bcast_da, mpp_bcast_ch, mpp_bcast_ia, mpp_bcast_l, & 
    92      &                 mpp_bcast_d, mpp_bcast_d2a, mpp_bcast_d3a 
     92     &                 mpp_bcast_d, mpp_bcast_d2a, mpp_bcast_d3a, mpp_bcast_lv 
    9393   END INTERFACE 
    9494   INTERFACE mpp_min 
     
    18531853      INTEGER, INTENT(INOUT) :: ival  ! value to broadcast  
    18541854      INTEGER :: ierror ! mpi error 
     1855 
    18551856      CALL MPI_BCAST(ival, 1, MPI_INTEGER4, 0, mpi_comm_opa, ierror) 
     1857 
    18561858   END SUBROUTINE mpp_bcast_i1 
    18571859 
     
    18671869      INTEGER, INTENT(IN)  :: lng          ! length of dval  
    18681870      INTEGER              :: ierror       ! mpi error 
     1871 
    18691872      CALL MPI_BCAST(dvalv, lng, mpi_double_precision, 0, mpi_comm_opa, ierror)  
     1873 
    18701874   END SUBROUTINE mpp_bcast_da 
    18711875 
     
    18841888      INTEGER              :: itotal          ! local variable 
    18851889      itotal = nx*ny 
     1890 
    18861891      CALL MPI_BCAST(dvala, itotal, mpi_double_precision, 0, mpi_comm_opa, ierror)  
     1892 
    18871893   END SUBROUTINE mpp_bcast_d2a 
    18881894 
     
    18981904      INTEGER, INTENT(IN)  :: nx, ny, nz          ! size of dvala  
    18991905      INTEGER              :: ierror          ! mpi error 
     1906 
    19001907      CALL MPI_BCAST(dvala, nx*ny*nz, mpi_double_precision, 0, mpi_comm_opa, ierror)  
     1908 
    19011909   END SUBROUTINE mpp_bcast_d3a 
    19021910 
     
    19111919      REAL(wp), INTENT(INOUT) :: dval        ! real 1D array  
    19121920      INTEGER              :: ierror       ! mpi error 
     1921 
    19131922      CALL MPI_BCAST(dval, 1, mpi_double_precision, 0, mpi_comm_opa, ierror)  
     1923 
    19141924   END SUBROUTINE mpp_bcast_d 
    19151925 
     
    19221932      !i!              processor 0 - lwm = .true.. NETCDF related call 
    19231933      !!-------------------------------------------------------------------------- 
    1924       CHARACTER(len=lng), INTENT(IN) :: cstring      ! string 1D array  
     1934      CHARACTER(len=lng), INTENT(INOUT) :: cstring      ! string 1D array  
    19251935      INTEGER, INTENT(IN)            :: lng          ! length of cstring  
    19261936      INTEGER                        :: ierror       ! mpi error 
     1937 
    19271938      CALL MPI_BCAST(cstring, lng, MPI_CHARACTER, 0, mpi_comm_opa, ierror) 
     1939 
    19281940   END SUBROUTINE mpp_bcast_ch 
    19291941 
     
    19321944      INTEGER, INTENT (IN)                :: lng 
    19331945      INTEGER                             :: ierror       ! mpi error 
     1946 
    19341947      CALL MPI_BCAST(ivalv, lng, MPI_INTEGER4, 0, mpi_comm_opa, ierror) 
     1948 
    19351949   END SUBROUTINE mpp_bcast_ia 
    19361950 
     
    19381952      LOGICAL, INTENT(INOUT) :: lval  ! value to broadcast  
    19391953      INTEGER             :: ierror       ! mpi error 
     1954 
    19401955      CALL MPI_BCAST(lval, 1, MPI_LOGICAL, 0, mpi_comm_opa, ierror) 
     1956 
    19411957   END SUBROUTINE mpp_bcast_l 
     1958 
     1959   SUBROUTINE mpp_bcast_lv(ldval, inln) 
     1960      LOGICAL, DIMENSION(inln), INTENT(INOUT) :: ldval  ! value to broadcast  
     1961      INTEGER,                  INTENT(IN)    :: inln 
     1962      INTEGER                                 :: ierror       ! mpi error 
     1963 
     1964      CALL MPI_BCAST(ldval, inln, MPI_LOGICAL, 0, mpi_comm_opa, ierror) 
     1965 
     1966   END SUBROUTINE mpp_bcast_lv 
    19421967 
    19431968   SUBROUTINE mpp_bcast_d2d(dval, ni, nj) 
Note: See TracChangeset for help on using the changeset viewer.