Changeset 20204
- Timestamp:
- 02/17/16 14:43:11 (9 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/main/issm_slr.cpp
r20135 r20204 69 69 70 70 /*Split world into sub-communicators for each and every model:*/ 71 MPI_Comm_split(worldcomm,modelid, my_rank, &modelcomm);71 ISSM_MPI_Comm_split(worldcomm,modelid, my_rank, &modelcomm); 72 72 73 73 /*Build inter communicators:*/ … … 76 76 fromicecomms=xNew<ISSM_MPI_Comm>(nummodels-1); 77 77 for(int i=0;i<earthid;i++){ 78 MPI_Intercomm_create( modelcomm, 0, worldcomm, rankzeros[i], i, fromicecomms+i); //communicate from local erth comm 9rank 0) to ice comm (rank 0) using modelid tag.78 ISSM_MPI_Intercomm_create( modelcomm, 0, worldcomm, rankzeros[i], i, fromicecomms+i); //communicate from local erth comm 9rank 0) to ice comm (rank 0) using modelid tag. 79 79 } 80 80 } 81 81 else{ 82 MPI_Intercomm_create( modelcomm, 0, worldcomm, rankzeros[earthid], modelid, &toearthcomm); //communicate from local ice comm (rank 0) to earth comm (rank 0) using modelid tag.82 ISSM_MPI_Intercomm_create( modelcomm, 0, worldcomm, rankzeros[earthid], modelid, &toearthcomm); //communicate from local ice comm (rank 0) to earth comm (rank 0) using modelid tag. 83 83 } 84 84 -
issm/trunk-jpl/src/c/toolkits/mpi/issmmpi.cpp
r20151 r20204 508 508 return rc; 509 509 }/*}}}*/ 510 int ISSM_MPI_Intercomm_create(ISSM_MPI_Comm comm,int local_leader,ISSM_MPI_Comm peer_comm, int remote_leader, int tag,ISSM_MPI_Comm *newintercomm){ /*{{{*/ 511 512 int rc=0; 513 #ifdef _HAVE_MPI_ 514 #ifdef _HAVE_AMPI_ 515 rc=MPI_Intercomm_create(comm,local_leader,peer_comm,remote_leader,tag,newintercomm); 516 #else 517 rc=MPI_Intercomm_create(comm,local_leader,peer_comm,remote_leader,tag,newintercomm); 518 #endif 519 #else 520 // nothing to be done here 521 #endif 522 return rc; 523 }/*}}}*/ -
issm/trunk-jpl/src/c/toolkits/mpi/issmmpi.h
r20149 r20204 138 138 double ISSM_MPI_Wtime(void); 139 139 int ISSM_MPI_Comm_split(ISSM_MPI_Comm comm, int color, int key, ISSM_MPI_Comm *newcomm); 140 int ISSM_MPI_Intercomm_create(ISSM_MPI_Comm comm,int local_leader,ISSM_MPI_Comm peer_comm, int remote_leader, int tag,ISSM_MPI_Comm *newintercomm); 140 141 141 142 // special for Adol-C locations when buffers are allocated with new
Note:
See TracChangeset
for help on using the changeset viewer.