Changeset 13605
- Timestamp:
- 10/10/12 23:08:19 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/Container/Nodes.cpp
r13604 r13605 152 152 153 153 int i; 154 extern int num_procs;154 int num_procs2; 155 155 156 156 int* ranks=NULL; … … 158 158 int numnodes; 159 159 160 /*recover num_procs2: */ 161 num_procs2=IssmComm::GetSize(); 162 160 163 /*Figure out number of nodes for this analysis: */ 161 164 numnodes=this->NumberOfNodes(analysis_type); … … 164 167 ranks=xNew<int>(numnodes); 165 168 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. 167 170 168 171 /*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.