Changeset 22656 for issm/trunk-jpl/src/c/main/issm_ocean.cpp
- Timestamp:
- 04/02/18 11:22:11 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/main/issm_ocean.cpp
r22490 r22656 31 31 icecommsize=(int) strtol(argv[2], (char **)NULL, 10); 32 32 33 printf("Ice: My global rank: %i My world size: %i \n",my_rank,my_size);34 35 33 /*Split world into sub-communicators for each and every model:*/ 36 34 ISSM_MPI_Comm_split(worldcomm,0, my_rank, &modelcomm); … … 38 36 ISSM_MPI_Comm_size(modelcomm,&my_local_size); 39 37 40 printf("Ice: My global rank: %i My local rank: %i My world size: %i My local size: %i\n",my_rank,my_local_rank,my_size,my_local_size);41 42 38 ISSM_MPI_Intercomm_create( modelcomm, 0, worldcomm, my_local_size, 0, &tomitgcmcomm); 43 39 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 54 /*Initialize femmodel from arguments provided command line: */55 40 FemModel *femmodel = new FemModel(argc,argv,modelcomm); 56 41
Note:
See TracChangeset
for help on using the changeset viewer.