1 | /*! \file DoubleVecResult.h
|
---|
2 | * \brief: header file for DoubleVec result object
|
---|
3 | */
|
---|
4 |
|
---|
5 |
|
---|
6 | #ifndef _DOUBLEVECRESULT_H_
|
---|
7 | #define _DOUBLEVECRESULT_H_
|
---|
8 |
|
---|
9 | /*Headers:*/
|
---|
10 | /*{{{1*/
|
---|
11 |
|
---|
12 | #ifdef HAVE_CONFIG_H
|
---|
13 | #include "config.h"
|
---|
14 | #else
|
---|
15 | #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
|
---|
16 | #endif
|
---|
17 |
|
---|
18 | #ifdef _SERIAL_
|
---|
19 | #include <mex.h>
|
---|
20 | #endif
|
---|
21 |
|
---|
22 |
|
---|
23 | #include "./Result.h"
|
---|
24 | #include "../../include/include.h"
|
---|
25 | #include "../../shared/shared.h"
|
---|
26 | #include "../../include/include.h"
|
---|
27 | #include "../../include/include.h"
|
---|
28 | /*}}}*/
|
---|
29 |
|
---|
30 | class DoubleVecResult: public Result{
|
---|
31 |
|
---|
32 | private:
|
---|
33 | int id;
|
---|
34 | int enum_type;
|
---|
35 | double time;
|
---|
36 | int step;
|
---|
37 |
|
---|
38 | double* value;
|
---|
39 | int M;
|
---|
40 |
|
---|
41 | public:
|
---|
42 | /*constructors, destructors: {{{1*/
|
---|
43 | DoubleVecResult();
|
---|
44 | DoubleVecResult(int id, int enum_type,double time, int step, double* value,int M);
|
---|
45 | ~DoubleVecResult();
|
---|
46 | /*}}}*/
|
---|
47 | /*Object methods: {{{1*/
|
---|
48 | Object* copy();
|
---|
49 | void DeepEcho();
|
---|
50 | void Demarshall(char** pmarshalled_dataset);
|
---|
51 | void Echo();
|
---|
52 | int Enum();
|
---|
53 | int Id();
|
---|
54 | void Marshall(char** pmarshalled_dataset);
|
---|
55 | int MarshallSize();
|
---|
56 | int MyRank();
|
---|
57 |
|
---|
58 | void UpdateInputsFromVector(double* vector, int name, int type);
|
---|
59 | void UpdateInputsFromVector(int* vector, int name, int type);
|
---|
60 | void UpdateInputsFromVector(bool* vector, int name, int type);
|
---|
61 | void UpdateInputsFromConstant(double constant, int name);
|
---|
62 | void UpdateInputsFromConstant(int constant, int name);
|
---|
63 | void UpdateInputsFromConstant(bool constant, int name);
|
---|
64 | void UpdateInputsFromSolution(double* solution, int analysis_type, int sub_analysis_type){ISSMERROR("Not implemented yet!");}
|
---|
65 | /*}}}*/
|
---|
66 | /*Result methods: {{{1*/
|
---|
67 | /*}}}*/
|
---|
68 | };
|
---|
69 | #endif /* _DOUBLEVECRESULT_H */
|
---|