Changeset 22389
- Timestamp:
- 02/05/18 10:36:16 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/main/issm_ocean.cpp
r22376 r22389 10 10 /*diverse:*/ 11 11 int icecommsize; 12 int rankzeros[2];13 12 int my_rank,my_local_rank,my_size,my_local_size; 14 13 ISSM_MPI_Comm worldcomm; … … 31 30 icecommsize=(int) strtol(argv[2], (char **)NULL, 10); 32 31 33 /*Buil array of who is rank 0 of their own group:*/34 rankzeros[0]=0;35 rankzeros[1]=icecommsize;36 37 32 printf("Ice: My global rank: %i My world size: %i \n",my_rank,my_size); 38 33 … … 45 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); 46 41 47 ISSM_MPI_Intercomm_create( modelcomm, 0, worldcomm, rankzeros[1], 0, &tomitgcmcomm);42 ISSM_MPI_Intercomm_create( modelcomm, 0, worldcomm, my_local_size, 0, &tomitgcmcomm); 48 43 49 44 /*Initialize femmodel from arguments provided command line: */ … … 66 61 delete femmodel; 67 62 63 printf("-------------- file: issm_ocean.cpp line: %i\n",__LINE__); 68 64 /*Finalize environment:*/ 69 65 EnvironmentFinalize(); 70 66 67 printf("-------------- file: issm_ocean.cpp line: %i\n",__LINE__); 71 68 /*Finalize exception trapping: */ 72 69 ExceptionTrapEnd();
Note:
See TracChangeset
for help on using the changeset viewer.