Changeset 12360
- Timestamp:
- 06/04/12 12:09:53 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/objects/DofIndexing.cpp
r12014 r12360 53 53 this->f_set=(bool*)xmalloc(this->gsize*sizeof(bool)); 54 54 this->s_set=(bool*)xmalloc(this->gsize*sizeof(bool)); 55 this->svalues= (double*)xmalloc(this->gsize*sizeof(int));55 this->svalues=xNew<IssmDouble>(this->gsize); 56 56 if(in->doftype)this->doftype=(int*)xmalloc(this->gsize*sizeof(int)); 57 57 this->gdoflist=(int*)xmalloc(this->gsize*sizeof(int)); … … 70 70 memcpy(this->f_set,in->f_set,this->gsize*sizeof(bool)); 71 71 memcpy(this->s_set,in->s_set,this->gsize*sizeof(bool)); 72 memcpy(this->svalues,in->svalues,this->gsize*sizeof(double));72 xMemCpy<IssmDouble>(this->svalues,in->svalues,this->gsize); 73 73 if(this->doftype)memcpy(this->doftype,in->doftype,this->gsize*sizeof(int)); 74 74 memcpy(this->gdoflist,in->gdoflist,this->gsize*sizeof(int)); … … 84 84 xfree((void**)&f_set); 85 85 xfree((void**)&s_set); 86 x free((void**)&svalues);86 xDelete<IssmDouble>(svalues); 87 87 xfree((void**)&doftype); 88 88 xfree((void**)&gdoflist); … … 104 104 this->f_set=(bool*)xmalloc(this->gsize*sizeof(bool)); 105 105 this->s_set=(bool*)xmalloc(this->gsize*sizeof(bool)); 106 this->svalues= (double*)xmalloc(this->gsize*sizeof(double));106 this->svalues=xNew<IssmDouble>(this->gsize); 107 107 if(in_doftype)this->doftype=(int*)xmalloc(this->gsize*sizeof(int)); 108 108 this->gdoflist=(int*)xmalloc(this->gsize*sizeof(int));
Note:
See TracChangeset
for help on using the changeset viewer.