Index: /issm/trunk-jpl/src/c/modules/IoModelToConstraintsx/IoModelToConstraintsx.cpp
===================================================================
--- /issm/trunk-jpl/src/c/modules/IoModelToConstraintsx/IoModelToConstraintsx.cpp	(revision 22361)
+++ /issm/trunk-jpl/src/c/modules/IoModelToConstraintsx/IoModelToConstraintsx.cpp	(revision 22362)
@@ -628,4 +628,7 @@
 	}
 
+	/*Update counter now since we have added some constraints*/
+	iomodel->constraintcounter = constraints->NumberOfConstraints();
+
 	/*Free ressources:*/
 	xDelete<IssmDouble>(times);
@@ -771,4 +774,7 @@
 	}
 
+	/*Update counter now since we have added some constraints*/
+	iomodel->constraintcounter = constraints->NumberOfConstraints();
+
 	/*Free ressources:*/
 	xDelete<IssmDouble>(times);
