Changeset 22392


Ignore:
Timestamp:
02/05/18 10:51:07 (7 years ago)
Author:
dmenemen
Message:

adding test exchange

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/test/MITgcm/code/eeboot_minimal.F

    r22390 r22392  
    7171      integer my_local_rank,my_local_size
    7272      integer toissmcomm
     73      integer  dummy1(1),dummy2(1)
     74      integer, dimension(mpi_status_size) :: status
    7375#endif /* ALLOW_CPL_ISSM */
    7476#if defined(ALLOW_NEST_PARENT) || defined(ALLOW_NEST_CHILD)
     
    201203      print*,'Oc My global rank',mpiMyWid,'MyLocal rank: ',my_local_rank
    202204      print*,'Oc My world size:',numprocsworld,'My local size: ',
    203      & my_local_size
     205     &     my_local_size
     206
     207
     208c     receive and send an integer:
     209      dummy1(1)=4; dummy2(1)=2;
     210         
     211      if (my_local_rank .eq. 0) then
     212          call MPI_Send(dummy2,1,MPI_INT,0,1,toissmcomm,mpiRC)
     213          call MPI_Recv(dummy1,1,MPI_INT,0,1,toissmcomm,status,mpiRC)
     214      end if
     215     
     216      call MPI_Bcast(dummy1,1,MPI_INT,0,MPI_COMM_MODEL,mpiRC)
     217      print*, 'Ocean : dummy received:',dummy1
     218
    204219
    205220#endif /* ALLOW_CPL_ISSM */
Note: See TracChangeset for help on using the changeset viewer.