 |
Ice Sheet System Model
4.18
Code documentation
|
Go to the documentation of this file.
8 #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
34 xDelete<int>(this->
ids);
35 for(
int i=0;i<this->
numids;i++){
38 xDelete<Input2*>(this->
inputs);
53 for(
int i=0;i<this->
numids;i++){
62 for(
int i=0;i<this->
numids;i++){
104 for(
int i=0;i<this->
numids;i++){
105 if(this->
ids[i] ==
id) index = i;
110 int* new_ids = xNew<int>(this->numids+1);
111 if(this->numids)
xMemCpy(new_ids,this->
ids,this->numids);
112 new_ids[this->
numids] = id;
114 Input2** new_inputs = xNew<Input2*>(this->numids+1);
115 if(this->numids)
xMemCpy(new_inputs,this->
inputs,this->numids);
119 xDelete<int>(this->
ids);
121 xDelete<Input2*>(this->
inputs);
122 this->
inputs = new_inputs;
130 input->
SetInput(interp_in,numinds,rows,values_in);
137 for(
int i=0;i<this->
numids;i++){
138 if(this->
ids[i] ==
id) index = i;
143 int* new_ids = xNew<int>(this->numids+1);
144 if(this->numids)
xMemCpy(new_ids,this->
ids,this->numids);
145 new_ids[this->
numids] = id;
147 Input2** new_inputs = xNew<Input2*>(this->numids+1);
148 if(this->numids)
xMemCpy(new_inputs,this->
inputs,this->numids);
152 xDelete<int>(this->
ids);
154 xDelete<Input2*>(this->
inputs);
155 this->
inputs = new_inputs;
163 input->
SetInput(interp_in,numinds,rows,values_in);
170 for(
int i=0;i<this->
numids;i++){
171 if(this->
ids[i] ==
id) index = i;
176 int* new_ids = xNew<int>(this->numids+1);
177 if(this->numids)
xMemCpy(new_ids,this->
ids,this->numids);
178 new_ids[this->
numids] = id;
180 Input2** new_inputs = xNew<Input2*>(this->numids+1);
181 if(this->numids)
xMemCpy(new_inputs,this->
inputs,this->numids);
185 xDelete<int>(this->
ids);
187 xDelete<Input2*>(this->
inputs);
188 this->
inputs = new_inputs;
202 for(
int i=0;i<this->
numids;i++){
203 if(this->
ids[i] ==
id) index = i;
215 input = xDynamicCast<TransientInput2*>(this->
inputs[index])->current_input;
229 return xDynamicCast<TransientInput2*>(this->
inputs[offset])->GetTriaInput();
232 _error_(
"Cannot return a TriaInput2");
234 return xDynamicCast<TriaInput2*>(this->
inputs[offset]);
244 return xDynamicCast<TransientInput2*>(this->
inputs[offset])->GetPentaInput();
247 _error_(
"Cannot return a PentaInput2");
249 return xDynamicCast<PentaInput2*>(this->
inputs[offset]);
#define _printf_(StreamArgs)
Declaration of Parameters class.
#define MARSHALLING_ENUM(EN)
#define MARSHALLING_DYNAMIC(FIELD, TYPE, SIZE)
const char * EnumToStringx(int enum_in)
#define MARSHALLING(FIELD)
#define _error_(StreamArgs)
T * xMemCpy(T *dest, const T *src, unsigned int size)