Changeset 13610
- Timestamp:
- 10/10/12 23:57:30 (12 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/IssmComm.cpp
r13589 r13610 18 18 }/*}}}*/ 19 19 int IssmComm::GetRank(){ /*{{{*/ 20 int my_rank ;20 int my_rank2; 21 21 #ifdef _HAVE_MPI_ 22 MPI_Comm_rank(comm,&my_rank );22 MPI_Comm_rank(comm,&my_rank2); 23 23 #else 24 my_rank =0;24 my_rank2=0; 25 25 #endif 26 return my_rank ;26 return my_rank2; 27 27 28 28 }/*}}}*/ -
issm/trunk-jpl/src/c/include/globals.h
r13609 r13610 12 12 COMM IssmComm::comm; 13 13 14 //int my_rank=0;15 //int num_procs=1;16 17 14 #endif -
issm/trunk-jpl/src/c/solutions/issm.cpp
r13609 r13610 14 14 /*Initialize environment (MPI, PETSC, MUMPS, etc ...)*/ 15 15 comm_init=EnvironmentInit(argc,argv); 16 17 /*Hack for now: */18 //MPI_Comm_rank(comm_init,&my_rank);19 //MPI_Comm_size(comm_init,&num_procs);20 16 21 17 /*Initialize femmodel from arguments provided command line: */
Note:
See TracChangeset
for help on using the changeset viewer.