Index: /issm/trunk-jpl/src/c/Container/Nodes.cpp
===================================================================
--- /issm/trunk-jpl/src/c/Container/Nodes.cpp	(revision 13604)
+++ /issm/trunk-jpl/src/c/Container/Nodes.cpp	(revision 13605)
@@ -152,5 +152,5 @@
 
 	int i;
-	extern int num_procs;
+	int num_procs2;
 
 	int* ranks=NULL;
@@ -158,4 +158,7 @@
 	int  numnodes;
 
+	/*recover num_procs2: */
+	num_procs2=IssmComm::GetSize();
+
 	/*Figure out number of nodes for this analysis: */
 	numnodes=this->NumberOfNodes(analysis_type);
@@ -164,5 +167,5 @@
 	ranks=xNew<int>(numnodes);
 	minranks=xNew<int>(numnodes);
-	for(i=0;i<numnodes;i++)ranks[i]=num_procs; //no cpu can have rank num_procs. This is the maximum limit.
+	for(i=0;i<numnodes;i++)ranks[i]=num_procs2; //no cpu can have rank num_procs. This is the maximum limit.
 
 	/*Now go through all our objects and ask them to report to who they belong (which rank): */
