Last change
on this file since 13980 was 13980, checked in by Mathieu Morlighem, 12 years ago |
preparing oecreview for 13393-13976'
|
File size:
806 bytes
|
Rev | Line | |
---|
[13980] | 1 | Index: ../trunk-jpl/src/c/toolkits/petsc/patches/MatMultPatch.cpp
|
---|
| 2 | ===================================================================
|
---|
| 3 | --- ../trunk-jpl/src/c/toolkits/petsc/patches/MatMultPatch.cpp (revision 13602)
|
---|
| 4 | +++ ../trunk-jpl/src/c/toolkits/petsc/patches/MatMultPatch.cpp (revision 13603)
|
---|
| 5 | @@ -49,7 +49,10 @@
|
---|
| 6 | int lower_row,upper_row,range;
|
---|
| 7 | int result=1;
|
---|
| 8 | int sumresult;
|
---|
| 9 | - extern int num_procs;
|
---|
| 10 | + int num_procs2;
|
---|
| 11 | +
|
---|
| 12 | + /*recover num_procs2:*/
|
---|
| 13 | + MPI_Comm_size(comm,&num_procs2);
|
---|
| 14 |
|
---|
| 15 | MatGetLocalSize(A,&local_m,&local_n);;
|
---|
| 16 | VecGetLocalSize(x,&range);;
|
---|
| 17 | @@ -59,7 +62,7 @@
|
---|
| 18 | /*synchronize result: */
|
---|
| 19 | MPI_Reduce (&result,&sumresult,1,MPI_INT,MPI_SUM,0,comm );
|
---|
| 20 | MPI_Bcast(&sumresult,1,MPI_INT,0,comm);
|
---|
| 21 | - if (sumresult!=num_procs){
|
---|
| 22 | + if (sumresult!=num_procs2){
|
---|
| 23 | result=0;
|
---|
| 24 | }
|
---|
| 25 | else{
|
---|
Note:
See
TracBrowser
for help on using the repository browser.