[6200] | 1 | /*! \file ControlInput.h
|
---|
| 2 | * \brief: header file for triavertexinput object
|
---|
| 3 | */
|
---|
| 4 |
|
---|
| 5 |
|
---|
| 6 | #ifndef _CONTROLINPUT_H_
|
---|
| 7 | #define _CONTROLINPUT_H_
|
---|
| 8 |
|
---|
| 9 | /*Headers:*/
|
---|
[12365] | 10 | /*{{{*/
|
---|
[6200] | 11 | #include "./Input.h"
|
---|
| 12 | #include "../../include/include.h"
|
---|
| 13 | class GaussTria;
|
---|
| 14 | /*}}}*/
|
---|
| 15 |
|
---|
| 16 | class ControlInput: public Input{
|
---|
| 17 |
|
---|
| 18 | public:
|
---|
| 19 | int enum_type;
|
---|
[6260] | 20 | int control_id;
|
---|
[6200] | 21 | Input* values;
|
---|
| 22 | Input* savedvalues;
|
---|
[8129] | 23 | Input* minvalues;
|
---|
| 24 | Input* maxvalues;
|
---|
[6200] | 25 | Input* gradient;
|
---|
| 26 |
|
---|
[12365] | 27 | /*ControlInput constructors, destructors: {{{*/
|
---|
[6200] | 28 | ControlInput();
|
---|
[12530] | 29 | ControlInput(int enum_type,int enum_input,IssmDouble* pvalues,IssmDouble* pmin,IssmDouble* pmax,int id);
|
---|
[6200] | 30 | ~ControlInput();
|
---|
| 31 | /*}}}*/
|
---|
[12365] | 32 | /*Object virtual functions definitions:{{{ */
|
---|
[6200] | 33 | void Echo();
|
---|
| 34 | void DeepEcho();
|
---|
| 35 | int Id();
|
---|
| 36 | int MyRank();
|
---|
[9883] | 37 | int ObjectEnum();
|
---|
[6200] | 38 | Object* copy();
|
---|
| 39 | /*}}}*/
|
---|
[12365] | 40 | /*ControlInput management: {{{*/
|
---|
[9883] | 41 | int InstanceEnum();
|
---|
[6200] | 42 | Input* SpawnTriaInput(int* indices);
|
---|
[12494] | 43 | Input* PointwiseDivide(Input* inputB){_error2_("not implemented yet");};
|
---|
| 44 | Input* PointwiseMin(Input* inputB){_error2_("not implemented yet");};
|
---|
| 45 | Input* PointwiseMax(Input* inputB){_error2_("not implemented yet");};
|
---|
[12530] | 46 | ElementResult* SpawnResult(int step, IssmDouble time);
|
---|
| 47 | void AddTimeValues(IssmDouble* values,int step,IssmDouble time){_error2_("not supported yet");};
|
---|
[8363] | 48 | void Configure(Parameters* parameters);
|
---|
[6200] | 49 | /*}}}*/
|
---|
[12365] | 50 | /*numerics: {{{*/
|
---|
[11317] | 51 | void SetInput(Input* in_input);
|
---|
[10135] | 52 | void GetInputValue(bool* pvalue);
|
---|
| 53 | void GetInputValue(int* pvalue);
|
---|
[12530] | 54 | void GetInputValue(IssmDouble* pvalue);
|
---|
| 55 | void GetInputValue(IssmDouble* pvalue,GaussTria* gauss);
|
---|
| 56 | void GetInputValue(IssmDouble* pvalue,GaussTria* gauss,IssmDouble time){_error2_("not implemented yet");};
|
---|
| 57 | void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss);
|
---|
| 58 | void GetInputValue(IssmDouble* pvalue,GaussTria* gauss ,int index){_error2_("not implemented yet");};
|
---|
| 59 | void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss ,int index){_error2_("not implemented yet");};
|
---|
| 60 | void GetInputDerivativeValue(IssmDouble* derivativevalues, IssmPDouble* xyz_list, GaussTria* gauss);
|
---|
| 61 | void GetInputDerivativeValue(IssmDouble* derivativevalues, IssmPDouble* xyz_list, GaussPenta* gauss);
|
---|
| 62 | void GetInputAverage(IssmDouble* pvalue);
|
---|
| 63 | void GetVxStrainRate2d(IssmDouble* epsilonvx,IssmPDouble* xyz_list, GaussTria* gauss){_error2_("not implemented yet");};
|
---|
| 64 | void GetVyStrainRate2d(IssmDouble* epsilonvy,IssmPDouble* xyz_list, GaussTria* gauss){_error2_("not implemented yet");};
|
---|
| 65 | void GetVxStrainRate3d(IssmDouble* epsilonvx,IssmPDouble* xyz_list, GaussPenta* gauss){_error2_("not implemented yet");};
|
---|
| 66 | void GetVyStrainRate3d(IssmDouble* epsilonvy,IssmPDouble* xyz_list, GaussPenta* gauss){_error2_("not implemented yet");};
|
---|
| 67 | void GetVzStrainRate3d(IssmDouble* epsilonvz,IssmPDouble* xyz_list, GaussPenta* gauss){_error2_("not implemented yet");};
|
---|
| 68 | void GetVxStrainRate3dPattyn(IssmDouble* epsilonvx,IssmPDouble* xyz_list, GaussPenta* gauss){_error2_("not implemented yet");};
|
---|
| 69 | void GetVyStrainRate3dPattyn(IssmDouble* epsilonvy,IssmPDouble* xyz_list, GaussPenta* gauss){_error2_("not implemented yet");};
|
---|
[12494] | 70 | void ChangeEnum(int newenumtype){_error2_("not implemented yet");};
|
---|
[12530] | 71 | void SquareMin(IssmDouble* psquaremin, bool process_units,Parameters* parameters){_error2_("not implemented yet");};
|
---|
| 72 | void ConstrainMin(IssmDouble minimum){_error2_("not implemented yet");};
|
---|
| 73 | void Scale(IssmDouble scale_factor){_error2_("not implemented yet");};
|
---|
| 74 | void ArtificialNoise(IssmDouble min,IssmDouble max){_error2_("not implemented yet");};
|
---|
| 75 | void AXPY(Input* xinput,IssmDouble scalar){_error2_("not implemented yet");};
|
---|
[8129] | 76 | void Constrain(void);
|
---|
[12530] | 77 | void Constrain(IssmDouble min,IssmDouble max);
|
---|
| 78 | IssmDouble InfinityNorm(void){_error2_("not implemented yet");};
|
---|
| 79 | IssmDouble Max(void){_error2_("not implemented yet");};
|
---|
| 80 | IssmDouble MaxAbs(void){_error2_("not implemented yet");};
|
---|
| 81 | IssmDouble Min(void){_error2_("not implemented yet");};
|
---|
| 82 | IssmDouble MinAbs(void){_error2_("not implemented yet");};
|
---|
[6200] | 83 | void Extrude(void);
|
---|
| 84 | void VerticallyIntegrate(Input* thickness_input);
|
---|
[11695] | 85 | void GetVectorFromInputs(Vector* vector,int* doflist,const char* data);
|
---|
| 86 | void GetVectorFromInputs(Vector* vector,int* doflist);
|
---|
[12530] | 87 | void GetValuesPtr(IssmDouble** pvalues,int* pnum_values){_error2_("not implemented yet");};
|
---|
| 88 | ElementResult* SpawnGradient(int step, IssmDouble time);
|
---|
[11695] | 89 | void GetGradient(Vector* gradient_vec,int* doflist);
|
---|
[12530] | 90 | void ScaleGradient(IssmDouble scale);
|
---|
[6200] | 91 | void SetGradient(Input* gradient_in);
|
---|
[12530] | 92 | void UpdateValue(IssmDouble scalar);
|
---|
[6200] | 93 | void SaveValue(void);
|
---|
| 94 | /*}}}*/
|
---|
| 95 |
|
---|
| 96 | };
|
---|
| 97 | #endif /* _CONTROLINPUT_H */
|
---|