Last change
on this file since 26744 was 26744, checked in by Mathieu Morlighem, 3 years ago |
merged trunk-jpl and trunk for revision 26742
|
File size:
1.3 KB
|
Rev | Line | |
---|
[16787] | 1 | /*!\file Misfit.h
|
---|
| 2 | * \brief: header file for Misfit object
|
---|
| 3 | */
|
---|
| 4 |
|
---|
| 5 | #ifndef _MISFIT_H_
|
---|
| 6 | #define _MISFIT_H_
|
---|
| 7 |
|
---|
| 8 | /*Headers:*/
|
---|
| 9 | #include "./Definition.h"
|
---|
| 10 | #include "./FemModel.h"
|
---|
[22758] | 11 |
|
---|
[19105] | 12 | IssmDouble OutputDefinitionsResponsex(FemModel* femmodel,int output_enum);
|
---|
[22758] | 13 | void GetVectorFromInputsx( IssmDouble** pvector, int* pvector_size, FemModel* femmodel,int name);
|
---|
[16787] | 14 |
|
---|
| 15 | class Misfit: public Object, public Definition{
|
---|
| 16 |
|
---|
| 17 | public:
|
---|
| 18 |
|
---|
[19105] | 19 | int definitionenum;
|
---|
[22758] | 20 | int local;
|
---|
[21341] | 21 | int model_enum;
|
---|
[16787] | 22 | char* name;
|
---|
| 23 | int observation_enum;
|
---|
[21341] | 24 | char* timeinterpolation;
|
---|
[16787] | 25 | int weights_enum;
|
---|
[26744] | 26 |
|
---|
[21341] | 27 | int lock; // if lock is on, we just return the value stored in "misfit". this is used so we don't compute misfit past the final_time
|
---|
[16793] | 28 | IssmDouble misfit; //value carried over in time.
|
---|
[26744] | 29 |
|
---|
[16787] | 30 | /*Misfit constructors, destructors :*/
|
---|
[22758] | 31 | Misfit();
|
---|
| 32 | Misfit(char* in_name, int in_definitionenum, int in_model_enum, int in_observation_enum, char* in_timeinterpolation, int in_local, int in_weights_enum);
|
---|
| 33 | ~Misfit();
|
---|
[26744] | 34 |
|
---|
[16787] | 35 | /*Object virtual function resolutoin: */
|
---|
[22758] | 36 | Object* copy();
|
---|
| 37 | void DeepEcho(void);
|
---|
| 38 | void Echo(void);
|
---|
| 39 | int Id(void);
|
---|
[25836] | 40 | void Marshall(MarshallHandle* marshallhandle);
|
---|
[22758] | 41 | int ObjectEnum(void);
|
---|
[26744] | 42 |
|
---|
[21341] | 43 | /*Definition virtual function resolutoin: */
|
---|
[22758] | 44 | int DefinitionEnum();
|
---|
| 45 | char* Name();
|
---|
| 46 | IssmDouble Response(FemModel* femmodel);
|
---|
[16787] | 47 | };
|
---|
| 48 | #endif /* _MISFIT_H_ */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.