Changeset 12330 for issm/trunk/src/c/Container/Constraints.cpp
- Timestamp:
- 06/01/12 17:26:03 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/Container/Constraints.cpp
r10522 r12330 48 48 49 49 /*figure out total number of constraints combining all the cpus (no clones here)*/ 50 #ifdef _ PARALLEL_51 MPI_Reduce(&localconstraints,&numberofconstraints,1,MPI_INT,MPI_SUM,0,MPI_COMM_WORLD );52 MPI_Bcast(&numberofconstraints,1,MPI_INT,0,MPI_COMM_WORLD);50 #ifdef _HAVE_MPI_ 51 MPI_Reduce(&localconstraints,&numberofconstraints,1,MPI_INT,MPI_SUM,0,MPI_COMM_WORLD ); 52 MPI_Bcast(&numberofconstraints,1,MPI_INT,0,MPI_COMM_WORLD); 53 53 #else 54 numberofconstraints=localconstraints;54 numberofconstraints=localconstraints; 55 55 #endif 56 56 57 57 58 return numberofconstraints;
Note:
See TracChangeset
for help on using the changeset viewer.