Changeset 22490
- Timestamp:
- 03/01/18 15:26:17 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/main/issm_ocean.cpp
r22465 r22490 42 42 ISSM_MPI_Intercomm_create( modelcomm, 0, worldcomm, my_local_size, 0, &tomitgcmcomm); 43 43 44 /*send an integer:*/45 int dummy1,dummy2;46 dummy1=3; dummy2=0;47 if(my_local_rank==0){48 MPI_Send(&dummy1,1,MPI_INT,0,1,tomitgcmcomm);49 MPI_Recv(&dummy2,1,MPI_INT,0,1,tomitgcmcomm,&status);50 }51 MPI_Bcast(&dummy2,1,MPI_INT,0,modelcomm);52 printf("Ice: dummy received: %i\n",dummy2);44 // /*send an integer:*/ 45 // int dummy1,dummy2; 46 // dummy1=3; dummy2=0; 47 // if(my_local_rank==0){ 48 // MPI_Send(&dummy1,1,MPI_INT,0,1,tomitgcmcomm); 49 // MPI_Recv(&dummy2,1,MPI_INT,0,1,tomitgcmcomm,&status); 50 // } 51 // MPI_Bcast(&dummy2,1,MPI_INT,0,modelcomm); 52 // printf("Ice: dummy received: %i\n",dummy2); 53 53 54 54 /*Initialize femmodel from arguments provided command line: */
Note:
See TracChangeset
for help on using the changeset viewer.