#include <DatasetInput2.h>
|
int | GetNumIds () const |
|
| DatasetInput2 () |
|
| DatasetInput2 (int nbe, int nbv) |
|
| ~DatasetInput2 () |
|
Input2 * | copy () |
|
void | Configure (Parameters *params) |
|
void | DeepEcho () |
|
void | Echo () |
|
int | Id () |
|
void | Marshall (char **pmarshalled_data, int *pmarshalled_data_size, int marshall_direction) |
|
int | ObjectEnum () |
|
void | SetTriaInput (int interp_in, int numinds, int *rows, IssmDouble *values_in) |
|
void | SetTriaInput (int id, int interp_in, int numinds, int *rows, IssmDouble *values_in) |
|
void | SetPentaInput (int id, int interp_in, int numinds, int *rows, IssmDouble *values_in) |
|
TransientInput2 * | SetTransientInput (int id, IssmDouble *times, int numtimes) |
|
PentaInput2 * | GetPentaInputByOffset (int i) |
|
TriaInput2 * | GetTriaInputByOffset (int i) |
|
void | GetInputValue (IssmDouble *pvalue, Gauss *gauss, int index) |
|
int | InstanceEnum () |
|
void | ChangeEnum (int newenumtype) |
|
virtual | ~Input2 () |
|
virtual void | GetInputAverage (IssmDouble *pvalue) |
|
virtual IssmDouble | GetInputMax (void) |
|
virtual IssmDouble | GetInputMaxAbs (void) |
|
virtual IssmDouble | GetInputMin (void) |
|
virtual void | GetInputDerivativeValue (IssmDouble *derivativevalues, IssmDouble *xyz_list, Gauss *gauss) |
|
virtual void | GetInputValue (IssmDouble *pvalue, Gauss *gauss) |
|
virtual int | GetInputInterpolationType () |
|
virtual SegInput2 * | GetSegInput () |
|
virtual TriaInput2 * | GetTriaInput () |
|
virtual PentaInput2 * | GetPentaInput () |
|
virtual void | AXPY (Input2 *xinput, IssmDouble scalar) |
|
virtual void | PointWiseMult (Input2 *xinput) |
|
virtual void | Pow (IssmDouble scale_factor) |
|
virtual void | Scale (IssmDouble scale_factor) |
|
virtual int | GetResultArraySize (void) |
|
virtual int | GetResultInterpolation (void) |
|
virtual int | GetResultNumberOfNodes (void) |
|
virtual | ~Object () |
|
Definition at line 14 of file DatasetInput2.h.
◆ DatasetInput2() [1/2]
DatasetInput2::DatasetInput2 |
( |
| ) |
|
◆ DatasetInput2() [2/2]
DatasetInput2::DatasetInput2 |
( |
int |
nbe, |
|
|
int |
nbv |
|
) |
| |
◆ ~DatasetInput2()
DatasetInput2::~DatasetInput2 |
( |
| ) |
|
◆ GetNumIds()
int DatasetInput2::GetNumIds |
( |
| ) |
const |
|
inline |
◆ copy()
Input2 * DatasetInput2::copy |
( |
void |
| ) |
|
|
virtual |
◆ Configure()
void DatasetInput2::Configure |
( |
Parameters * |
params | ) |
|
|
virtual |
◆ DeepEcho()
void DatasetInput2::DeepEcho |
( |
void |
| ) |
|
|
virtual |
◆ Echo()
void DatasetInput2::Echo |
( |
void |
| ) |
|
|
virtual |
◆ Id()
int DatasetInput2::Id |
( |
void |
| ) |
|
|
virtual |
◆ Marshall()
void DatasetInput2::Marshall |
( |
char ** |
pmarshalled_data, |
|
|
int * |
pmarshalled_data_size, |
|
|
int |
marshall_direction |
|
) |
| |
|
virtual |
◆ ObjectEnum()
int DatasetInput2::ObjectEnum |
( |
void |
| ) |
|
|
virtual |
◆ SetTriaInput() [1/2]
void DatasetInput2::SetTriaInput |
( |
int |
interp_in, |
|
|
int |
numinds, |
|
|
int * |
rows, |
|
|
IssmDouble * |
values_in |
|
) |
| |
◆ SetTriaInput() [2/2]
void DatasetInput2::SetTriaInput |
( |
int |
id, |
|
|
int |
interp_in, |
|
|
int |
numinds, |
|
|
int * |
rows, |
|
|
IssmDouble * |
values_in |
|
) |
| |
Definition at line 101 of file DatasetInput2.cpp.
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);
◆ SetPentaInput()
void DatasetInput2::SetPentaInput |
( |
int |
id, |
|
|
int |
interp_in, |
|
|
int |
numinds, |
|
|
int * |
rows, |
|
|
IssmDouble * |
values_in |
|
) |
| |
Definition at line 134 of file DatasetInput2.cpp.
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);
◆ SetTransientInput()
Definition at line 167 of file DatasetInput2.cpp.
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;
◆ GetPentaInputByOffset()
PentaInput2 * DatasetInput2::GetPentaInputByOffset |
( |
int |
i | ) |
|
Definition at line 237 of file DatasetInput2.cpp.
244 return xDynamicCast<TransientInput2*>(this->
inputs[offset])->GetPentaInput();
247 _error_(
"Cannot return a PentaInput2");
249 return xDynamicCast<PentaInput2*>(this->
inputs[offset]);
◆ GetTriaInputByOffset()
TriaInput2 * DatasetInput2::GetTriaInputByOffset |
( |
int |
i | ) |
|
Definition at line 222 of file DatasetInput2.cpp.
229 return xDynamicCast<TransientInput2*>(this->
inputs[offset])->GetTriaInput();
232 _error_(
"Cannot return a TriaInput2");
234 return xDynamicCast<TriaInput2*>(this->
inputs[offset]);
◆ GetInputValue()
void DatasetInput2::GetInputValue |
( |
IssmDouble * |
pvalue, |
|
|
Gauss * |
gauss, |
|
|
int |
index |
|
) |
| |
Definition at line 199 of file DatasetInput2.cpp.
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;
◆ numids
int DatasetInput2::numids |
|
private |
◆ inputs
Input2** DatasetInput2::inputs |
|
private |
◆ ids
◆ numberofelements_local
int DatasetInput2::numberofelements_local |
|
private |
◆ numberofvertices_local
int DatasetInput2::numberofvertices_local |
|
private |
The documentation for this class was generated from the following files: