Changeset 9302
- Timestamp:
- 08/11/11 16:14:52 (14 years ago)
- Location:
- issm/trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk/src/c/objects/Constraints/SpcDynamic.cpp ¶
r9298 r9302 196 196 197 197 Node* node=(Node*)nodes->GetObjectById(NULL,nodeid); 198 pos=node->GetDof(dof ,GsetEnum);198 pos=node->GetDof(dof-1,GsetEnum); 199 199 200 200 this->value=yg_serial[pos]; -
TabularUnified issm/trunk/src/c/objects/Node.cpp ¶
r9285 r9302 285 285 286 286 if(setenum==GsetEnum){ 287 _assert_(dofindex>=0 && dofindex<indexing.gsize); 287 288 return indexing.gdoflist[dofindex]; 288 289 } 289 290 else if(setenum==FsetEnum){ 291 _assert_(dofindex>=0 && dofindex<indexing.fsize); 290 292 return indexing.fdoflist[dofindex]; 291 293 } 292 294 else if(setenum==SsetEnum){ 295 _assert_(dofindex>=0 && dofindex<indexing.ssize); 293 296 return indexing.sdoflist[dofindex]; 294 297 } -
TabularUnified issm/trunk/src/m/solutions/ResetBoundaryConditions.m ¶
r9298 r9302 16 16 17 17 %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 23 23 FetchMatlabData((DataSet**)&nodes,NODESIN); 24 24 FetchMatlabData((Parameters**)¶meters,PARAMETERS); 25 FetchMatlabData(&yg,Y S);25 FetchMatlabData(&yg,YG); 26 26 27 27 /*!Generate internal degree of freedom numbers: */ … … 29 29 30 30 /*write output datasets: */ 31 WriteMatlabData( NODESOUT,nodes);31 WriteMatlabData(CONSTRAINTSOUT,constraints); 32 32 33 33 /*Free ressources: */ … … 44 44 { 45 45 _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__); 47 47 _printf_(true,"\n"); 48 48 } -
TabularUnified issm/trunk/src/mex/UpdateDynamicConstraints/UpdateDynamicConstraints.h ¶
r9298 r9302 3 3 */ 4 4 5 #ifndef _UPDATE SPCS_H6 #define _UPDATE SPCS_H5 #ifndef _UPDATEDYNAMICCONSTRAINTS_H 6 #define _UPDATEDYNAMICCONSTRAINTS_H 7 7 8 8 /* local prototypes: */ … … 20 20 #define NODESIN (mxArray*)prhs[1] 21 21 #define PARAMETERS (mxArray*)prhs[2] 22 #define Y S(mxArray*)prhs[3]22 #define YG (mxArray*)prhs[3] 23 23 24 24 /* serial output macros: */ 25 #define NODESOUT (mxArray**)&plhs[0]25 #define CONSTRAINTSOUT (mxArray**)&plhs[0] 26 26 27 27 /* serial arg counts: */ … … 31 31 #define NRHS 4 32 32 33 #endif /* _UPDATESPCS_H */33 #endif
Note:
See TracChangeset
for help on using the changeset viewer.