Changeset 13603
- Timestamp:
- 10/10/12 23:03:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/toolkits/petsc/patches/MatMultPatch.cpp
r13598 r13603 50 50 int result=1; 51 51 int sumresult; 52 extern int num_procs; 52 int num_procs2; 53 54 /*recover num_procs2:*/ 55 MPI_Comm_size(comm,&num_procs2); 53 56 54 57 MatGetLocalSize(A,&local_m,&local_n);; … … 60 63 MPI_Reduce (&result,&sumresult,1,MPI_INT,MPI_SUM,0,comm ); 61 64 MPI_Bcast(&sumresult,1,MPI_INT,0,comm); 62 if (sumresult!=num_procs ){65 if (sumresult!=num_procs2){ 63 66 result=0; 64 67 }
Note:
See TracChangeset
for help on using the changeset viewer.