Changeset 5775
- Timestamp:
- 09/13/10 14:17:04 (15 years ago)
- Location:
- issm/trunk/src/mex
- Files:
-
- 3 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/mex/Makefile.am
r5710 r5775 17 17 ContourToNodes \ 18 18 CostFunction \ 19 CreateNodalConstraints\ 19 20 DakotaResponses\ 20 21 Echo\ … … 134 135 CostFunction/CostFunction.h 135 136 137 CreateNodalConstraints_SOURCES = CreateNodalConstraints/CreateNodalConstraints.cpp \ 138 CreateNodalConstraints/CreateNodalConstraints.h 139 136 140 NodesDof_SOURCES = NodesDof/NodesDof.cpp\ 137 141 NodesDof/NodesDof.h -
issm/trunk/src/mex/SpcNodes/SpcNodes.cpp
r4453 r5775 13 13 int analysis_type; 14 14 15 /* output datasets: */16 Vec yg=NULL;17 18 15 /*Boot module: */ 19 16 MODULEBOOT(); … … 28 25 29 26 /*!Generate internal degree of freedom numbers: */ 30 SpcNodesx( &yg,nodes,constraints,analysis_type);27 SpcNodesx(nodes,constraints,analysis_type); 31 28 32 29 /*write output datasets: */ 33 30 WriteData(NODES,nodes); 34 WriteData(YG,yg);35 31 36 32 /*Free ressources: */ 37 33 delete nodes; 38 34 delete constraints; 39 VecFree(&yg);40 35 41 36 /*end module: */ … … 46 41 { 47 42 _printf_("\n"); 48 _printf_(" usage: [m.node ,m.yg]=%s(m.nodes,m.constraints);\n",__FUNCT__);43 _printf_(" usage: [m.node]=%s(m.nodes,m.constraints);\n",__FUNCT__); 49 44 _printf_("\n"); 50 45 } -
issm/trunk/src/mex/SystemMatrices/SystemMatrices.cpp
r5698 r5775 18 18 /* output datasets: */ 19 19 Mat Kgg = NULL; 20 Mat Kff = NULL; 21 Mat Kfs = NULL; 20 22 Vec pg = NULL; 23 Vec pf = NULL; 21 24 double kmax; 22 25 … … 50 53 FetchData(&penalty_kflag,PENALTYKFLAG); 51 54 FetchData(&penalty_pflag,PENALTYPFLAG); 52 SystemMatricesx(&Kgg,& pg,&kmax,elements,nodes,vertices,loads,materials,parameters,kflag,pflag,penalty_kflag,penalty_pflag);55 SystemMatricesx(&Kgg,&Kff,&Kfs,&pg,&pf,&kmax,elements,nodes,vertices,loads,materials,parameters,kflag,pflag,penalty_kflag,penalty_pflag); 53 56 } 54 57 else 55 SystemMatricesx(&Kgg,& pg,&kmax,elements,nodes,vertices,loads,materials,parameters);58 SystemMatricesx(&Kgg,&Kff,&Kfs,&pg,&pf,&kmax,elements,nodes,vertices,loads,materials,parameters); 56 59 57 60 /*write output datasets: */ 58 61 WriteData(KGG,Kgg); 62 WriteData(KFF,Kff); 63 WriteData(KFS,Kfs); 59 64 WriteData(PG,pg); 65 WriteData(PF,pf); 60 66 WriteData(KMAX,kmax); 61 67 … … 68 74 delete parameters; 69 75 MatFree(&Kgg); 76 MatFree(&Kff); 77 MatFree(&Kfs); 70 78 VecFree(&pg); 79 VecFree(&pf); 71 80 72 81 /*end module: */ … … 77 86 { 78 87 _printf_("\n"); 79 _printf_(" usage: [Kgg, pg,kmax] = %s(elements,nodes,vertices,loads,materials,parameters);\n",__FUNCT__);80 _printf_(" usage: [Kgg, pg,kmax] = %s(elements,nodes,vertices,loads,materials,parameters,kflag,pflag,penalty_kflag,penalty_pflag);\n",__FUNCT__);88 _printf_(" usage: [Kgg,Kff,Kfs,pg,pf,kmax] = %s(elements,nodes,vertices,loads,materials,parameters);\n",__FUNCT__); 89 _printf_(" usage: [Kgg,Kff,Kfs,pg,pf,kmax] = %s(elements,nodes,vertices,loads,materials,parameters,kflag,pflag,penalty_kflag,penalty_pflag);\n",__FUNCT__); 81 90 _printf_("\n"); 82 91 } -
issm/trunk/src/mex/SystemMatrices/SystemMatrices.h
r5698 r5775 31 31 /* serial output macros: */ 32 32 #define KGG (mxArray**)&plhs[0] 33 #define PG (mxArray**)&plhs[1] 34 #define KMAX (mxArray**)&plhs[2] 33 #define KFF (mxArray**)&plhs[1] 34 #define KFS (mxArray**)&plhs[2] 35 #define PG (mxArray**)&plhs[3] 36 #define PF (mxArray**)&plhs[4] 37 #define KMAX (mxArray**)&plhs[5] 35 38 36 39 /* serial arg counts: */ 37 40 #undef NLHS 38 #define NLHS 341 #define NLHS 6 39 42 #undef NRHS 40 43 #define NRHS 10
Note:
See TracChangeset
for help on using the changeset viewer.