source: issm/trunk-jpl/src/c/Container/Parameters.h@ 14975

Last change on this file since 14975 was 14975, checked in by Eric.Larour, 12 years ago

CHG: cleanup the shared/Numerics directory. Took out the IsInputConverged, ToolkitsOptionsFromAnalysis and OptionsFromAnalysis
and put them into the Container/ Inputs and Parameters files. This uncovered a bunch of cyclical dependencies that needed fixing.

File size: 2.4 KB
Line 
1#ifndef _CONTAINER_PARAMETERS_H_
2#define _CONTAINER_PARAMETERS_H_
3#include <stdio.h>
4
5/*forward declarations */
6template <class doublematrix> class Matrix;
7template <class doubletype> class Vector;
8#include "./DataSet.h"
9#include "../shared/Numerics/types.h"
10
11/*!\brief Declaration of Parameters class.
12 *
13 * Declaration of Parameters class. Parameters are vector lists (Containers) of Parameter objects.
14 */
15class Parameters: public DataSet{
16
17 public:
18
19 /*constructors, destructors*/
20 Parameters();
21 ~Parameters();
22
23 /*numerics*/
24 bool Exist(int enum_type);
25
26 void FindParam(bool* pinteger,int enum_type);
27 void FindParam(int* pinteger,int enum_type);
28 void FindParam(IssmDouble* pscalar, int enum_type);
29 void FindParam(IssmDouble* pscalar, int enum_type,IssmDouble time);
30 void FindParam(char** pstring,int enum_type);
31 void FindParam(char*** pstringarray,int* pM,int enum_type);
32 void FindParam(int** pintarray,int* pM,int enum_type);
33 void FindParam(int** pintarray,int* pM,int* PN,int enum_type);
34 void FindParam(IssmDouble** pIssmDoublearray,int* pM,int enum_type);
35 void FindParam(IssmDouble** pIssmDoublearray,int* pM,int* pN,int enum_type);
36 void FindParam(IssmDouble*** parray,int* pM, int** pmdims_array,int** pndims_array,int enum_type);
37 void FindParam(Vector<IssmDouble>** pvec,int enum_type);
38 void FindParam(Matrix<IssmDouble>** pmat,int enum_type);
39 void FindParam(FILE** pfid,int enum_type);
40 void FindParam(DataSet** pdataset, int enum_type);
41
42 void SetParam(bool boolean,int enum_type);
43 void SetParam(int integer,int enum_type);
44 void SetParam(IssmDouble scalar, int enum_type);
45 void SetParam(char* string,int enum_type);
46 void SetParam(char** stringarray,int M,int enum_type);
47 void SetParam(IssmDouble* IssmDoublearray,int M,int enum_type);
48 void SetParam(IssmDouble* IssmDoublearray,int M,int N,int enum_type);
49 void SetParam(int* intarray,int M,int enum_type);
50 void SetParam(int* intarray,int M,int N,int enum_type);
51 void SetParam(Vector<IssmDouble>* vec,int enum_type);
52 void SetParam(Matrix<IssmDouble>* mat,int enum_type);
53 void SetParam(FILE* fid,int enum_type);
54 void UnitConversion(int direction_enum);
55
56 Object* FindParamObject(int enum_type);
57
58};
59
60/*Methods relating to parameters: */
61char *OptionsFromAnalysis(Parameters *parameters,int analysis_type);
62void ToolkitsOptionsFromAnalysis(Parameters* parameters,int analysis_type);
63
64
65#endif //ifndef _PARAMETERS_H_
Note: See TracBrowser for help on using the repository browser.