Index: /issm/trunk-jpl/src/c/objects/DofIndexing.cpp
===================================================================
--- /issm/trunk-jpl/src/c/objects/DofIndexing.cpp	(revision 12359)
+++ /issm/trunk-jpl/src/c/objects/DofIndexing.cpp	(revision 12360)
@@ -53,5 +53,5 @@
 		this->f_set=(bool*)xmalloc(this->gsize*sizeof(bool));
 		this->s_set=(bool*)xmalloc(this->gsize*sizeof(bool));
-		this->svalues=(double*)xmalloc(this->gsize*sizeof(int));
+		this->svalues=xNew<IssmDouble>(this->gsize);
 		if(in->doftype)this->doftype=(int*)xmalloc(this->gsize*sizeof(int)); 
 		this->gdoflist=(int*)xmalloc(this->gsize*sizeof(int)); 
@@ -70,5 +70,5 @@
 		memcpy(this->f_set,in->f_set,this->gsize*sizeof(bool));
 		memcpy(this->s_set,in->s_set,this->gsize*sizeof(bool));
-		memcpy(this->svalues,in->svalues,this->gsize*sizeof(double));
+		xMemCpy<IssmDouble>(this->svalues,in->svalues,this->gsize);
 		if(this->doftype)memcpy(this->doftype,in->doftype,this->gsize*sizeof(int));
 		memcpy(this->gdoflist,in->gdoflist,this->gsize*sizeof(int));
@@ -84,5 +84,5 @@
 	xfree((void**)&f_set); 
 	xfree((void**)&s_set); 
-	xfree((void**)&svalues);
+	xDelete<IssmDouble>(svalues);
 	xfree((void**)&doftype); 
 	xfree((void**)&gdoflist);
@@ -104,5 +104,5 @@
 		this->f_set=(bool*)xmalloc(this->gsize*sizeof(bool));
 		this->s_set=(bool*)xmalloc(this->gsize*sizeof(bool));
-		this->svalues=(double*)xmalloc(this->gsize*sizeof(double));
+		this->svalues=xNew<IssmDouble>(this->gsize);
 		if(in_doftype)this->doftype=(int*)xmalloc(this->gsize*sizeof(int));
 		this->gdoflist=(int*)xmalloc(this->gsize*sizeof(int));
