Changeset 4099


Ignore:
Timestamp:
06/21/10 16:27:38 (15 years ago)
Author:
Eric.Larour
Message:

Some debugging + moved ExtrudeInput to InputExtrude.

Location:
issm/trunk/src/mex
Files:
9 edited
1 moved

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/mex/CostFunction/CostFunction.cpp

    r3841 r4099  
    1717        DataSet* materials=NULL;
    1818        Parameters* parameters=NULL;
    19         int      analysis_type;
    20         int      sub_analysis_type;
    2119
    2220        /* output datasets: */
     
    3634        FetchData(&materials,MATERIALS);
    3735        FetchParams(&parameters,PARAMETERS);
    38         FetchData(&analysis_type,ANALYSIS);
    39         FetchData(&sub_analysis_type,SUBANALYSIS);
    4036
    4137        /*!Call core code: */
    42         CostFunctionx(&J, elements,nodes,vertices, loads,materials,parameters,analysis_type,sub_analysis_type);
     38        CostFunctionx(&J, elements,nodes,vertices, loads,materials,parameters);
    4339
    4440        /*write output : */
  • issm/trunk/src/mex/CostFunction/CostFunction.h

    r3913 r4099  
    2323#define MATERIALS (mxArray*)prhs[4]
    2424#define PARAMETERS (mxArray*)prhs[5]
    25 #define ANALYSIS (mxArray*)prhs[6]
    26 #define SUBANALYSIS (mxArray*)prhs[7]
    2725
    2826/* serial output macros: */
     
    3331#define NLHS  1
    3432#undef NRHS
    35 #define NRHS  8
     33#define NRHS  6
    3634
    37 #endif  /* _MISFIT_H */
     35#endif  /* _COSTFUNCTION_H */
    3836
    3937
  • issm/trunk/src/mex/Du/Du.cpp

    r3715 r4099  
    1717        DataSet* materials=NULL;
    1818        Parameters* parameters=NULL;
    19         int               analysis_type;
    20         int               sub_analysis_type;
    2119
    2220        /* output datasets: */
     
    3634        FetchData(&materials,MATERIALS);
    3735        FetchParams(&parameters,PARAMETERS);
    38         FetchData(&analysis_type,ANALYSIS);
    39         FetchData(&sub_analysis_type,SUBANALYSIS);
    4036
    4137        /*!Call core code: */
    42         Dux(&du_g, elements,nodes,vertices, loads,materials,parameters,analysis_type,sub_analysis_type);
     38        Dux(&du_g, elements,nodes,vertices, loads,materials,parameters);
    4339
    4440        /*write output : */
  • issm/trunk/src/mex/Du/Du.h

    r3913 r4099  
    2323#define MATERIALS (mxArray*)prhs[4]
    2424#define PARAMETERS (mxArray*)prhs[5]
    25 #define ANALYSIS (mxArray*)prhs[6]
    26 #define SUBANALYSIS (mxArray*)prhs[7]
    2725
    2826/* serial output macros: */
     
    3331#define NLHS  1
    3432#undef NRHS
    35 #define NRHS  8
     33#define NRHS  6
    3634
    3735#endif  /* _DU_H */
  • issm/trunk/src/mex/Makefile.am

    r4095 r4099  
    1515                                ContourToMesh \
    1616                                ContourToNodes \
    17                                 ControlConstrain \
     17                                InputControlConstrain \
    1818                                CostFunction \
    1919                                InputDepthAverage\
     
    120120                          ControlOptimization/ControlOptimization.h
    121121
    122 ControlConstrain_SOURCES = ControlConstrain/ControlConstrain.cpp\
    123                           ControlConstrain/ControlConstrain.h
     122InputControlConstrain_SOURCES = InputControlConstrain/InputControlConstrain.cpp\
     123                          InputControlConstrain/InputControlConstrain.h
    124124
    125125CostFunction_SOURCES =  CostFunction/CostFunction.cpp \
  • issm/trunk/src/mex/NodesDof/NodesDof.cpp

    r4002 r4099  
    88
    99        /*input datasets: */
    10         DataSet* vertices=NULL;
    11         Parameters* params=NULL;
     10        DataSet* nodes=NULL;
     11        Parameters* parameters=NULL;
    1212
    1313        /*Boot module: */
     
    1919        /*Input datasets: */
    2020        FetchData(&nodes,NODESIN);
    21         FetchData((DataSet**)&params,PARAMS);
     21        FetchData((DataSet**)&parameters,PARAMETERS);
    2222
    2323        /*!Generate internal degree of freedom numbers: */
    24         NodesDofx(nodes, params);
     24        NodesDofx(nodes, parameters);
    2525
    2626        /*write output datasets: */
     
    2929        /*Free ressources: */
    3030        delete nodes;
    31         delete params;
     31        delete parameters;
    3232        /*end module: */
    3333        MODULEEND();
     
    3737{
    3838        _printf_("\n");
    39         _printf_("   usage: [nodes] = %s(nodes,params);\n",__FUNCT__);
     39        _printf_("   usage: [nodes] = %s(nodes,parameters);\n",__FUNCT__);
    4040        _printf_("\n");
    4141}
  • issm/trunk/src/mex/NodesDof/NodesDof.h

    r4002 r4099  
    2020/* serial input macros: */
    2121#define NODESIN (mxArray*)prhs[0]
    22 #define PARAMS (mxArray*)prhs[1]
     22#define PARAMETERS (mxArray*)prhs[1]
    2323
    2424/* serial output macros: */
  • issm/trunk/src/mex/VerticesDof/VerticesDof.cpp

    r4002 r4099  
    1212        /*input datasets: */
    1313        DataSet* vertices=NULL;
    14         Parameters* params=NULL;
     14        Parameters* parameters=NULL;
    1515
    1616        /* output datasets: */
    17         VerticesDofVec* partition=NULL;
    18         VerticesDofVec* tpartition=NULL;
     17        DofVec* partition=NULL;
     18        DofVec* tpartition=NULL;
    1919
    2020        /*Boot module: */
     
    2626        /*Input datasets: */
    2727        FetchData(&vertices,VERTICESIN);
    28         FetchData((DataSet**)&params,PARAMS);
     28        FetchData((DataSet**)&parameters,PARAMETERS);
    2929
    3030        /*!Generate internal degree of freedom numbers: */
    31         VerticesDofx(&partition, &tpartition, vertices, params);
     31        VerticesDofx(&partition, &tpartition, vertices, parameters);
    3232
    3333        /*partition and tpartition should be incremented by 1: */
     
    4242        /*Free ressources: */
    4343        delete vertices;
    44         delete params;
     44        delete parameters;
    4545        delete partition;
    4646        delete tpartition;
     
    5353{
    5454        _printf_("\n");
    55         _printf_("   usage: [vertices,part,tpart] = %s(vertices,params);\n",__FUNCT__);
     55        _printf_("   usage: [vertices,part,tpart] = %s(vertices,parameters);\n",__FUNCT__);
    5656        _printf_("\n");
    5757}
  • issm/trunk/src/mex/VerticesDof/VerticesDof.h

    r4002 r4099  
    2020/* serial input macros: */
    2121#define VERTICESIN (mxArray*)prhs[0]
    22 #define PARAMS (mxArray*)prhs[1]
     22#define PARAMETERS (mxArray*)prhs[1]
    2323
    2424/* serial output macros: */
Note: See TracChangeset for help on using the changeset viewer.