Changeset 9302


Ignore:
Timestamp:
08/11/11 16:14:52 (14 years ago)
Author:
Mathieu Morlighem
Message:

minor

Location:
issm/trunk/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk/src/c/objects/Constraints/SpcDynamic.cpp

    r9298 r9302  
    196196
    197197        Node* node=(Node*)nodes->GetObjectById(NULL,nodeid);
    198         pos=node->GetDof(dof,GsetEnum);
     198        pos=node->GetDof(dof-1,GsetEnum);
    199199
    200200        this->value=yg_serial[pos];
  • TabularUnified issm/trunk/src/c/objects/Node.cpp

    r9285 r9302  
    285285
    286286        if(setenum==GsetEnum){
     287                _assert_(dofindex>=0 && dofindex<indexing.gsize);
    287288                return indexing.gdoflist[dofindex];
    288289        }
    289290        else if(setenum==FsetEnum){
     291                _assert_(dofindex>=0 && dofindex<indexing.fsize);
    290292                return indexing.fdoflist[dofindex];
    291293        }
    292294        else if(setenum==SsetEnum){
     295                _assert_(dofindex>=0 && dofindex<indexing.ssize);
    293296                return indexing.sdoflist[dofindex];
    294297        }
  • TabularUnified issm/trunk/src/m/solutions/ResetBoundaryConditions.m

    r9298 r9302  
    1616
    1717        %update values of spcs inside nodes
    18         femmodel.nodes=UpdateDynamicConstraints(femmodel.constraints,femmodel.nodes,femmodel.parameters,ug);
     18        femmodel.constraints=UpdateDynamicConstraints(femmodel.constraints,femmodel.nodes,femmodel.parameters,ug);
  • TabularUnified issm/trunk/src/mex/UpdateDynamicConstraints/UpdateDynamicConstraints.cpp

    r9298 r9302  
    2323        FetchMatlabData((DataSet**)&nodes,NODESIN);
    2424        FetchMatlabData((Parameters**)&parameters,PARAMETERS);
    25         FetchMatlabData(&yg,YS);
     25        FetchMatlabData(&yg,YG);
    2626       
    2727        /*!Generate internal degree of freedom numbers: */
     
    2929
    3030        /*write output datasets: */
    31         WriteMatlabData(NODESOUT,nodes);
     31        WriteMatlabData(CONSTRAINTSOUT,constraints);
    3232
    3333        /*Free ressources: */
     
    4444{
    4545        _printf_(true,"\n");
    46         _printf_(true,"   usage: m.nodes=%s(m.nodes,m.parameters,ys);\n",__FUNCT__);
     46        _printf_(true,"   usage: m.constraints=%s(m.constraints,m.nodes,m.parameters,ys);\n",__FUNCT__);
    4747        _printf_(true,"\n");
    4848}
  • TabularUnified issm/trunk/src/mex/UpdateDynamicConstraints/UpdateDynamicConstraints.h

    r9298 r9302  
    33*/
    44
    5 #ifndef _UPDATESPCS_H
    6 #define _UPDATESPCS_H
     5#ifndef _UPDATEDYNAMICCONSTRAINTS_H
     6#define _UPDATEDYNAMICCONSTRAINTS_H
    77
    88/* local prototypes: */
     
    2020#define NODESIN (mxArray*)prhs[1]
    2121#define PARAMETERS (mxArray*)prhs[2]
    22 #define YS (mxArray*)prhs[3]
     22#define YG (mxArray*)prhs[3]
    2323
    2424/* serial output macros: */
    25 #define NODESOUT (mxArray**)&plhs[0]
     25#define CONSTRAINTSOUT (mxArray**)&plhs[0]
    2626
    2727/* serial arg counts: */
     
    3131#define NRHS  4
    3232
    33 #endif  /* _UPDATESPCS_H */
     33#endif
Note: See TracChangeset for help on using the changeset viewer.