| 1 | /*! \file PentaVertexElementResult.h
|
|---|
| 2 | * \brief: header file for penta vertex result object.
|
|---|
| 3 | * this object is just a PentaVertexInput with additional time and step info.
|
|---|
| 4 | */
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 | #ifndef _PENTAVERTEXELEMENTRESULT_H_
|
|---|
| 8 | #define _PENTAVERTEXELEMENTRESULT_H_
|
|---|
| 9 |
|
|---|
| 10 | /*Headers:*/
|
|---|
| 11 | /*{{{1*/
|
|---|
| 12 | #include "../Inputs/Input.h"
|
|---|
| 13 | #include "../../include/include.h"
|
|---|
| 14 | /*}}}*/
|
|---|
| 15 |
|
|---|
| 16 | class PentaVertexElementResult: public ElementResult{
|
|---|
| 17 |
|
|---|
| 18 | private:
|
|---|
| 19 | int enum_type;
|
|---|
| 20 | double values[6];
|
|---|
| 21 | int step;
|
|---|
| 22 | double time;
|
|---|
| 23 |
|
|---|
| 24 | public:
|
|---|
| 25 |
|
|---|
| 26 | /*PentaVertexElementResult constructors, destructors: {{{1*/
|
|---|
| 27 | PentaVertexElementResult();
|
|---|
| 28 | PentaVertexElementResult(int enum_type,double* values,int step, double time);
|
|---|
| 29 | ~PentaVertexElementResult();
|
|---|
| 30 | /*}}}*/
|
|---|
| 31 | /*Object virtual functions definitions:{{{1 */
|
|---|
| 32 | void Echo();
|
|---|
| 33 | void DeepEcho();
|
|---|
| 34 | int Id();
|
|---|
| 35 | int MyRank();
|
|---|
| 36 | #ifdef _SERIAL_
|
|---|
| 37 | void Marshall(char** pmarshalled_dataset);
|
|---|
| 38 | int MarshallSize();
|
|---|
| 39 | void Demarshall(char** pmarshalled_dataset);
|
|---|
| 40 | #endif
|
|---|
| 41 | int ObjectEnum();
|
|---|
| 42 | Object* copy();
|
|---|
| 43 | /*}}}*/
|
|---|
| 44 | /*ElementResult virtual functions definitions: {{{1*/
|
|---|
| 45 | ElementResult* SpawnTriaElementResult(int* indices);
|
|---|
| 46 | double GetTime(void){return time;};
|
|---|
| 47 | int GetStep(void){return step;};
|
|---|
| 48 | void ProcessUnits(Parameters* parameters);
|
|---|
| 49 | int NumberOfNodalValues(void);
|
|---|
| 50 | void PatchFill(int row, Patch* patch);
|
|---|
| 51 | /*}}}*/
|
|---|
| 52 | /*PentaVertexElementResult management: {{{1*/
|
|---|
| 53 | int InstanceEnum();
|
|---|
| 54 | void GetVectorFromResults(Vec vector,int* doflist,int numdofs);
|
|---|
| 55 | /*}}}*/
|
|---|
| 56 |
|
|---|
| 57 | };
|
|---|
| 58 | #endif /* _PENTAVERTEXELEMENTRESULT_H */
|
|---|