source: issm/oecreview/Archive/13393-13976/ISSM-13602-13603.diff@ 13980

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
  • ../trunk-jpl/src/c/toolkits/petsc/patches/MatMultPatch.cpp

     
    4949        int lower_row,upper_row,range;
    5050        int result=1;
    5151        int sumresult;
    52         extern int num_procs;
     52        int num_procs2;
     53       
     54        /*recover num_procs2:*/
     55        MPI_Comm_size(comm,&num_procs2);
    5356
    5457        MatGetLocalSize(A,&local_m,&local_n);;
    5558        VecGetLocalSize(x,&range);;
     
    5962        /*synchronize result: */
    6063        MPI_Reduce (&result,&sumresult,1,MPI_INT,MPI_SUM,0,comm );
    6164        MPI_Bcast(&sumresult,1,MPI_INT,0,comm);               
    62         if (sumresult!=num_procs){
     65        if (sumresult!=num_procs2){
    6366                result=0;
    6467        }
    6568        else{
Note: See TracBrowser for help on using the repository browser.