Index: /issm/trunk/src/c/objects/Numerics/ElementMatrix.cpp
===================================================================
--- /issm/trunk/src/c/objects/Numerics/ElementMatrix.cpp	(revision 8804)
+++ /issm/trunk/src/c/objects/Numerics/ElementMatrix.cpp	(revision 8805)
@@ -251,4 +251,7 @@
 	double* localvalues=NULL;
 
+	/*In debugging mode, check consistency (no NaN, and values not too big)*/
+	this->CheckConsistency();
+
 	if(this->dofsymmetrical){
 		/*only use row dofs to add values into global matrices: */
