Index: /issm/trunk-jpl/src/m/array/arrayoperations.js
===================================================================
--- /issm/trunk-jpl/src/m/array/arrayoperations.js	(revision 19862)
+++ /issm/trunk-jpl/src/m/array/arrayoperations.js	(revision 19863)
@@ -343,2 +343,33 @@
 	throw new Error("Unable to copy obj! Its type isn't supported.");
 } //}}}
+function FloatFix(pointer,size) {//{{{
+
+	var buffer=new Float64Array(size);
+	for(var i=0;i<size;i++)buffer[i]=pointer[i];
+	return buffer;
+
+
+} //}}}
+function NullFix(pointer,value) {//{{{
+
+	if(pointer==null)return value;
+	else{
+		//check that the pointer values are not null: 
+		if(IsArray(pointer)){
+			if(IsArray(pointer[0])){
+				for(var i=0;i<pointer.length;i++){
+					for(var j=0;j<pointer[0].length;j++){
+						if(pointer[i][j]==null)pointer[i][j]=value;
+					}
+				}	
+			}
+			else{
+				for(var i=0;i<pointer.length;i++){
+					if(pointer[i]==null)pointer[i]=value;
+				}
+			}
+		}
+		return pointer;
+	}
+
+} //}}}
