Ice Sheet System Model  4.18
Code documentation
TriaInput2.h
Go to the documentation of this file.
1 #ifndef _TRIAINPUT2_H_
2 #define _TRIAINPUT2_H_
3 
4 /*Headers:*/
5 #include "./ElementInput2.h"
6 #include "../Elements/TriaRef.h"
7 
8 class TriaInput2: public ElementInput2, public TriaRef{
9 
10  private:
12  int collapsed_ids[2];
13  public:
14  /*TriaInput2 constructors, destructors: {{{*/
15  TriaInput2();
16  TriaInput2(int nbe_in,int nbv_in,int interp_in);
17  ~TriaInput2();
18  /*}}}*/
19  /*Object virtual functions definitions:{{{ */
20  Input2 *copy();
21  void DeepEcho();
22  void Echo();
23  int Id();
24  void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction);
25  int ObjectEnum();
26  /*}}}*/
27  /*TriaInput2 management: {{{*/
28  void SetInput(int interp_in,int row,IssmDouble value_in);
29  void SetInput(int interp_in,int numinds,int* rows,IssmDouble* values_in);
30  void SetInput(int interp_in,int row,int numinds,IssmDouble* values_in);
31  int GetInterpolation();
32  void GetInputDerivativeValue(IssmDouble* derivativevalues, IssmDouble* xyz_list, Gauss* gauss);
33  void GetInputAverage(IssmDouble* pvalue);
37  TriaInput2* GetTriaInput(){return this;};
38  void GetInputValue(IssmDouble* pvalue,Gauss* gauss);
39  void Scale(IssmDouble scalar);
40  void Pow(IssmDouble scalar);
41  void AXPY(Input2* xinput,IssmDouble scalar);
42  void PointWiseMult(Input2* xinput);
43  void Serve(int numindices,int* indices);
44  void Serve(int row,int numindices);
45  void ServeCollapsed(int row,int id0,int in1);
46  void SetServeCollapsed(bool);
47  int GetResultArraySize(void);
48  int GetResultInterpolation(void);
49  int GetResultNumberOfNodes(void);
50  /*}}}*/
51  void Reset(int interp_in);
52 
53 };
54 #endif /* _TRIAINPUT_H */
TriaInput2::Echo
void Echo()
Definition: TriaInput2.cpp:97
IssmDouble
double IssmDouble
Definition: types.h:37
TriaInput2::SetServeCollapsed
void SetServeCollapsed(bool)
Definition: TriaInput2.cpp:250
TriaInput2::ObjectEnum
int ObjectEnum()
Definition: TriaInput2.cpp:135
TriaInput2::Serve
void Serve(int numindices, int *indices)
Definition: TriaInput2.cpp:202
ElementInput2.h
TriaInput2::GetInputValue
void GetInputValue(IssmDouble *pvalue, Gauss *gauss)
Definition: TriaInput2.cpp:328
ElementInput2
Definition: ElementInput2.h:7
TriaInput2::GetResultNumberOfNodes
int GetResultNumberOfNodes(void)
Definition: TriaInput2.cpp:356
TriaInput2::copy
Input2 * copy()
Definition: TriaInput2.cpp:72
TriaInput2::Scale
void Scale(IssmDouble scalar)
Definition: TriaInput2.cpp:360
TriaInput2::ServeCollapsed
void ServeCollapsed(int row, int id0, int in1)
Definition: TriaInput2.cpp:234
TriaInput2::GetInputAverage
void GetInputAverage(IssmDouble *pvalue)
Definition: TriaInput2.cpp:256
TriaInput2::Id
int Id()
Definition: TriaInput2.cpp:111
TriaInput2::PointWiseMult
void PointWiseMult(Input2 *xinput)
Definition: TriaInput2.cpp:384
TriaInput2::Pow
void Pow(IssmDouble scalar)
Definition: TriaInput2.cpp:366
TriaInput2::GetInputMax
IssmDouble GetInputMax()
Definition: TriaInput2.cpp:283
TriaInput2
Definition: TriaInput2.h:8
TriaInput2::GetInputMaxAbs
IssmDouble GetInputMaxAbs()
Definition: TriaInput2.cpp:296
TriaInput2::Marshall
void Marshall(char **pmarshalled_data, int *pmarshalled_data_size, int marshall_direction)
Definition: TriaInput2.cpp:114
TriaInput2::DeepEcho
void DeepEcho()
Definition: TriaInput2.cpp:82
TriaInput2::GetResultArraySize
int GetResultArraySize(void)
Definition: TriaInput2.cpp:346
TriaInput2::GetInputDerivativeValue
void GetInputDerivativeValue(IssmDouble *derivativevalues, IssmDouble *xyz_list, Gauss *gauss)
Definition: TriaInput2.cpp:309
TriaInput2::GetResultInterpolation
int GetResultInterpolation(void)
Definition: TriaInput2.cpp:350
TriaInput2::GetInterpolation
int GetInterpolation()
Definition: TriaInput2.cpp:253
TriaInput2::isserved_collapsed
int isserved_collapsed
Definition: TriaInput2.h:11
Input2
Definition: Input2.h:18
TriaInput2::GetInputMin
IssmDouble GetInputMin()
Definition: TriaInput2.cpp:270
TriaInput2::~TriaInput2
~TriaInput2()
Definition: TriaInput2.cpp:42
TriaInput2::SetInput
void SetInput(int interp_in, int row, IssmDouble value_in)
Definition: TriaInput2.cpp:141
TriaRef
Definition: TriaRef.h:11
TriaInput2::collapsed_ids
int collapsed_ids[2]
Definition: TriaInput2.h:12
TriaInput2::Reset
void Reset(int interp_in)
Definition: TriaInput2.cpp:47
TriaInput2::AXPY
void AXPY(Input2 *xinput, IssmDouble scalar)
Definition: TriaInput2.cpp:372
Gauss
Definition: Gauss.h:8
TriaInput2::TriaInput2
TriaInput2()
Definition: TriaInput2.cpp:16
TriaInput2::GetTriaInput
TriaInput2 * GetTriaInput()
Definition: TriaInput2.h:37