source: issm/trunk/src/c/classes/Misfit.h@ 24686

Last change on this file since 24686 was 22758, checked in by Mathieu Morlighem, 7 years ago

merged trunk-jpl and trunk for revision 22757

File size: 1.4 KB
Line 
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"
11
12IssmDouble OutputDefinitionsResponsex(FemModel* femmodel,int output_enum);
13void GetVectorFromInputsx( IssmDouble** pvector, int* pvector_size, FemModel* femmodel,int name);
14
15class Misfit: public Object, public Definition{
16
17 public:
18
19 int definitionenum;
20 int local;
21 int model_enum;
22 char* name;
23 int observation_enum;
24 char* timeinterpolation;
25 int weights_enum;
26
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
28 IssmDouble misfit; //value carried over in time.
29
30 /*Misfit constructors, destructors :*/
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();
34
35 /*Object virtual function resolutoin: */
36 Object* copy();
37 void DeepEcho(void);
38 void Echo(void);
39 int Id(void);
40 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction);
41 int ObjectEnum(void);
42
43 /*Definition virtual function resolutoin: */
44 int DefinitionEnum();
45 char* Name();
46 IssmDouble Response(FemModel* femmodel);
47};
48#endif /* _MISFIT_H_ */
Note: See TracBrowser for help on using the repository browser.