Changeset 4108
- Timestamp:
- 06/21/10 16:57:57 (15 years ago)
- Location:
- issm/trunk/src/mex
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/mex/InputUpdateFromSolution/InputUpdateFromSolution.cpp
r4107 r4108 1 /*\file UpdateInputsFromSolution.c1 /*\file InputUpdateFromSolution.c 2 2 *\brief: update elements properties using a solution vector 3 3 */ 4 4 5 #include "./ UpdateInputsFromSolution.h"5 #include "./InputUpdateFromSolution.h" 6 6 7 7 void mexFunction( int nlhs, mxArray* plhs[], int nrhs, const mxArray* prhs[]){ … … 18 18 Parameters* parameters=NULL; 19 19 Vec solution=NULL; 20 int analysis_type;21 int sub_analysis_type;22 20 23 21 /*Boot module: */ … … 25 23 26 24 /*checks on arguments on the matlab side: */ 27 CheckNumMatlabArguments(nlhs,NLHS,nrhs,NRHS,__FUNCT__,& UpdateInputsFromSolutionUsage);25 CheckNumMatlabArguments(nlhs,NLHS,nrhs,NRHS,__FUNCT__,&InputUpdateFromSolutionUsage); 28 26 29 27 /*Input datasets: */ … … 35 33 FetchParams(¶meters,PARAMETERSIN); 36 34 FetchData(&solution,SOLUTION); 37 FetchData(&analysis_type,ANALYSIS);38 FetchData(&sub_analysis_type,SUBANALYSIS);39 35 40 36 /*!Generate internal degree of freedom numbers: */ 41 UpdateInputsFromSolutionx(elements,nodes,vertices,loads, materials,parameters,solution,analysis_type,sub_analysis_type);37 InputUpdateFromSolutionx(elements,nodes,vertices,loads, materials,parameters,solution); 42 38 43 39 /*write output datasets: */ … … 57 53 } 58 54 59 void UpdateInputsFromSolutionUsage(void)55 void InputUpdateFromSolutionUsage(void) 60 56 { 61 57 _printf_("\n"); 62 _printf_(" usage: [elements] = %s(elements,nodes,vertices,loads,materials,parameters,solution ,analysis_type,sub_analysis_type);\n",__FUNCT__);58 _printf_(" usage: [elements] = %s(elements,nodes,vertices,loads,materials,parameters,solution);\n",__FUNCT__); 63 59 _printf_("\n"); 64 60 } -
issm/trunk/src/mex/InputUpdateFromSolution/InputUpdateFromSolution.h
r4106 r4108 1 1 /* 2 UpdateInputsFromSolution.h2 InputUpdateFromSolution.h 3 3 */ 4 4 … … 7 7 8 8 /* local prototypes: */ 9 void UpdateInputsFromSolutionUsage(void);9 void InputUpdateFromSolutionUsage(void); 10 10 11 11 #include "../../c/modules/modules.h" … … 14 14 15 15 #undef __FUNCT__ 16 #define __FUNCT__ " UpdateInputsFromSolution"16 #define __FUNCT__ "InputUpdateFromSolution" 17 17 18 18 /* serial input macros: */ … … 24 24 #define PARAMETERSIN (mxArray*)prhs[5] 25 25 #define SOLUTION (mxArray*)prhs[6] 26 #define ANALYSIS (mxArray*)prhs[7]27 #define SUBANALYSIS (mxArray*)prhs[8]28 26 29 27 /* serial output macros: */ … … 34 32 #define NLHS 1 35 33 #undef NRHS 36 #define NRHS 934 #define NRHS 7 37 35 38 36 #endif /* _UPDATEINPUTSFROMSOLUTION_H */ -
issm/trunk/src/mex/Makefile.am
r4105 r4108 64 64 TriMeshRefine\ 65 65 InputUpdateFromConstant\ 66 UpdateInputsFromSolution\66 InputUpdateFromSolution\ 67 67 UpdateInputsFromVector\ 68 68 UpdateVertexPositions\ … … 269 269 InputUpdateFromConstant/InputUpdateFromConstant.h 270 270 271 UpdateInputsFromSolution_SOURCES = UpdateInputsFromSolution/UpdateInputsFromSolution.cpp\272 UpdateInputsFromSolution/UpdateInputsFromSolution.h271 InputUpdateFromSolution_SOURCES = InputUpdateFromSolution/InputUpdateFromSolution.cpp\ 272 InputUpdateFromSolution/InputUpdateFromSolution.h 273 273 274 274 UpdateInputsFromVector_SOURCES = UpdateInputsFromVector/UpdateInputsFromVector.cpp\
Note:
See TracChangeset
for help on using the changeset viewer.