Changeset 6163 for issm/trunk


Ignore:
Timestamp:
10/06/10 10:57:18 (15 years ago)
Author:
Mathieu Morlighem
Message:

Some cleaning in Params

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

Legend:

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

    r5103 r6163  
    99/*Headers:*/
    1010/*{{{1*/
    11 
    1211#ifdef HAVE_CONFIG_H
    1312        #include "config.h"
     
    2019#endif
    2120
    22 
    2321#include "./Param.h"
    2422#include "../../include/include.h"
    2523#include "../../shared/shared.h"
    26 #include "../../include/include.h"
    27 #include "../../include/include.h"
    2824/*}}}*/
    2925
  • issm/trunk/src/c/objects/Params/DoubleMatArrayParam.h

    r5103 r6163  
    99/*Headers:*/
    1010/*{{{1*/
    11 
    1211#ifdef HAVE_CONFIG_H
    1312        #include "config.h"
     
    2019#endif
    2120
    22 
    2321#include "./Param.h"
    2422#include "../../include/include.h"
    2523#include "../../shared/shared.h"
    26 #include "../../include/include.h"
    27 #include "../../include/include.h"
    2824/*}}}*/
    2925
  • issm/trunk/src/c/objects/Params/DoubleMatParam.cpp

    r5103 r6163  
    155155void  DoubleMatParam::GetParameterValue(double** pdoublearray,int* pM,int* pN){
    156156        double* output=NULL;
    157         int M,N;
    158 
    159         M=this->M;
    160         N=this->N;
     157
    161158        output=(double*)xmalloc((int)(M*N*sizeof(double)));
    162159        memcpy(output,value,M*N*sizeof(double));
     
    180177        mxArray* pfield2=NULL;
    181178        double* doublemat=NULL;
    182         int M,N;
    183179        char* name=NULL;
    184180       
    185181        name=this->GetParameterName();
    186         this->GetParameterValue(&doublemat,&M,&N);
     182        this->GetParameterValue(&doublemat,NULL,NULL);
    187183                               
    188184        pfield=mxCreateDoubleMatrix(0,0,mxREAL);
  • issm/trunk/src/c/objects/Params/DoubleMatParam.h

    r5103 r6163  
    99/*Headers:*/
    1010/*{{{1*/
    11 
    1211#ifdef HAVE_CONFIG_H
    1312        #include "config.h"
     
    2019#endif
    2120
    22 
    2321#include "./Param.h"
    2422#include "../../include/include.h"
    2523#include "../../shared/shared.h"
    26 #include "../../include/include.h"
    27 #include "../../include/include.h"
    2824/*}}}*/
    2925
  • issm/trunk/src/c/objects/Params/DoubleParam.h

    r5103 r6163  
    99/*Headers:*/
    1010/*{{{1*/
    11 
    1211#ifdef HAVE_CONFIG_H
    1312        #include "config.h"
     
    2019#endif
    2120
    22 
    2321#include "./Param.h"
    2422#include "../../include/include.h"
    2523#include "../../shared/shared.h"
    26 #include "../../include/include.h"
    27 #include "../../include/include.h"
    2824/*}}}*/
    2925
  • issm/trunk/src/c/objects/Params/DoubleVecParam.cpp

    r5103 r6163  
    171171        char* name=NULL;
    172172        double* doublevec=NULL;
    173         int M;
    174173        mxArray* pfield=NULL;
    175174
    176         this->GetParameterValue(&doublevec,&M);
     175        this->GetParameterValue(&doublevec,NULL);
    177176        name=this->GetParameterName();
    178177                               
  • issm/trunk/src/c/objects/Params/DoubleVecParam.h

    r6014 r6163  
    99/*Headers:*/
    1010/*{{{1*/
    11 
    1211#ifdef HAVE_CONFIG_H
    1312        #include "config.h"
     
    2019#endif
    2120
    22 
    2321#include "./Param.h"
    2422#include "../../include/include.h"
    2523#include "../../shared/shared.h"
    26 #include "../../include/include.h"
    27 #include "../../include/include.h"
    2824/*}}}*/
    2925
  • issm/trunk/src/c/objects/Params/FileParam.h

    r5103 r6163  
    99/*Headers:*/
    1010/*{{{1*/
    11 
    1211#ifdef HAVE_CONFIG_H
    1312        #include "config.h"
     
    2322#include "../../include/include.h"
    2423#include "../../shared/shared.h"
    25 #include "../../include/include.h"
    26 #include "../../include/include.h"
    2724/*}}}*/
    2825
  • issm/trunk/src/c/objects/Params/IntParam.h

    r5103 r6163  
    99/*Headers:*/
    1010/*{{{1*/
    11 
    1211#ifdef HAVE_CONFIG_H
    1312        #include "config.h"
     
    2322#include "../../include/include.h"
    2423#include "../../shared/shared.h"
    25 #include "../../include/include.h"
    26 #include "../../include/include.h"
    2724/*}}}*/
    2825
  • issm/trunk/src/c/objects/Params/PetscMatParam.h

    r5103 r6163  
    99/*Headers:*/
    1010/*{{{1*/
    11 
    1211#ifdef HAVE_CONFIG_H
    1312        #include "config.h"
     
    2019#endif
    2120
    22 
    2321#include "./Param.h"
    2422#include "../../include/include.h"
    2523#include "../../shared/shared.h"
    26 #include "../../include/include.h"
    27 #include "../../include/include.h"
    2824/*}}}*/
    2925
  • issm/trunk/src/c/objects/Params/PetscVecParam.h

    r5103 r6163  
    99/*Headers:*/
    1010/*{{{1*/
    11 
    1211#ifdef HAVE_CONFIG_H
    1312        #include "config.h"
     
    2019#endif
    2120
    22 
    2321#include "./Param.h"
    2422#include "../../include/include.h"
    2523#include "../../shared/shared.h"
    26 #include "../../include/include.h"
    27 #include "../../include/include.h"
    2824/*}}}*/
    2925
  • issm/trunk/src/c/objects/Params/StringArrayParam.h

    r5103 r6163  
    99/*Headers:*/
    1010/*{{{1*/
    11 
    1211#ifdef HAVE_CONFIG_H
    1312        #include "config.h"
     
    2019#endif
    2120
    22 
    2321#include "./Param.h"
    2422#include "../../include/include.h"
    2523#include "../../shared/shared.h"
    26 #include "../../include/include.h"
    27 #include "../../include/include.h"
    2824/*}}}*/
    2925
  • issm/trunk/src/c/objects/Params/StringParam.h

    r5103 r6163  
    99/*Headers:*/
    1010/*{{{1*/
    11 
    1211#ifdef HAVE_CONFIG_H
    1312        #include "config.h"
     
    2019#endif
    2120
    22 
    2321#include "./Param.h"
    2422#include "../../include/include.h"
    2523#include "../../shared/shared.h"
    26 #include "../../include/include.h"
    27 #include "../../include/include.h"
    2824/*}}}*/
    2925
Note: See TracChangeset for help on using the changeset viewer.