[4236] | 1 | #ifndef _CONTAINER_PARAMETERS_H_
|
---|
| 2 | #define _CONTAINER_PARAMETERS_H_
|
---|
[12222] | 3 | #include <stdio.h>
|
---|
[4236] | 4 |
|
---|
| 5 | /*forward declarations */
|
---|
[13216] | 6 | template <class doublematrix> class Matrix;
|
---|
| 7 | template <class doubletype> class Vector;
|
---|
[14957] | 8 | #include "./DataSet.h"
|
---|
[14953] | 9 | #include "../shared/Numerics/types.h"
|
---|
[4236] | 10 |
|
---|
[14476] | 11 | /*!\brief Declaration of Parameters class.
|
---|
| 12 | *
|
---|
| 13 | * Declaration of Parameters class. Parameters are vector lists (Containers) of Parameter objects.
|
---|
| 14 | */
|
---|
[4236] | 15 | class Parameters: public DataSet{
|
---|
| 16 |
|
---|
| 17 | public:
|
---|
| 18 |
|
---|
[12746] | 19 | /*constructors, destructors*/
|
---|
[4236] | 20 | Parameters();
|
---|
| 21 | ~Parameters();
|
---|
[12746] | 22 |
|
---|
| 23 | /*numerics*/
|
---|
[8263] | 24 | bool Exist(int enum_type);
|
---|
| 25 |
|
---|
| 26 | void FindParam(bool* pinteger,int enum_type);
|
---|
| 27 | void FindParam(int* pinteger,int enum_type);
|
---|
[12466] | 28 | void FindParam(IssmDouble* pscalar, int enum_type);
|
---|
[12746] | 29 | void FindParam(IssmDouble* pscalar, int enum_type,IssmDouble time);
|
---|
[8263] | 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);
|
---|
[8600] | 33 | void FindParam(int** pintarray,int* pM,int* PN,int enum_type);
|
---|
[12466] | 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);
|
---|
[13216] | 37 | void FindParam(Vector<IssmDouble>** pvec,int enum_type);
|
---|
| 38 | void FindParam(Matrix<IssmDouble>** pmat,int enum_type);
|
---|
[8263] | 39 | void FindParam(FILE** pfid,int enum_type);
|
---|
[13425] | 40 | void FindParam(DataSet** pdataset, int enum_type);
|
---|
[13623] | 41 |
|
---|
[4236] | 42 | void SetParam(bool boolean,int enum_type);
|
---|
| 43 | void SetParam(int integer,int enum_type);
|
---|
[12466] | 44 | void SetParam(IssmDouble scalar, int enum_type);
|
---|
[4236] | 45 | void SetParam(char* string,int enum_type);
|
---|
| 46 | void SetParam(char** stringarray,int M,int enum_type);
|
---|
[12466] | 47 | void SetParam(IssmDouble* IssmDoublearray,int M,int enum_type);
|
---|
| 48 | void SetParam(IssmDouble* IssmDoublearray,int M,int N,int enum_type);
|
---|
[8600] | 49 | void SetParam(int* intarray,int M,int enum_type);
|
---|
| 50 | void SetParam(int* intarray,int M,int N,int enum_type);
|
---|
[13216] | 51 | void SetParam(Vector<IssmDouble>* vec,int enum_type);
|
---|
| 52 | void SetParam(Matrix<IssmDouble>* mat,int enum_type);
|
---|
[4873] | 53 | void SetParam(FILE* fid,int enum_type);
|
---|
[9356] | 54 | void UnitConversion(int direction_enum);
|
---|
[4236] | 55 |
|
---|
| 56 | Object* FindParamObject(int enum_type);
|
---|
| 57 |
|
---|
| 58 | };
|
---|
| 59 |
|
---|
[14975] | 60 | /*Methods relating to parameters: */
|
---|
| 61 | char *OptionsFromAnalysis(Parameters *parameters,int analysis_type);
|
---|
| 62 | void ToolkitsOptionsFromAnalysis(Parameters* parameters,int analysis_type);
|
---|
| 63 |
|
---|
| 64 |
|
---|
[4236] | 65 | #endif //ifndef _PARAMETERS_H_
|
---|