Changeset 12494 for issm/trunk-jpl/src/c/objects/Params/MatrixParam.h
- Timestamp:
- 06/21/12 10:10:34 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/objects/Params/MatrixParam.h
r12474 r12494 43 43 /*Param vritual function definitions: {{{*/ 44 44 int InstanceEnum(){return enum_type;} 45 void GetParameterValue(bool* pbool){_error _("Matrix param of enum %i (%s) cannot return a bool",enum_type,EnumToStringx(enum_type));}46 void GetParameterValue(int* pinteger){_error _("Matrix param of enum %i (%s) cannot return an integer",enum_type,EnumToStringx(enum_type));}47 void GetParameterValue(int** pintarray,int* pM){_error _("Matrix param of enum %i (%s) cannot return an array of integers",enum_type,EnumToStringx(enum_type));}48 void GetParameterValue(int** pintarray,int* pM,int* pN){_error _("Matrix param of enum %i (%s) cannot return an array of integers",enum_type,EnumToStringx(enum_type));}49 void GetParameterValue(IssmDouble* pIssmDouble){_error _("Matrix param of enum %i (%s) cannot return a IssmDouble",enum_type,EnumToStringx(enum_type));}50 void GetParameterValue(char** pstring){_error _("Matrix param of enum %i (%s) cannot return a string",enum_type,EnumToStringx(enum_type));}51 void GetParameterValue(char*** pstringarray,int* pM){_error _("Matrix param of enum %i (%s) cannot return a string array",enum_type,EnumToStringx(enum_type));}52 void GetParameterValue(IssmDouble** pIssmDoublearray,int* pM){_error _("Matrix param of enum %i (%s) cannot return a IssmDouble array",enum_type,EnumToStringx(enum_type));}53 void GetParameterValue(IssmDouble** pIssmDoublearray,int* pM, int* pN){_error _("Matrix param of enum %i (%s) cannot return a IssmDouble array",enum_type,EnumToStringx(enum_type));}54 void GetParameterValue(IssmDouble*** parray, int* pM,int** pmdims, int** pndims){_error _("Matrix param of enum %i (%s) cannot return a matrix array",enum_type,EnumToStringx(enum_type));}55 void GetParameterValue(Vector** pvec){_error _("Matrix param of enum %i (%s) cannot return a vec",enum_type,EnumToStringx(enum_type));}45 void GetParameterValue(bool* pbool){_error2_("Matrix param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return a bool");} 46 void GetParameterValue(int* pinteger){_error2_("Matrix param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return an integer");} 47 void GetParameterValue(int** pintarray,int* pM){_error2_("Matrix param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return an array of integers");} 48 void GetParameterValue(int** pintarray,int* pM,int* pN){_error2_("Matrix param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return an array of integers");} 49 void GetParameterValue(IssmDouble* pIssmDouble){_error2_("Matrix param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return a IssmDouble");} 50 void GetParameterValue(char** pstring){_error2_("Matrix param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return a string");} 51 void GetParameterValue(char*** pstringarray,int* pM){_error2_("Matrix param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return a string array");} 52 void GetParameterValue(IssmDouble** pIssmDoublearray,int* pM){_error2_("Matrix param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return a IssmDouble array");} 53 void GetParameterValue(IssmDouble** pIssmDoublearray,int* pM, int* pN){_error2_("Matrix param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return a IssmDouble array");} 54 void GetParameterValue(IssmDouble*** parray, int* pM,int** pmdims, int** pndims){_error2_("Matrix param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return a matrix array");} 55 void GetParameterValue(Vector** pvec){_error2_("Matrix param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return a vec");} 56 56 void GetParameterValue(Matrix** poutput); 57 void GetParameterValue(FILE** pfid){_error _("Matrix param of enum %i (%s) cannot return a FILE",enum_type,EnumToStringx(enum_type));}57 void GetParameterValue(FILE** pfid){_error2_("Matrix param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return a FILE");} 58 58 59 void SetValue(bool boolean){_error _("Matrix param of enum %i (%s) cannot hold a boolean",enum_type,EnumToStringx(enum_type));}60 void SetValue(int integer){_error _("Matrix param of enum %i (%s) cannot hold an integer",enum_type,EnumToStringx(enum_type));}61 void SetValue(IssmDouble scalar){_error _("Matrix param of enum %i (%s) cannot hold a scalar",enum_type,EnumToStringx(enum_type));}62 void SetValue(char* string){_error _("Matrix param of enum %i (%s) cannot hold a string",enum_type,EnumToStringx(enum_type));}63 void SetValue(char** stringarray,int M){_error _("Matrix param of enum %i (%s) cannot hold a string array",enum_type,EnumToStringx(enum_type));}64 void SetValue(IssmDouble* IssmDoublearray,int M){_error _("Matrix param of enum %i (%s) cannot hold a IssmDouble array",enum_type,EnumToStringx(enum_type));}65 void SetValue(IssmDouble* pIssmDoublearray,int M,int N){_error _("Matrix param of enum %i (%s) cannot hold a IssmDouble array",enum_type,EnumToStringx(enum_type));}66 void SetValue(int* intarray,int M){_error _("Matrix param of enum %i (%s) cannot hold a int array",enum_type,EnumToStringx(enum_type));}67 void SetValue(int* pintarray,int M,int N){_error _("Matrix param of enum %i (%s) cannot hold a int array",enum_type,EnumToStringx(enum_type));}68 void SetValue(Vector* vec){_error _("Matrix param of enum %i (%s) cannot hold a Vec",enum_type,EnumToStringx(enum_type));}59 void SetValue(bool boolean){_error2_("Matrix param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot hold a boolean");} 60 void SetValue(int integer){_error2_("Matrix param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot hold an integer");} 61 void SetValue(IssmDouble scalar){_error2_("Matrix param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot hold a scalar");} 62 void SetValue(char* string){_error2_("Matrix param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot hold a string");} 63 void SetValue(char** stringarray,int M){_error2_("Matrix param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot hold a string array");} 64 void SetValue(IssmDouble* IssmDoublearray,int M){_error2_("Matrix param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot hold a IssmDouble array");} 65 void SetValue(IssmDouble* pIssmDoublearray,int M,int N){_error2_("Matrix param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot hold a IssmDouble array");} 66 void SetValue(int* intarray,int M){_error2_("Matrix param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot hold a int array");} 67 void SetValue(int* pintarray,int M,int N){_error2_("Matrix param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot hold a int array");} 68 void SetValue(Vector* vec){_error2_("Matrix param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot hold a Vec");} 69 69 void SetValue(Matrix* mat); 70 void SetValue(FILE* fid){_error _("Matrix param of enum %i (%s) cannot hold a FILE",enum_type,EnumToStringx(enum_type));}71 void SetValue(IssmDouble** array, int M, int* mdim_array, int* ndim_array){_error _("Matrix param of enum %i (%s) cannot hold an array of matrices",enum_type,EnumToStringx(enum_type));}70 void SetValue(FILE* fid){_error2_("Matrix param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot hold a FILE");} 71 void SetValue(IssmDouble** array, int M, int* mdim_array, int* ndim_array){_error2_("Matrix param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot hold an array of matrices");} 72 72 void UnitConversion(int direction_enum); 73 73
Note:
See TracChangeset
for help on using the changeset viewer.