Changeset 13603


Ignore:
Timestamp:
10/10/12 23:03:00 (12 years ago)
Author:
Eric.Larour
Message:

CHG: more changes to switch from my_rank and num_procs to IssmComm::GetSize and IssmComm::GetRank

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/toolkits/petsc/patches/MatMultPatch.cpp

    r13598 r13603  
    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);;
     
    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        }
Note: See TracChangeset for help on using the changeset viewer.