Changeset 8600
- Timestamp:
- 06/10/11 13:43:35 (14 years ago)
- Location:
- issm/trunk/src/c
- Files:
-
- 2 added
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/Container/Parameters.cpp
r8376 r8600 161 161 } 162 162 /*}}}*/ 163 /*FUNCTION Parameters::FindParam(int** pintarray,int* pM,int* pN,int enum_type){{{1*/ 164 void Parameters::FindParam(int** pintarray,int* pM,int *pN,int enum_type){ _assert_(this); 165 166 vector<Object*>::iterator object; 167 Param* param=NULL; 168 169 for ( object=objects.begin() ; object < objects.end(); object++ ){ 170 171 param=(Param*)(*object); 172 if(param->EnumType()==enum_type){ 173 param->GetParameterValue(pintarray,pM,pN); 174 return; 175 } 176 } 177 _error_("could not find parameter %s",EnumToStringx(enum_type)); 178 179 } 180 /*}}}*/ 163 181 /*FUNCTION Parameters::FindParam(double** pdoublearray,int* pM,int enum_type){{{1*/ 164 182 void Parameters::FindParam(double** pdoublearray,int* pM, int enum_type){ _assert_(this); … … 352 370 } 353 371 /*}}}*/ 372 /*FUNCTION Parameters::SetParam(int* intarray,int M,int enum_type);{{{1*/ 373 void Parameters::SetParam(int* intarray,int M, int enum_type){ 374 375 Param* param=NULL; 376 377 /*first, figure out if the param has already been created: */ 378 param=(Param*)this->FindParamObject(enum_type); 379 380 if(param) param->SetValue(intarray,M); //already exists, just set it. 381 else this->AddObject(new IntVecParam(enum_type,intarray,M)); //just add the new parameter. 382 } 383 /*}}}*/ 384 /*FUNCTION Parameters::SetParam(int* intarray,int M,int N, int enum_type);{{{1*/ 385 void Parameters::SetParam(int* intarray,int M, int N, int enum_type){ 386 387 Param* param=NULL; 388 389 /*first, figure out if the param has already been created: */ 390 param=(Param*)this->FindParamObject(enum_type); 391 392 if(param) param->SetValue(intarray,M,N); //already exists, just set it. 393 else this->AddObject(new IntMatParam(enum_type,intarray,M,N)); //just add the new parameter. 394 } 395 /*}}}*/ 354 396 /*FUNCTION Parameters::SetParam(Vec vector,int enum_type);{{{1*/ 355 397 void Parameters::SetParam(Vec vector,int enum_type){ -
issm/trunk/src/c/Container/Parameters.h
r8263 r8600 34 34 void FindParam(char*** pstringarray,int* pM,int enum_type); 35 35 void FindParam(int** pintarray,int* pM,int enum_type); 36 void FindParam(int** pintarray,int* pM,int* PN,int enum_type); 36 37 void FindParam(double** pdoublearray,int* pM,int enum_type); 37 38 void FindParam(double** pdoublearray,int* pM,int* pN,int enum_type); … … 48 49 void SetParam(double* doublearray,int M,int enum_type); 49 50 void SetParam(double* doublearray,int M,int N,int enum_type); 51 void SetParam(int* intarray,int M,int enum_type); 52 void SetParam(int* intarray,int M,int N,int enum_type); 50 53 void SetParam(Vec vec,int enum_type); 51 54 void SetParam(Mat mat,int enum_type); -
issm/trunk/src/c/EnumDefinitions/EnumDefinitions.h
r8592 r8600 456 456 ThicknessAbsGradientEnum, 457 457 VelAbsGradientEnum, 458 DatasetInputEnum 458 DatasetInputEnum, 459 NumResponsesEnum, 460 StepResponsesEnum, 461 IntMatParamEnum 459 462 }; 460 463 -
issm/trunk/src/c/Makefile.am
r8592 r8600 255 255 ./objects/Params/IntVecParam.cpp\ 256 256 ./objects/Params/IntVecParam.h\ 257 ./objects/Params/IntMatParam.cpp\ 258 ./objects/Params/IntMatParam.h\ 257 259 ./objects/Params/DoubleParam.cpp\ 258 260 ./objects/Params/DoubleParam.h\ … … 924 926 ./objects/Params/IntVecParam.cpp\ 925 927 ./objects/Params/IntVecParam.h\ 928 ./objects/Params/IntMatParam.cpp\ 929 ./objects/Params/IntMatParam.h\ 926 930 ./objects/Params/DoubleParam.cpp\ 927 931 ./objects/Params/DoubleParam.h\ -
issm/trunk/src/c/modules/EnumToStringx/EnumToStringx.cpp
r8592 r8600 400 400 case VelAbsGradientEnum : return "VelAbsGradient"; 401 401 case DatasetInputEnum : return "DatasetInput"; 402 case NumResponsesEnum : return "NumResponses"; 403 case StepResponsesEnum : return "StepResponses"; 404 case IntMatParamEnum : return "IntMatParam"; 402 405 default : return "unknown"; 403 406 -
issm/trunk/src/c/modules/StringToEnumx/StringToEnumx.cpp
r8592 r8600 398 398 else if (strcmp(name,"VelAbsGradient")==0) return VelAbsGradientEnum; 399 399 else if (strcmp(name,"DatasetInput")==0) return DatasetInputEnum; 400 else if (strcmp(name,"NumResponses")==0) return NumResponsesEnum; 401 else if (strcmp(name,"StepResponses")==0) return StepResponsesEnum; 402 else if (strcmp(name,"IntMatParam")==0) return IntMatParamEnum; 400 403 else _error_("Enum %s not found",name); 401 404 -
issm/trunk/src/c/objects/Params/BoolParam.h
r8224 r8600 52 52 void GetParameterValue(int* pinteger){_error_("Bool param of enum %i (%s) cannot return an integer",enum_type,EnumToStringx(enum_type));} 53 53 void GetParameterValue(int** pintarray,int* pM){_error_("Bool param of enum %i (%s) cannot return an array of integers",enum_type,EnumToStringx(enum_type));} 54 void GetParameterValue(int** pintarray,int* pM,int* pN){_error_("Bool param of enum %i (%s) cannot return an array of integers",enum_type,EnumToStringx(enum_type));} 54 55 void GetParameterValue(double* pdouble){_error_("Bool param of enum %i (%s) cannot return a double",enum_type,EnumToStringx(enum_type));} 55 56 void GetParameterValue(char** pstring){_error_("Bool param of enum %i (%s) cannot return a string",enum_type,EnumToStringx(enum_type));} … … 64 65 void SetValue(bool boolean){this->value=boolean;} 65 66 void SetValue(int integer){this->value=(bool)integer;} 66 void SetValue(int* intarray,int M){_error_("Bool param of enum %i (%s) cannot hold an int array",enum_type,EnumToStringx(enum_type));}67 67 void SetValue(double scalar){this->value=(bool)scalar;} 68 68 void SetValue(char* string){_error_("Bool param of enum %i (%s) cannot hold a string",enum_type,EnumToStringx(enum_type));} … … 70 70 void SetValue(double* doublearray,int M){_error_("Bool param of enum %i (%s) cannot hold a double array",enum_type,EnumToStringx(enum_type));} 71 71 void SetValue(double* pdoublearray,int M,int N){_error_("Bool param of enum %i (%s) cannot hold a double array",enum_type,EnumToStringx(enum_type));} 72 void SetValue(int* intarray,int M){_error_("Bool param of enum %i (%s) cannot hold a int array",enum_type,EnumToStringx(enum_type));} 73 void SetValue(int* pintarray,int M,int N){_error_("Bool param of enum %i (%s) cannot hold a int array",enum_type,EnumToStringx(enum_type));} 72 74 void SetValue(Vec vec){_error_("Bool param of enum %i (%s) cannot hold a Vec",enum_type,EnumToStringx(enum_type));} 73 75 void SetValue(Mat mat){_error_("Bool param of enum %i (%s) cannot hold a Mat",enum_type,EnumToStringx(enum_type));} -
issm/trunk/src/c/objects/Params/DoubleMatArrayParam.h
r8224 r8600 55 55 void GetParameterValue(int* pinteger){_error_("DoubleMatArray param of enum %i (%s) cannot return an integer",enum_type,EnumToStringx(enum_type));} 56 56 void GetParameterValue(int** pintarray,int* pM){_error_("DoubleMatArray param of enum %i (%s) cannot return an array of integers",enum_type,EnumToStringx(enum_type));} 57 void GetParameterValue(int** pintarray,int* pM,int* pN){_error_("DoubleMatArray param of enum %i (%s) cannot return an array of integers",enum_type,EnumToStringx(enum_type));} 57 58 void GetParameterValue(double* pdouble){_error_("DoubleMatArray param of enum %i (%s) cannot return a double",enum_type,EnumToStringx(enum_type));} 58 59 void GetParameterValue(char** pstring){_error_("DoubleMatArray param of enum %i (%s) cannot return a string",enum_type,EnumToStringx(enum_type));} … … 67 68 void SetValue(bool boolean){_error_("DoubleMatArray param of enum %i (%s) cannot hold a boolean",enum_type,EnumToStringx(enum_type));} 68 69 void SetValue(int integer){_error_("DoubleMatArray param of enum %i (%s) cannot hold an integer",enum_type,EnumToStringx(enum_type));} 69 void SetValue(int* intarray,int M){_error_("DoubleMatArray param of enum %i (%s) cannot hold an int array",enum_type,EnumToStringx(enum_type));}70 70 void SetValue(double scalar){_error_("DoubleMatArray param of enum %i (%s) cannot hold a scalar",enum_type,EnumToStringx(enum_type));} 71 71 void SetValue(char* string){_error_("DoubleMatArray param of enum %i (%s) cannot hold a string",enum_type,EnumToStringx(enum_type));} … … 73 73 void SetValue(double* doublearray,int M){_error_("DoubleMatArray param of enum %i (%s) cannot hold a double vec array",enum_type,EnumToStringx(enum_type));} 74 74 void SetValue(double* doublearray,int M,int N){_error_("DoubleMatArray param of enum %i (%s) cannot hold a double mat array",enum_type,EnumToStringx(enum_type));} 75 void SetValue(int* intarray,int M){_error_("DoubleMatArray param of enum %i (%s) cannot hold a int vec array",enum_type,EnumToStringx(enum_type));} 76 void SetValue(int* intarray,int M,int N){_error_("DoubleMatArray param of enum %i (%s) cannot hold a int mat array",enum_type,EnumToStringx(enum_type));} 75 77 void SetValue(Vec vec){_error_("DoubleMatArray param of enum %i (%s) cannot hold a Vec",enum_type,EnumToStringx(enum_type));} 76 78 void SetValue(Mat mat){_error_("DoubleMatArray param of enum %i (%s) cannot hold a Mat",enum_type,EnumToStringx(enum_type));} -
issm/trunk/src/c/objects/Params/DoubleMatParam.h
r8224 r8600 54 54 void GetParameterValue(int* pinteger){_error_("DoubleMat param of enum %i (%s) cannot return an integer",enum_type,EnumToStringx(enum_type));} 55 55 void GetParameterValue(int** pintarray,int* pM){_error_("DoubleMat param of enum %i (%s) cannot return an array of integers",enum_type,EnumToStringx(enum_type));} 56 void GetParameterValue(int** pintarray,int* pM,int* pN){_error_("DoubleMat param of enum %i (%s) cannot return an array of integers",enum_type,EnumToStringx(enum_type));} 56 57 void GetParameterValue(double* pdouble){_error_("DoubleMat param of enum %i (%s) cannot return a double",enum_type,EnumToStringx(enum_type));} 57 58 void GetParameterValue(char** pstring){_error_("DoubleMat param of enum %i (%s) cannot return a string",enum_type,EnumToStringx(enum_type));} … … 66 67 void SetValue(bool boolean){_error_("DoubleMat param of enum %i (%s) cannot hold a boolean",enum_type,EnumToStringx(enum_type));} 67 68 void SetValue(int integer){_error_("DoubleMat param of enum %i (%s) cannot hold an integer",enum_type,EnumToStringx(enum_type));} 68 void SetValue(int* intarray,int M){_error_("DoubleMat param of enum %i (%s) cannot hold an int array",enum_type,EnumToStringx(enum_type));}69 69 void SetValue(double scalar){_error_("DoubleMat param of enum %i (%s) cannot hold a scalar",enum_type,EnumToStringx(enum_type));} 70 70 void SetValue(char* string){_error_("DoubleMat param of enum %i (%s) cannot hold a string",enum_type,EnumToStringx(enum_type));} … … 72 72 void SetValue(double* doublearray,int M){_error_("DoubleMat param of enum %i (%s) cannot hold a double vec array",enum_type,EnumToStringx(enum_type));} 73 73 void SetValue(double* doublearray,int M,int N); 74 void SetValue(int* intarray,int M){_error_("DoubleMat param of enum %i (%s) cannot hold a int vec array",enum_type,EnumToStringx(enum_type));} 75 void SetValue(int* intarray,int M,int N){_error_("DoubleMat param of enum %i (%s) cannot hold a int mat array",enum_type,EnumToStringx(enum_type));}; 74 76 void SetValue(Vec vec){_error_("DoubleMat param of enum %i (%s) cannot hold a Vec",enum_type,EnumToStringx(enum_type));} 75 77 void SetValue(Mat mat){_error_("DoubleMat param of enum %i (%s) cannot hold a Mat",enum_type,EnumToStringx(enum_type));} -
issm/trunk/src/c/objects/Params/DoubleParam.cpp
r8224 r8600 167 167 } 168 168 /*}}}*/ 169 /*FUNCTION DoubleParam::GetParameterValue(int** pintarray,int* pM,int* pN){{{1*/ 170 void DoubleParam::GetParameterValue(int** pintarray,int* pM,int* pN){ 171 #ifdef _SERIAL_ 172 int* output=NULL; 173 174 output=(int*)xmalloc(1*sizeof(int)); 175 *output=(int)value; 176 177 /*Assign output pointers:*/ 178 if(pM) *pM=1; 179 if(pN) *pN=1; 180 *pintarray=output; 181 #else 182 _error_("Double param of enum %i (%s) cannot return an array of integers",enum_type,EnumToStringx(enum_type)); 183 #endif 184 } 185 /*}}}*/ 169 186 /*FUNCTION DoubleParam::GetParameterValue(double** pdoublearray,int* pM){{{1*/ 170 187 void DoubleParam::GetParameterValue(double** pdoublearray,int* pM){ -
issm/trunk/src/c/objects/Params/DoubleParam.h
r8224 r8600 53 53 void GetParameterValue(int* pinteger); 54 54 void GetParameterValue(int** pintarray,int* pM); 55 void GetParameterValue(int** pintarray,int* pM,int* pN); 55 56 void GetParameterValue(double* pdouble){*pdouble=value;} 56 57 void GetParameterValue(char** pstring){_error_("Double param of enum %i (%s) cannot return a string",enum_type,EnumToStringx(enum_type));} … … 65 66 void SetValue(bool boolean){this->value=(double)boolean;} 66 67 void SetValue(int integer){this->value=(double)integer;} 67 void SetValue(int* intarray,int M){_error_("Double param of enum %i (%s) cannot hold an int array",enum_type,EnumToStringx(enum_type));}68 68 void SetValue(double scalar){this->value=(double)scalar;} 69 69 void SetValue(char* string){_error_("Double param of enum %i (%s) cannot hold a string",enum_type,EnumToStringx(enum_type));} … … 71 71 void SetValue(double* doublearray,int M){_error_("Double param of enum %i (%s) cannot hold a double array",enum_type,EnumToStringx(enum_type));} 72 72 void SetValue(double* pdoublearray,int M,int N){_error_("Double param of enum %i (%s) cannot hold a double array",enum_type,EnumToStringx(enum_type));} 73 void SetValue(int* intarray,int M){_error_("Double param of enum %i (%s) cannot hold a int array",enum_type,EnumToStringx(enum_type));} 74 void SetValue(int* pintarray,int M,int N){_error_("Double param of enum %i (%s) cannot hold a int array",enum_type,EnumToStringx(enum_type));} 73 75 void SetValue(Vec vec){_error_("Double param of enum %i (%s) cannot hold a Vec",enum_type,EnumToStringx(enum_type));} 74 76 void SetValue(Mat mat){_error_("Double param of enum %i (%s) cannot hold a Mat",enum_type,EnumToStringx(enum_type));} -
issm/trunk/src/c/objects/Params/DoubleVecParam.h
r8224 r8600 53 53 void GetParameterValue(int* pinteger){_error_("DoubleVec param of enum %i (%s) cannot return an integer",enum_type,EnumToStringx(enum_type));} 54 54 void GetParameterValue(int** pintarray,int* pM); 55 void GetParameterValue(int** pintarray,int* pM,int* pN){_error_("DoubleMat param of enum %i (%s) cannot return a string",enum_type,EnumToStringx(enum_type));}; 55 56 void GetParameterValue(double* pdouble){_error_("DoubleVec param of enum %i (%s) cannot return a double",enum_type,EnumToStringx(enum_type));} 56 57 void GetParameterValue(char** pstring){_error_("DoubleVec param of enum %i (%s) cannot return a string",enum_type,EnumToStringx(enum_type));} … … 65 66 void SetValue(bool boolean){_error_("DoubleVec param of enum %i (%s) cannot hold a boolean",enum_type,EnumToStringx(enum_type));} 66 67 void SetValue(int integer){_error_("DoubleVec param of enum %i (%s) cannot hold an integer",enum_type,EnumToStringx(enum_type));} 67 void SetValue(int* intarray,int M){_error_("DoubleVec param of enum %i (%s) cannot hold an int array",enum_type,EnumToStringx(enum_type));}68 68 void SetValue(double scalar){_error_("DoubleVec param of enum %i (%s) cannot hold a scalar",enum_type,EnumToStringx(enum_type));} 69 69 void SetValue(char* string){_error_("DoubleVec param of enum %i (%s) cannot hold a string",enum_type,EnumToStringx(enum_type));} … … 71 71 void SetValue(double* doublearray,int M); 72 72 void SetValue(double* pdoublearray,int M,int N){_error_("DoubleVec param of enum %i (%s) cannot hold a double mat array",enum_type,EnumToStringx(enum_type));} 73 void SetValue(int* intarray,int M){_error_("DoubleVec param of enum %i (%s) cannot hold a int mat array",enum_type,EnumToStringx(enum_type));}; 74 void SetValue(int* pintarray,int M,int N){_error_("DoubleVec param of enum %i (%s) cannot hold a int mat array",enum_type,EnumToStringx(enum_type));} 73 75 void SetValue(Vec vec){_error_("DoubleVec param of enum %i (%s) cannot hold a Vec",enum_type,EnumToStringx(enum_type));} 74 76 void SetValue(Mat mat){_error_("DoubleVec param of enum %i (%s) cannot hold a Mat",enum_type,EnumToStringx(enum_type));} -
issm/trunk/src/c/objects/Params/FileParam.h
r8224 r8600 52 52 void GetParameterValue(int* pinteger){_error_("FileParam of enum %i (%s) cannot return a double",enum_type,EnumToStringx(enum_type));} 53 53 void GetParameterValue(int** pintarray,int* pM){_error_("FileParam of enum %i (%s) cannot return a double",enum_type,EnumToStringx(enum_type));} 54 void GetParameterValue(int** pintarray,int* pM,int* pN){_error_("FileParam of enum %i (%s) cannot return a double",enum_type,EnumToStringx(enum_type));} 54 55 void GetParameterValue(double* pdouble){_error_("FileParam of enum %i (%s) cannot return a double",enum_type,EnumToStringx(enum_type));} 55 56 void GetParameterValue(char** pstring){_error_("FileParam of enum %i (%s) cannot return a string",enum_type,EnumToStringx(enum_type));} … … 64 65 void SetValue(bool boolean){_error_("FileParam of enum %i (%s) cannot hold a string",enum_type,EnumToStringx(enum_type));} 65 66 void SetValue(int integer){_error_("FileParam of enum %i (%s) cannot hold a string",enum_type,EnumToStringx(enum_type));} 66 void SetValue(int* intarray,int M){_error_("FileParam of enum %i (%s) cannot hold a string",enum_type,EnumToStringx(enum_type));}67 67 void SetValue(double scalar){_error_("FileParam of enum %i (%s) cannot hold a string",enum_type,EnumToStringx(enum_type));} 68 68 void SetValue(char* string){_error_("FileParam of enum %i (%s) cannot hold a string",enum_type,EnumToStringx(enum_type));} … … 70 70 void SetValue(double* doublearray,int M){_error_("FileParam of enum %i (%s) cannot hold a double array",enum_type,EnumToStringx(enum_type));} 71 71 void SetValue(double* pdoublearray,int M,int N){_error_("FileParam of enum %i (%s) cannot hold a double array",enum_type,EnumToStringx(enum_type));} 72 void SetValue(int* intarray,int M){_error_("FileParam of enum %i (%s) cannot hold a int array",enum_type,EnumToStringx(enum_type));} 73 void SetValue(int* pintarray,int M,int N){_error_("FileParam of enum %i (%s) cannot hold a int array",enum_type,EnumToStringx(enum_type));} 72 74 void SetValue(Vec vec){_error_("FileParam of enum %i (%s) cannot hold a Vec",enum_type,EnumToStringx(enum_type));} 73 75 void SetValue(Mat mat){_error_("FileParam of enum %i (%s) cannot hold a Mat",enum_type,EnumToStringx(enum_type));} -
issm/trunk/src/c/objects/Params/IntParam.h
r8224 r8600 53 53 void GetParameterValue(int* pinteger){*pinteger=value;} 54 54 void GetParameterValue(int** pintarray,int* pM){_error_("Int param of enum %i (%s) cannot return an array of integers",enum_type,EnumToStringx(enum_type));} 55 void GetParameterValue(int** pintarray,int* pM,int* pN){_error_("Int param of enum %i (%s) cannot return an array of integers",enum_type,EnumToStringx(enum_type));} 55 56 void GetParameterValue(double* pdouble){_error_("Int param of enum %i (%s) cannot return a double",enum_type,EnumToStringx(enum_type));} 56 57 void GetParameterValue(char** pstring){_error_("Int param of enum %i (%s) cannot return a string",enum_type,EnumToStringx(enum_type));} … … 66 67 void SetValue(int integer){this->value=integer;} 67 68 void SetValue(int* intarray,int M){_error_("Int param of enum %i (%s) cannot hold an int array",enum_type,EnumToStringx(enum_type));} 69 void SetValue(int* intarray,int M,int N){_error_("Int param of enum %i (%s) cannot hold an int array",enum_type,EnumToStringx(enum_type));} 68 70 void SetValue(double scalar){this->value=(int)scalar;} 69 71 void SetValue(char* string){_error_("Int param of enum %i (%s) cannot hold a string",enum_type,EnumToStringx(enum_type));} -
issm/trunk/src/c/objects/Params/IntVecParam.h
r8224 r8600 54 54 void GetParameterValue(int* pinteger){_error_("IntVec param of enum %i (%s) cannot return an integer",enum_type,EnumToStringx(enum_type));} 55 55 void GetParameterValue(int** pintarray,int* pM); 56 void GetParameterValue(int** pintarray,int* pM,int* pN){_error_("IntVec param of enum %i (%s) cannot return a string",enum_type,EnumToStringx(enum_type));} 56 57 void GetParameterValue(double* pdouble){_error_("IntVec param of enum %i (%s) cannot return a double",enum_type,EnumToStringx(enum_type));} 57 58 void GetParameterValue(char** pstring){_error_("IntVec param of enum %i (%s) cannot return a string",enum_type,EnumToStringx(enum_type));} … … 66 67 void SetValue(bool boolean){_error_("IntVec param of enum %i (%s) cannot hold a boolean",enum_type,EnumToStringx(enum_type));} 67 68 void SetValue(int integer){_error_("IntVec param of enum %i (%s) cannot hold an integer",enum_type,EnumToStringx(enum_type));} 68 void SetValue(int* intarray,int M);69 69 void SetValue(double scalar){_error_("IntVec param of enum %i (%s) cannot hold a scalar",enum_type,EnumToStringx(enum_type));} 70 70 void SetValue(char* string){_error_("IntVec param of enum %i (%s) cannot hold a string",enum_type,EnumToStringx(enum_type));} … … 72 72 void SetValue(double* doublearray,int M){_error_("IntVec param of enum %i (%s) cannot hold a double mat array",enum_type,EnumToStringx(enum_type));} 73 73 void SetValue(double* pdoublearray,int M,int N){_error_("IntVec param of enum %i (%s) cannot hold a double mat array",enum_type,EnumToStringx(enum_type));} 74 void SetValue(int* intarray,int M); 75 void SetValue(int* pintarray,int M,int N){_error_("IntVec param of enum %i (%s) cannot hold a int mat array",enum_type,EnumToStringx(enum_type));} 74 76 void SetValue(Vec vec){_error_("IntVec param of enum %i (%s) cannot hold a Vec",enum_type,EnumToStringx(enum_type));} 75 77 void SetValue(Mat mat){_error_("IntVec param of enum %i (%s) cannot hold a Mat",enum_type,EnumToStringx(enum_type));} -
issm/trunk/src/c/objects/Params/Param.h
r7737 r8600 29 29 virtual ~Param(){}; 30 30 31 /*Virtual functions: {{{1*/31 /*Virtual functions:*/ 32 32 virtual int EnumType()=0; 33 33 virtual void GetParameterValue(bool* pbool)=0; 34 34 virtual void GetParameterValue(int* pinteger)=0; 35 35 virtual void GetParameterValue(int** pintarray,int* pM)=0; 36 virtual void GetParameterValue(int** pintarray,int* pM,int* pN)=0; 36 37 virtual void GetParameterValue(double* pdouble)=0; 37 38 virtual void GetParameterValue(char** pstring)=0; … … 46 47 virtual void SetValue(bool boolean)=0; 47 48 virtual void SetValue(int integer)=0; 48 virtual void SetValue(int* intarray,int M)=0;49 49 virtual void SetValue(double scalar)=0; 50 50 virtual void SetValue(char* string)=0; … … 52 52 virtual void SetValue(double* doublearray,int M)=0; 53 53 virtual void SetValue(double* pdoublearray,int M,int N)=0; 54 virtual void SetValue(int* intarray,int M)=0; 55 virtual void SetValue(int* pintarray,int M,int N)=0; 54 56 virtual void SetValue(Vec vec)=0; 55 57 virtual void SetValue(Mat mat)=0; … … 61 63 virtual void SetMatlabField(mxArray* dataref)=0; 62 64 #endif 63 /*}}}*/64 65 65 }; 66 66 #endif -
issm/trunk/src/c/objects/Params/PetscMatParam.h
r8224 r8600 53 53 void GetParameterValue(int* pinteger){_error_("PetscMat param of enum %i (%s) cannot return an integer",enum_type,EnumToStringx(enum_type));} 54 54 void GetParameterValue(int** pintarray,int* pM){_error_("PetscMat param of enum %i (%s) cannot return an array of integers",enum_type,EnumToStringx(enum_type));} 55 void GetParameterValue(int** pintarray,int* pM,int* pN){_error_("PetscMat param of enum %i (%s) cannot return an array of integers",enum_type,EnumToStringx(enum_type));} 55 56 void GetParameterValue(double* pdouble){_error_("PetscMat param of enum %i (%s) cannot return a double",enum_type,EnumToStringx(enum_type));} 56 57 void GetParameterValue(char** pstring){_error_("PetscMat param of enum %i (%s) cannot return a string",enum_type,EnumToStringx(enum_type));} … … 65 66 void SetValue(bool boolean){_error_("PetscMat param of enum %i (%s) cannot hold a boolean",enum_type,EnumToStringx(enum_type));} 66 67 void SetValue(int integer){_error_("PetscMat param of enum %i (%s) cannot hold an integer",enum_type,EnumToStringx(enum_type));} 67 void SetValue(int* intarray,int M){_error_("PetscMat param of enum %i (%s) cannot hold an int array",enum_type,EnumToStringx(enum_type));}68 68 void SetValue(double scalar){_error_("PetscMat param of enum %i (%s) cannot hold a scalar",enum_type,EnumToStringx(enum_type));} 69 69 void SetValue(char* string){_error_("PetscMat param of enum %i (%s) cannot hold a string",enum_type,EnumToStringx(enum_type));} … … 71 71 void SetValue(double* doublearray,int M){_error_("PetscMat param of enum %i (%s) cannot hold a double array",enum_type,EnumToStringx(enum_type));} 72 72 void SetValue(double* pdoublearray,int M,int N){_error_("PetscMat param of enum %i (%s) cannot hold a double array",enum_type,EnumToStringx(enum_type));} 73 void SetValue(int* intarray,int M){_error_("PetscMat param of enum %i (%s) cannot hold a int array",enum_type,EnumToStringx(enum_type));} 74 void SetValue(int* pintarray,int M,int N){_error_("PetscMat param of enum %i (%s) cannot hold a int array",enum_type,EnumToStringx(enum_type));} 73 75 void SetValue(Vec vec){_error_("PetscMat param of enum %i (%s) cannot hold a Vec",enum_type,EnumToStringx(enum_type));} 74 76 void SetValue(Mat mat); -
issm/trunk/src/c/objects/Params/PetscVecParam.h
r8224 r8600 53 53 void GetParameterValue(int* pinteger){_error_("PetscVec param of enum %i (%s) cannot return an integer",enum_type,EnumToStringx(enum_type));} 54 54 void GetParameterValue(int** pintarray,int* pM){_error_("PetscVec param of enum %i (%s) cannot return an array of integers",enum_type,EnumToStringx(enum_type));} 55 void GetParameterValue(int** pintarray,int* pM,int* pN){_error_("PetscVec param of enum %i (%s) cannot return an array of integers",enum_type,EnumToStringx(enum_type));} 55 56 void GetParameterValue(double* pdouble){_error_("PetscVec param of enum %i (%s) cannot return a double",enum_type,EnumToStringx(enum_type));} 56 57 void GetParameterValue(char** pstring){_error_("PetscVec param of enum %i (%s) cannot return a string",enum_type,EnumToStringx(enum_type));} … … 65 66 void SetValue(bool boolean){_error_("PetscVec of enum %i (%s) cannot hold a boolean",enum_type,EnumToStringx(enum_type));} 66 67 void SetValue(int integer){_error_("PetscVec of enum %i (%s) cannot hold an integer",enum_type,EnumToStringx(enum_type));} 67 void SetValue(int* intarray,int M){_error_("PetscVec of enum %i (%s) cannot hold an int array",enum_type,EnumToStringx(enum_type));}68 68 void SetValue(double scalar){_error_("PetscVec of enum %i (%s) cannot hold a scalar",enum_type,EnumToStringx(enum_type));} 69 69 void SetValue(char* string){_error_("PetscVec of enum %i (%s) cannot hold a string",enum_type,EnumToStringx(enum_type));} … … 71 71 void SetValue(double* doublearray,int M){_error_("PetscVec of enum %i (%s) cannot hold a double array",enum_type,EnumToStringx(enum_type));} 72 72 void SetValue(double* pdoublearray,int M,int N){_error_("PetscVec of enum %i (%s) cannot hold a double array",enum_type,EnumToStringx(enum_type));} 73 void SetValue(int* intarray,int M){_error_("PetscVec of enum %i (%s) cannot hold a int array",enum_type,EnumToStringx(enum_type));} 74 void SetValue(int* pintarray,int M,int N){_error_("PetscVec of enum %i (%s) cannot hold a int array",enum_type,EnumToStringx(enum_type));} 73 75 void SetValue(Vec vec); 74 76 void SetValue(Mat mat){_error_("PetscVec of enum %i (%s) cannot hold a Mat",enum_type,EnumToStringx(enum_type));} -
issm/trunk/src/c/objects/Params/StringArrayParam.h
r8224 r8600 55 55 void GetParameterValue(int* pinteger){_error_("StringArray param of enum %i (%s) cannot return an integer",enum_type,EnumToStringx(enum_type));} 56 56 void GetParameterValue(int** pintarray,int* pM){_error_("StringArray param of enum %i (%s) cannot return an array of integers",enum_type,EnumToStringx(enum_type));} 57 void GetParameterValue(int** pintarray,int* pM,int* pN){_error_("StringArray param of enum %i (%s) cannot return an array of integers",enum_type,EnumToStringx(enum_type));} 57 58 void GetParameterValue(double* pdouble){_error_("StringArray param of enum %i (%s) cannot return a double",enum_type,EnumToStringx(enum_type));} 58 59 void GetParameterValue(char** pstring){_error_("StringArray param of enum %i (%s) cannot return a string",enum_type,EnumToStringx(enum_type));} … … 67 68 void SetValue(bool boolean){_error_("StringArray param of enum %i (%s) cannot hold a boolean",enum_type,EnumToStringx(enum_type));} 68 69 void SetValue(int integer){_error_("StringArray param of enum %i (%s) cannot hold an integer",enum_type,EnumToStringx(enum_type));} 69 void SetValue(int* intarray,int M){_error_("StringArray param of enum %i (%s) cannot hold an int array",enum_type,EnumToStringx(enum_type));}70 70 void SetValue(double scalar){_error_("StringArray param of enum %i (%s) cannot hold a scalar",enum_type,EnumToStringx(enum_type));} 71 71 void SetValue(char* string){_error_("StringArray param of enum %i (%s) cannot hold a string",enum_type,EnumToStringx(enum_type));} … … 73 73 void SetValue(double* doublearray,int M){_error_("StringArray param of enum %i (%s) cannot hold a double array",enum_type,EnumToStringx(enum_type));} 74 74 void SetValue(double* pdoublearray,int M,int N){_error_("StringArray param of enum %i (%s) cannot hold a double array",enum_type,EnumToStringx(enum_type));} 75 void SetValue(int* intarray,int M){_error_("StringArray param of enum %i (%s) cannot hold a int array",enum_type,EnumToStringx(enum_type));} 76 void SetValue(int* pintarray,int M,int N){_error_("StringArray param of enum %i (%s) cannot hold a int array",enum_type,EnumToStringx(enum_type));} 75 77 void SetValue(Vec vec){_error_("StringArray param of enum %i (%s) cannot hold a Vec",enum_type,EnumToStringx(enum_type));} 76 78 void SetValue(Mat mat){_error_("StringArray param of enum %i (%s) cannot hold a Mat",enum_type,EnumToStringx(enum_type));} -
issm/trunk/src/c/objects/Params/StringParam.h
r8224 r8600 53 53 void GetParameterValue(int* pinteger){_error_("String param of enum %i (%s) cannot return an integer",enum_type,EnumToStringx(enum_type));} 54 54 void GetParameterValue(int** pintarray,int* pM){_error_("String param of enum %i (%s) cannot return an array of integers",enum_type,EnumToStringx(enum_type));} 55 void GetParameterValue(int** pintarray,int* pM,int* pN){_error_("String param of enum %i (%s) cannot return an array of integers",enum_type,EnumToStringx(enum_type));} 55 56 void GetParameterValue(double* pdouble){_error_("String param of enum %i (%s) cannot return a double",enum_type,EnumToStringx(enum_type));} 56 57 void GetParameterValue(char** pstring); … … 65 66 void SetValue(bool boolean){_error_("String param of enum %i (%s) cannot hold a boolean",enum_type,EnumToStringx(enum_type));} 66 67 void SetValue(int integer){_error_("String param of enum %i (%s) cannot hold an integer",enum_type,EnumToStringx(enum_type));} 67 void SetValue(int* intarray,int M){_error_("String param of enum %i (%s) cannot hold an int array",enum_type,EnumToStringx(enum_type));}68 68 void SetValue(double scalar){_error_("String param of enum %i (%s) cannot hold a scalar",enum_type,EnumToStringx(enum_type));} 69 69 void SetValue(char* string); … … 71 71 void SetValue(double* doublearray,int M){_error_("String param of enum %i (%s) cannot hold a double array",enum_type,EnumToStringx(enum_type));} 72 72 void SetValue(double* pdoublearray,int M,int N){_error_("String param of enum %i (%s) cannot hold a double array",enum_type,EnumToStringx(enum_type));} 73 void SetValue(int* intarray,int M){_error_("String param of enum %i (%s) cannot hold a int array",enum_type,EnumToStringx(enum_type));} 74 void SetValue(int* pintarray,int M,int N){_error_("String param of enum %i (%s) cannot hold a int array",enum_type,EnumToStringx(enum_type));} 73 75 void SetValue(Vec vec){_error_("String param of enum %i (%s) cannot hold a Vec",enum_type,EnumToStringx(enum_type));} 74 76 void SetValue(Mat mat){_error_("String param of enum %i (%s) cannot hold a Mat",enum_type,EnumToStringx(enum_type));}
Note:
See TracChangeset
for help on using the changeset viewer.