Index: /issm/trunk-jpl/src/c/modules/ModelProcessorx/ElementsAndVerticesPartitioning.cpp
===================================================================
--- /issm/trunk-jpl/src/c/modules/ModelProcessorx/ElementsAndVerticesPartitioning.cpp	(revision 12564)
+++ /issm/trunk-jpl/src/c/modules/ModelProcessorx/ElementsAndVerticesPartitioning.cpp	(revision 12565)
@@ -83,6 +83,6 @@
 		iomodel->FetchData(&riftinfo,&numrifts,NULL,RiftsRiftstructEnum);
 		for(i=0;i<numrifts;i++){
-			el1=(int)*(riftinfo+RIFTINFOSIZE*i+2)-1; //matlab indexing to c indexing
-			el2=(int)*(riftinfo+RIFTINFOSIZE*i+3)-1; //matlab indexing to c indexing
+			el1=reCast<int>(*(riftinfo+RIFTINFOSIZE*i+2))-1; //matlab indexing to c indexing
+			el2=reCast<int>(*(riftinfo+RIFTINFOSIZE*i+3))-1; //matlab indexing to c indexing
 			epart[el2]=epart[el1]; //ensures that this pair of elements will be in the same partition, as well as the corresponding vertices;
 		}
@@ -107,12 +107,12 @@
 			 into the vertices coordinates. If we start plugging 1 into my_vertices for each index[n][i] (i=0:2), then my_vertices 
 			 will hold which vertices belong to this partition*/
-			my_vertices[(int)*(elements+elements_width*i+0)-1]=1;
-			my_vertices[(int)*(elements+elements_width*i+1)-1]=1;
-			my_vertices[(int)*(elements+elements_width*i+2)-1]=1;
+			my_vertices[reCast<int>(*(elements+elements_width*i+0))-1]=1;
+			my_vertices[reCast<int>(*(elements+elements_width*i+1))-1]=1;
+			my_vertices[reCast<int>(*(elements+elements_width*i+2))-1]=1;
 			
 			if(elements_width==6){
-				my_vertices[(int)*(elements+elements_width*i+3)-1]=1;
-				my_vertices[(int)*(elements+elements_width*i+4)-1]=1;
-				my_vertices[(int)*(elements+elements_width*i+5)-1]=1;
+				my_vertices[reCast<int>(*(elements+elements_width*i+3))-1]=1;
+				my_vertices[reCast<int>(*(elements+elements_width*i+4))-1]=1;
+				my_vertices[reCast<int>(*(elements+elements_width*i+5))-1]=1;
 			}
 		}
@@ -126,6 +126,6 @@
 	iomodel->FetchData(&vertex_pairing,&numvertex_pairing,NULL,DiagnosticVertexPairingEnum);
 	for(i=0;i<numvertex_pairing;i++){
-		if(my_vertices[(int)vertex_pairing[2*i+0]-1] && !my_vertices[(int)vertex_pairing[2*i+1]-1]){
-			my_vertices[(int)vertex_pairing[2*i+1]-1]=2; //to know that these elements are not on the partition
+		if(my_vertices[reCast<int>(vertex_pairing[2*i+0])-1] && !my_vertices[reCast<int>(vertex_pairing[2*i+1])-1]){
+			my_vertices[reCast<int>(vertex_pairing[2*i+1])-1]=2; //to know that these elements are not on the partition
 		}
 	}
@@ -133,6 +133,6 @@
 	iomodel->FetchData(&vertex_pairing,&numvertex_pairing,NULL,PrognosticVertexPairingEnum);
 	for(i=0;i<numvertex_pairing;i++){
-		if(my_vertices[(int)vertex_pairing[2*i+0]-1] && !my_vertices[(int)vertex_pairing[2*i+1]-1]){
-			my_vertices[(int)vertex_pairing[2*i+1]-1]=2; //to know that these elements are not on the partition
+		if(my_vertices[reCast<int>(vertex_pairing[2*i+0])-1] && !my_vertices[reCast<int>(vertex_pairing[2*i+1])-1]){
+			my_vertices[reCast<int>(vertex_pairing[2*i+1])-1]=2; //to know that these elements are not on the partition
 		}
 	}
Index: /issm/trunk-jpl/src/c/shared/Numerics/IsInputConverged.cpp
===================================================================
--- /issm/trunk-jpl/src/c/shared/Numerics/IsInputConverged.cpp	(revision 12564)
+++ /issm/trunk-jpl/src/c/shared/Numerics/IsInputConverged.cpp	(revision 12565)
@@ -50,5 +50,5 @@
 
 		/*now, compute eps: */
-		if(nu)eps=ndu/nu;
+		if(reCast<bool>(nu))eps=ndu/nu;
 		else eps=0;
 	}
