source:
issm/oecreview/Archive/13393-13976/ISSM-13602-13603.diff@
14312
Last change on this file since 14312 was 13980, checked in by , 12 years ago | |
---|---|
File size: 806 bytes |
-
../trunk-jpl/src/c/toolkits/petsc/patches/MatMultPatch.cpp
49 49 int lower_row,upper_row,range; 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);; 55 58 VecGetLocalSize(x,&range);; … … 59 62 /*synchronize result: */ 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 } 65 68 else{
Note:
See TracBrowser
for help on using the repository browser.