8 #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
11 #include "../classes.h"
12 #include "../../shared/shared.h"
35 xDelete<IssmDouble>(this->
values);
37 if(this->
N) xDelete<int>(this->
N);
47 xMemCpy<int>(output->
N,this->N,this->numberofelements_local);
53 output->
values[i] = xNew<IssmDouble>(this->
N[i]);
54 xMemCpy<IssmDouble>(output->
values[i],this->values[i],this->N[i]);
108 if(this->
N[row] != numindices){
109 if(this->
values[row]) xDelete<IssmDouble>(this->
values[row]);
110 this->
values[row] = xNew<IssmDouble>(numindices);
114 for(
int i=0;i<numindices;i++) el_values[i] = values_in[i];
116 this->
N[row] = numindices;
124 IssmDouble* outvalues = xNew<IssmDouble>(this->
N[row]);
125 xMemCpy<IssmDouble>(outvalues,this->
values[row],this->
N[row]);
126 *pvalues = outvalues;
138 *pvalues = this->
values[row];