Changeset 13605


Ignore:
Timestamp:
10/10/12 23:08:19 (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/Container/Nodes.cpp

    r13604 r13605  
    152152
    153153        int i;
    154         extern int num_procs;
     154        int num_procs2;
    155155
    156156        int* ranks=NULL;
     
    158158        int  numnodes;
    159159
     160        /*recover num_procs2: */
     161        num_procs2=IssmComm::GetSize();
     162
    160163        /*Figure out number of nodes for this analysis: */
    161164        numnodes=this->NumberOfNodes(analysis_type);
     
    164167        ranks=xNew<int>(numnodes);
    165168        minranks=xNew<int>(numnodes);
    166         for(i=0;i<numnodes;i++)ranks[i]=num_procs; //no cpu can have rank num_procs. This is the maximum limit.
     169        for(i=0;i<numnodes;i++)ranks[i]=num_procs2; //no cpu can have rank num_procs. This is the maximum limit.
    167170
    168171        /*Now go through all our objects and ask them to report to who they belong (which rank): */
Note: See TracChangeset for help on using the changeset viewer.