Changeset 4160


Ignore:
Timestamp:
06/23/10 10:03:16 (15 years ago)
Author:
Mathieu Morlighem
Message:

no more processparams

Location:
issm/trunk/src/c/objects/Params
Files:
19 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/Params/BoolParam.cpp

    r4091 r4160  
    130130}
    131131/*}}}*/
    132 /*FUNCTION BoolParam::ProcessParams(double* partition,int numberofvertices);{{{1*/
    133 void  BoolParam::Process(double* partition,int numberofvertices){
    134 }
    135 /*}}}*/
    136132/*FUNCTION BoolParam::SetMatlabField(mxArray* dataref);{{{1*/
    137133#ifdef _SERIAL_
  • issm/trunk/src/c/objects/Params/BoolParam.h

    r4091 r4160  
    8282               
    8383                char* GetParameterName(void);
    84                 void  Process(double* partition,int numberofvertices);
    8584                #ifdef _SERIAL_
    8685                void  SetMatlabField(mxArray* dataref);
  • issm/trunk/src/c/objects/Params/DoubleMatParam.cpp

    r4091 r4160  
    171171}
    172172/*}}}*/
    173 /*FUNCTION DoubleMatParam::ProcessParams(double* partition,int numberofvertices);{{{1*/
    174 void  DoubleMatParam::Process(double* partition,int numberofvertices){
    175 }
    176 /*}}}*/
    177173/*FUNCTION DoubleMatParam::SetMatlabField(mxArray* dataref);{{{1*/
    178174#ifdef _SERIAL_
  • issm/trunk/src/c/objects/Params/DoubleMatParam.h

    r4091 r4160  
    8686
    8787                char* GetParameterName(void);
    88                 void  Process(double* partition,int numberofvertices);
    8988                #ifdef _SERIAL_
    9089                void  SetMatlabField(mxArray* dataref);
  • issm/trunk/src/c/objects/Params/DoubleParam.cpp

    r4091 r4160  
    150150}
    151151/*}}}*/
    152 
    153 /*FUNCTION DoubleParam::ProcessParams(double* partition,int numberofvertices);{{{1*/
    154 void  DoubleParam::Process(double* partition,int numberofvertices){
    155 }
    156 /*}}}*/
    157152/*FUNCTION DoubleParam::SetMatlabField(mxArray* dataref);{{{1*/
    158153#ifdef _SERIAL_
  • issm/trunk/src/c/objects/Params/DoubleParam.h

    r4091 r4160  
    8484
    8585                char* GetParameterName(void);
    86                 void  Process(double* partition,int numberofvertices);
    8786                #ifdef _SERIAL_
    8887                void  SetMatlabField(mxArray* dataref);
  • issm/trunk/src/c/objects/Params/DoubleVecParam.cpp

    r4091 r4160  
    164164}
    165165/*}}}*/
    166 /*FUNCTION DoubleVecParam::ProcessParams(double* partition,int numberofvertices);{{{1*/
    167 void  DoubleVecParam::Process(double* partition,int numberofvertices) {
    168 
    169         int i;
    170         double* newvalues=NULL;
    171 
    172         /*This param holds a vector of size numberofvertices, which means we are being asked to
    173          * repartition it: */
    174        
    175         if(this->M==numberofvertices){
    176 
    177                 newvalues=(double*)xmalloc(this->M*sizeof(double));
    178                                
    179                 for(i=0;i<this->M;i++){
    180                         newvalues[(int)(partition[i])]=this->values[i];
    181                 }
    182 
    183                 /*Reassign values to new values: */
    184                 xfree((void**)&this->values);
    185                 this->values=newvalues;
    186         }
    187 
    188 }
    189 /*}}}*/
    190166/*FUNCTION DoubleVecParam::SetMatlabField(mxArray* dataref);{{{1*/
    191167#ifdef _SERIAL_
  • issm/trunk/src/c/objects/Params/DoubleVecParam.h

    r4091 r4160  
    8383
    8484                char* GetParameterName(void);
    85                 void  Process(double* partition,int numberofvertices);
    8685                #ifdef _SERIAL_
    8786                void  SetMatlabField(mxArray* dataref);
  • issm/trunk/src/c/objects/Params/IntParam.cpp

    r4091 r4160  
    130130}
    131131/*}}}*/
    132 /*FUNCTION IntParam::ProcessParams(double* partition,int numberofvertices);{{{1*/
    133 void  IntParam::Process(double* partition,int numberofvertices){
    134 }
    135 /*}}}*/
    136132/*FUNCTION IntParam::SetMatlabField(mxArray* dataref);{{{1*/
    137133#ifdef _SERIAL_
  • issm/trunk/src/c/objects/Params/IntParam.h

    r4091 r4160  
    8383
    8484                char* GetParameterName(void);
    85                 void  Process(double* partition,int numberofvertices);
    8685                #ifdef _SERIAL_
    8786                void  SetMatlabField(mxArray* dataref);
  • issm/trunk/src/c/objects/Params/Param.h

    r4059 r4160  
    5353
    5454                virtual char* GetParameterName(void)=0;
    55                 virtual void  Process(double* partition,int numberofvertices)=0;
    5655                #ifdef _SERIAL_
    5756                virtual void  SetMatlabField(mxArray* dataref)=0;
  • issm/trunk/src/c/objects/Params/PetscMatParam.cpp

    r4091 r4160  
    201201}
    202202/*}}}*/
    203 /*FUNCTION PetscMatParam::ProcessParams(double* partition,int numberofvertices);{{{1*/
    204 void  PetscMatParam::Process(double* partition,int numberofvertices){
    205 }
    206 /*}}}*/
    207203/*FUNCTION PetscMatParam::SetMatlabField(mxArray* dataref);{{{1*/
    208204#ifdef _SERIAL_
  • issm/trunk/src/c/objects/Params/PetscMatParam.h

    r4091 r4160  
    8383
    8484                char* GetParameterName(void);
    85                 void  Process(double* partition,int numberofvertices);
    8685                #ifdef _SERIAL_
    8786                void  SetMatlabField(mxArray* dataref);
  • issm/trunk/src/c/objects/Params/PetscVecParam.cpp

    r4091 r4160  
    194194}
    195195/*}}}*/
    196 /*FUNCTION PetscVecParam::ProcessParams(double* partition,int numberofvertices);{{{1*/
    197 void  PetscVecParam::Process(double* partition,int numberofvertices){
    198 }
    199 /*}}}*/
    200196/*FUNCTION PetscVecParam::SetMatlabField(mxArray* dataref);{{{1*/
    201197#ifdef _SERIAL_
  • issm/trunk/src/c/objects/Params/PetscVecParam.h

    r4091 r4160  
    8383
    8484                char* GetParameterName(void);
    85                 void  Process(double* partition,int numberofvertices);
    8685                #ifdef _SERIAL_
    8786                void  SetMatlabField(mxArray* dataref);
  • issm/trunk/src/c/objects/Params/StringArrayParam.cpp

    r4091 r4160  
    223223}
    224224/*}}}*/
    225 /*FUNCTION StringArrayParam::ProcessParams(double* partition,int numberofvertices);{{{1*/
    226 void  StringArrayParam::Process(double* partition,int numberofvertices){
    227 }
    228 /*}}}*/
    229225/*FUNCTION StringArrayParam::SetMatlabField(mxArray* dataref);{{{1*/
    230226#ifdef _SERIAL_
  • issm/trunk/src/c/objects/Params/StringArrayParam.h

    r4091 r4160  
    8585
    8686                char* GetParameterName(void);
    87                 void  Process(double* partition,int numberofvertices);
    8887                #ifdef _SERIAL_
    8988                void  SetMatlabField(mxArray* dataref);
  • issm/trunk/src/c/objects/Params/StringParam.cpp

    r4091 r4160  
    160160}
    161161/*}}}*/
    162 /*FUNCTION StringParam::ProcessParams(double* partition,int numberofvertices);{{{1*/
    163 void  StringParam::Process(double* partition,int numberofvertices){
    164 }
    165 /*}}}*/
    166162/*FUNCTION StringParam::SetMatlabField(mxArray* dataref);{{{1*/
    167163#ifdef _SERIAL_
  • issm/trunk/src/c/objects/Params/StringParam.h

    r4091 r4160  
    8383
    8484                char* GetParameterName(void);
    85                 void  Process(double* partition,int numberofvertices);
    8685                #ifdef _SERIAL_
    8786                void  SetMatlabField(mxArray* dataref);
Note: See TracChangeset for help on using the changeset viewer.