Changeset 8600


Ignore:
Timestamp:
06/10/11 13:43:35 (14 years ago)
Author:
Mathieu Morlighem
Message:

Added IntMatParam

Location:
issm/trunk/src/c
Files:
2 added
20 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/Container/Parameters.cpp

    r8376 r8600  
    161161}
    162162/*}}}*/
     163/*FUNCTION Parameters::FindParam(int** pintarray,int* pM,int* pN,int enum_type){{{1*/
     164void 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/*}}}*/
    163181/*FUNCTION Parameters::FindParam(double** pdoublearray,int* pM,int enum_type){{{1*/
    164182void Parameters::FindParam(double** pdoublearray,int* pM, int enum_type){ _assert_(this);
     
    352370}
    353371/*}}}*/
     372/*FUNCTION Parameters::SetParam(int* intarray,int M,int enum_type);{{{1*/
     373void   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*/
     385void   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/*}}}*/
    354396/*FUNCTION Parameters::SetParam(Vec vector,int enum_type);{{{1*/
    355397void   Parameters::SetParam(Vec vector,int enum_type){
  • issm/trunk/src/c/Container/Parameters.h

    r8263 r8600  
    3434                void  FindParam(char*** pstringarray,int* pM,int enum_type);
    3535                void  FindParam(int** pintarray,int* pM,int enum_type);
     36                void  FindParam(int** pintarray,int* pM,int* PN,int enum_type);
    3637                void  FindParam(double** pdoublearray,int* pM,int enum_type);
    3738                void  FindParam(double** pdoublearray,int* pM,int* pN,int enum_type);
     
    4849                void  SetParam(double* doublearray,int M,int enum_type);
    4950                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);
    5053                void  SetParam(Vec vec,int enum_type);
    5154                void  SetParam(Mat mat,int enum_type);
  • issm/trunk/src/c/EnumDefinitions/EnumDefinitions.h

    r8592 r8600  
    456456        ThicknessAbsGradientEnum,
    457457        VelAbsGradientEnum,
    458         DatasetInputEnum
     458        DatasetInputEnum,
     459        NumResponsesEnum,
     460        StepResponsesEnum,
     461        IntMatParamEnum
    459462};
    460463
  • issm/trunk/src/c/Makefile.am

    r8592 r8600  
    255255                                        ./objects/Params/IntVecParam.cpp\
    256256                                        ./objects/Params/IntVecParam.h\
     257                                        ./objects/Params/IntMatParam.cpp\
     258                                        ./objects/Params/IntMatParam.h\
    257259                                        ./objects/Params/DoubleParam.cpp\
    258260                                        ./objects/Params/DoubleParam.h\
     
    924926                                        ./objects/Params/IntVecParam.cpp\
    925927                                        ./objects/Params/IntVecParam.h\
     928                                        ./objects/Params/IntMatParam.cpp\
     929                                        ./objects/Params/IntMatParam.h\
    926930                                        ./objects/Params/DoubleParam.cpp\
    927931                                        ./objects/Params/DoubleParam.h\
  • issm/trunk/src/c/modules/EnumToStringx/EnumToStringx.cpp

    r8592 r8600  
    400400                case VelAbsGradientEnum : return "VelAbsGradient";
    401401                case DatasetInputEnum : return "DatasetInput";
     402                case NumResponsesEnum : return "NumResponses";
     403                case StepResponsesEnum : return "StepResponses";
     404                case IntMatParamEnum : return "IntMatParam";
    402405                default : return "unknown";
    403406
  • issm/trunk/src/c/modules/StringToEnumx/StringToEnumx.cpp

    r8592 r8600  
    398398        else if (strcmp(name,"VelAbsGradient")==0) return VelAbsGradientEnum;
    399399        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;
    400403        else _error_("Enum %s not found",name);
    401404
  • issm/trunk/src/c/objects/Params/BoolParam.h

    r8224 r8600  
    5252                void  GetParameterValue(int* pinteger){_error_("Bool param of enum %i (%s) cannot return an integer",enum_type,EnumToStringx(enum_type));}
    5353                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));}
    5455                void  GetParameterValue(double* pdouble){_error_("Bool param of enum %i (%s) cannot return a double",enum_type,EnumToStringx(enum_type));}
    5556                void  GetParameterValue(char** pstring){_error_("Bool param of enum %i (%s) cannot return a string",enum_type,EnumToStringx(enum_type));}
     
    6465                void  SetValue(bool boolean){this->value=boolean;}
    6566                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));}
    6767                void  SetValue(double scalar){this->value=(bool)scalar;}
    6868                void  SetValue(char* string){_error_("Bool param of enum %i (%s) cannot hold a string",enum_type,EnumToStringx(enum_type));}
     
    7070                void  SetValue(double* doublearray,int M){_error_("Bool param of enum %i (%s) cannot hold a double array",enum_type,EnumToStringx(enum_type));}
    7171                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));}
    7274                void  SetValue(Vec vec){_error_("Bool param of enum %i (%s) cannot hold a Vec",enum_type,EnumToStringx(enum_type));}
    7375                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  
    5555                void  GetParameterValue(int* pinteger){_error_("DoubleMatArray param of enum %i (%s) cannot return an integer",enum_type,EnumToStringx(enum_type));}
    5656                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));}
    5758                void  GetParameterValue(double* pdouble){_error_("DoubleMatArray param of enum %i (%s) cannot return a double",enum_type,EnumToStringx(enum_type));}
    5859                void  GetParameterValue(char** pstring){_error_("DoubleMatArray param of enum %i (%s) cannot return a string",enum_type,EnumToStringx(enum_type));}
     
    6768                void  SetValue(bool boolean){_error_("DoubleMatArray param of enum %i (%s) cannot hold a boolean",enum_type,EnumToStringx(enum_type));}
    6869                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));}
    7070                void  SetValue(double scalar){_error_("DoubleMatArray param of enum %i (%s) cannot hold a scalar",enum_type,EnumToStringx(enum_type));}
    7171                void  SetValue(char* string){_error_("DoubleMatArray param of enum %i (%s) cannot hold a string",enum_type,EnumToStringx(enum_type));}
     
    7373                void  SetValue(double* doublearray,int M){_error_("DoubleMatArray param of enum %i (%s) cannot hold a double vec array",enum_type,EnumToStringx(enum_type));}
    7474                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));}
    7577                void  SetValue(Vec vec){_error_("DoubleMatArray param of enum %i (%s) cannot hold a Vec",enum_type,EnumToStringx(enum_type));}
    7678                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  
    5454                void  GetParameterValue(int* pinteger){_error_("DoubleMat param of enum %i (%s) cannot return an integer",enum_type,EnumToStringx(enum_type));}
    5555                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));}
    5657                void  GetParameterValue(double* pdouble){_error_("DoubleMat param of enum %i (%s) cannot return a double",enum_type,EnumToStringx(enum_type));}
    5758                void  GetParameterValue(char** pstring){_error_("DoubleMat param of enum %i (%s) cannot return a string",enum_type,EnumToStringx(enum_type));}
     
    6667                void  SetValue(bool boolean){_error_("DoubleMat param of enum %i (%s) cannot hold a boolean",enum_type,EnumToStringx(enum_type));}
    6768                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));}
    6969                void  SetValue(double scalar){_error_("DoubleMat param of enum %i (%s) cannot hold a scalar",enum_type,EnumToStringx(enum_type));}
    7070                void  SetValue(char* string){_error_("DoubleMat param of enum %i (%s) cannot hold a string",enum_type,EnumToStringx(enum_type));}
     
    7272                void  SetValue(double* doublearray,int M){_error_("DoubleMat param of enum %i (%s) cannot hold a double vec array",enum_type,EnumToStringx(enum_type));}
    7373                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));};
    7476                void  SetValue(Vec vec){_error_("DoubleMat param of enum %i (%s) cannot hold a Vec",enum_type,EnumToStringx(enum_type));}
    7577                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  
    167167}
    168168/*}}}*/
     169/*FUNCTION DoubleParam::GetParameterValue(int** pintarray,int* pM,int* pN){{{1*/
     170void 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/*}}}*/
    169186/*FUNCTION DoubleParam::GetParameterValue(double** pdoublearray,int* pM){{{1*/
    170187void DoubleParam::GetParameterValue(double** pdoublearray,int* pM){
  • issm/trunk/src/c/objects/Params/DoubleParam.h

    r8224 r8600  
    5353                void  GetParameterValue(int* pinteger);
    5454                void  GetParameterValue(int** pintarray,int* pM);
     55                void  GetParameterValue(int** pintarray,int* pM,int* pN);
    5556                void  GetParameterValue(double* pdouble){*pdouble=value;}
    5657                void  GetParameterValue(char** pstring){_error_("Double param of enum %i (%s) cannot return a string",enum_type,EnumToStringx(enum_type));}
     
    6566                void  SetValue(bool boolean){this->value=(double)boolean;}
    6667                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));}
    6868                void  SetValue(double scalar){this->value=(double)scalar;}
    6969                void  SetValue(char* string){_error_("Double param of enum %i (%s) cannot hold a string",enum_type,EnumToStringx(enum_type));}
     
    7171                void  SetValue(double* doublearray,int M){_error_("Double param of enum %i (%s) cannot hold a double array",enum_type,EnumToStringx(enum_type));}
    7272                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));}
    7375                void  SetValue(Vec vec){_error_("Double param of enum %i (%s) cannot hold a Vec",enum_type,EnumToStringx(enum_type));}
    7476                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  
    5353                void  GetParameterValue(int* pinteger){_error_("DoubleVec param of enum %i (%s) cannot return an integer",enum_type,EnumToStringx(enum_type));}
    5454                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));};
    5556                void  GetParameterValue(double* pdouble){_error_("DoubleVec param of enum %i (%s) cannot return a double",enum_type,EnumToStringx(enum_type));}
    5657                void  GetParameterValue(char** pstring){_error_("DoubleVec param of enum %i (%s) cannot return a string",enum_type,EnumToStringx(enum_type));}
     
    6566                void  SetValue(bool boolean){_error_("DoubleVec param of enum %i (%s) cannot hold a boolean",enum_type,EnumToStringx(enum_type));}
    6667                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));}
    6868                void  SetValue(double scalar){_error_("DoubleVec param of enum %i (%s) cannot hold a scalar",enum_type,EnumToStringx(enum_type));}
    6969                void  SetValue(char* string){_error_("DoubleVec param of enum %i (%s) cannot hold a string",enum_type,EnumToStringx(enum_type));}
     
    7171                void  SetValue(double* doublearray,int M);
    7272                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));}
    7375                void  SetValue(Vec vec){_error_("DoubleVec param of enum %i (%s) cannot hold a Vec",enum_type,EnumToStringx(enum_type));}
    7476                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  
    5252                void  GetParameterValue(int* pinteger){_error_("FileParam of enum %i (%s) cannot return a double",enum_type,EnumToStringx(enum_type));}
    5353                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));}
    5455                void  GetParameterValue(double* pdouble){_error_("FileParam of enum %i (%s) cannot return a double",enum_type,EnumToStringx(enum_type));}
    5556                void  GetParameterValue(char** pstring){_error_("FileParam of enum %i (%s) cannot return a string",enum_type,EnumToStringx(enum_type));}
     
    6465                void  SetValue(bool boolean){_error_("FileParam of enum %i (%s) cannot hold a string",enum_type,EnumToStringx(enum_type));}
    6566                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));}
    6767                void  SetValue(double scalar){_error_("FileParam of enum %i (%s) cannot hold a string",enum_type,EnumToStringx(enum_type));}
    6868                void  SetValue(char* string){_error_("FileParam of enum %i (%s) cannot hold a string",enum_type,EnumToStringx(enum_type));}
     
    7070                void  SetValue(double* doublearray,int M){_error_("FileParam of enum %i (%s) cannot hold a double array",enum_type,EnumToStringx(enum_type));}
    7171                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));}
    7274                void  SetValue(Vec vec){_error_("FileParam of enum %i (%s) cannot hold a Vec",enum_type,EnumToStringx(enum_type));}
    7375                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  
    5353                void  GetParameterValue(int* pinteger){*pinteger=value;}
    5454                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));}
    5556                void  GetParameterValue(double* pdouble){_error_("Int param of enum %i (%s) cannot return a double",enum_type,EnumToStringx(enum_type));}
    5657                void  GetParameterValue(char** pstring){_error_("Int param of enum %i (%s) cannot return a string",enum_type,EnumToStringx(enum_type));}
     
    6667                void  SetValue(int integer){this->value=integer;}
    6768                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));}
    6870                void  SetValue(double scalar){this->value=(int)scalar;}
    6971                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  
    5454                void  GetParameterValue(int* pinteger){_error_("IntVec param of enum %i (%s) cannot return an integer",enum_type,EnumToStringx(enum_type));}
    5555                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));}
    5657                void  GetParameterValue(double* pdouble){_error_("IntVec param of enum %i (%s) cannot return a double",enum_type,EnumToStringx(enum_type));}
    5758                void  GetParameterValue(char** pstring){_error_("IntVec param of enum %i (%s) cannot return a string",enum_type,EnumToStringx(enum_type));}
     
    6667                void  SetValue(bool boolean){_error_("IntVec param of enum %i (%s) cannot hold a boolean",enum_type,EnumToStringx(enum_type));}
    6768                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);
    6969                void  SetValue(double scalar){_error_("IntVec param of enum %i (%s) cannot hold a scalar",enum_type,EnumToStringx(enum_type));}
    7070                void  SetValue(char* string){_error_("IntVec param of enum %i (%s) cannot hold a string",enum_type,EnumToStringx(enum_type));}
     
    7272                void  SetValue(double* doublearray,int M){_error_("IntVec param of enum %i (%s) cannot hold a double mat array",enum_type,EnumToStringx(enum_type));}
    7373                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));}
    7476                void  SetValue(Vec vec){_error_("IntVec param of enum %i (%s) cannot hold a Vec",enum_type,EnumToStringx(enum_type));}
    7577                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  
    2929                virtual        ~Param(){};
    3030
    31                 /*Virtual functions:{{{1*/
     31                /*Virtual functions:*/
    3232                virtual int   EnumType()=0;
    3333                virtual void  GetParameterValue(bool* pbool)=0;
    3434                virtual void  GetParameterValue(int* pinteger)=0;
    3535                virtual void  GetParameterValue(int** pintarray,int* pM)=0;
     36                virtual void  GetParameterValue(int** pintarray,int* pM,int* pN)=0;
    3637                virtual void  GetParameterValue(double* pdouble)=0;
    3738                virtual void  GetParameterValue(char** pstring)=0;
     
    4647                virtual void  SetValue(bool boolean)=0;
    4748                virtual void  SetValue(int integer)=0;
    48                 virtual void  SetValue(int* intarray,int M)=0;
    4949                virtual void  SetValue(double scalar)=0;
    5050                virtual void  SetValue(char* string)=0;
     
    5252                virtual void  SetValue(double* doublearray,int M)=0;
    5353                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;
    5456                virtual void  SetValue(Vec vec)=0;
    5557                virtual void  SetValue(Mat mat)=0;
     
    6163                virtual void  SetMatlabField(mxArray* dataref)=0;
    6264                #endif
    63                 /*}}}*/
    64 
    6565};
    6666#endif
  • issm/trunk/src/c/objects/Params/PetscMatParam.h

    r8224 r8600  
    5353                void  GetParameterValue(int* pinteger){_error_("PetscMat param of enum %i (%s) cannot return an integer",enum_type,EnumToStringx(enum_type));}
    5454                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));}
    5556                void  GetParameterValue(double* pdouble){_error_("PetscMat param of enum %i (%s) cannot return a double",enum_type,EnumToStringx(enum_type));}
    5657                void  GetParameterValue(char** pstring){_error_("PetscMat param of enum %i (%s) cannot return a string",enum_type,EnumToStringx(enum_type));}
     
    6566                void  SetValue(bool boolean){_error_("PetscMat param of enum %i (%s) cannot hold a boolean",enum_type,EnumToStringx(enum_type));}
    6667                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));}
    6868                void  SetValue(double scalar){_error_("PetscMat param of enum %i (%s) cannot hold a scalar",enum_type,EnumToStringx(enum_type));}
    6969                void  SetValue(char* string){_error_("PetscMat param of enum %i (%s) cannot hold a string",enum_type,EnumToStringx(enum_type));}
     
    7171                void  SetValue(double* doublearray,int M){_error_("PetscMat param of enum %i (%s) cannot hold a double array",enum_type,EnumToStringx(enum_type));}
    7272                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));}
    7375                void  SetValue(Vec vec){_error_("PetscMat param of enum %i (%s) cannot hold a Vec",enum_type,EnumToStringx(enum_type));}
    7476                void  SetValue(Mat mat);
  • issm/trunk/src/c/objects/Params/PetscVecParam.h

    r8224 r8600  
    5353                void  GetParameterValue(int* pinteger){_error_("PetscVec param of enum %i (%s) cannot return an integer",enum_type,EnumToStringx(enum_type));}
    5454                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));}
    5556                void  GetParameterValue(double* pdouble){_error_("PetscVec param of enum %i (%s) cannot return a double",enum_type,EnumToStringx(enum_type));}
    5657                void  GetParameterValue(char** pstring){_error_("PetscVec param of enum %i (%s) cannot return a string",enum_type,EnumToStringx(enum_type));}
     
    6566                void  SetValue(bool boolean){_error_("PetscVec of enum %i (%s) cannot hold a boolean",enum_type,EnumToStringx(enum_type));}
    6667                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));}
    6868                void  SetValue(double scalar){_error_("PetscVec of enum %i (%s) cannot hold a scalar",enum_type,EnumToStringx(enum_type));}
    6969                void  SetValue(char* string){_error_("PetscVec of enum %i (%s) cannot hold a string",enum_type,EnumToStringx(enum_type));}
     
    7171                void  SetValue(double* doublearray,int M){_error_("PetscVec of enum %i (%s) cannot hold a double array",enum_type,EnumToStringx(enum_type));}
    7272                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));}
    7375                void  SetValue(Vec vec);
    7476                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  
    5555                void  GetParameterValue(int* pinteger){_error_("StringArray param of enum %i (%s) cannot return an integer",enum_type,EnumToStringx(enum_type));}
    5656                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));}
    5758                void  GetParameterValue(double* pdouble){_error_("StringArray param of enum %i (%s) cannot return a double",enum_type,EnumToStringx(enum_type));}
    5859                void  GetParameterValue(char** pstring){_error_("StringArray param of enum %i (%s) cannot return a string",enum_type,EnumToStringx(enum_type));}
     
    6768                void  SetValue(bool boolean){_error_("StringArray param of enum %i (%s) cannot hold a boolean",enum_type,EnumToStringx(enum_type));}
    6869                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));}
    7070                void  SetValue(double scalar){_error_("StringArray param of enum %i (%s) cannot hold a scalar",enum_type,EnumToStringx(enum_type));}
    7171                void  SetValue(char* string){_error_("StringArray param of enum %i (%s) cannot hold a string",enum_type,EnumToStringx(enum_type));}
     
    7373                void  SetValue(double* doublearray,int M){_error_("StringArray param of enum %i (%s) cannot hold a double array",enum_type,EnumToStringx(enum_type));}
    7474                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));}
    7577                void  SetValue(Vec vec){_error_("StringArray param of enum %i (%s) cannot hold a Vec",enum_type,EnumToStringx(enum_type));}
    7678                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  
    5353                void  GetParameterValue(int* pinteger){_error_("String param of enum %i (%s) cannot return an integer",enum_type,EnumToStringx(enum_type));}
    5454                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));}
    5556                void  GetParameterValue(double* pdouble){_error_("String param of enum %i (%s) cannot return a double",enum_type,EnumToStringx(enum_type));}
    5657                void  GetParameterValue(char** pstring);
     
    6566                void  SetValue(bool boolean){_error_("String param of enum %i (%s) cannot hold a boolean",enum_type,EnumToStringx(enum_type));}
    6667                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));}
    6868                void  SetValue(double scalar){_error_("String param of enum %i (%s) cannot hold a scalar",enum_type,EnumToStringx(enum_type));}
    6969                void  SetValue(char* string);
     
    7171                void  SetValue(double* doublearray,int M){_error_("String param of enum %i (%s) cannot hold a double array",enum_type,EnumToStringx(enum_type));}
    7272                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));}
    7375                void  SetValue(Vec vec){_error_("String param of enum %i (%s) cannot hold a Vec",enum_type,EnumToStringx(enum_type));}
    7476                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.