source: issm/trunk-jpl/src/mex/VerticesDof/VerticesDof.cpp@ 10937

Last change on this file since 10937 was 8910, checked in by Eric.Larour, 14 years ago

Reorganized io/ directory quite a bit.
Separated Matlab io from the other Disk related io.
Renamed WriteData to WriteMatlabData and FetchData to FetchMatlabData.
Folded WriteParams and FetchParams into FetchMatlabData and WriteMatlabData.

File size: 949 bytes
Line 
1/*\file VerticesDof.c
2 *\brief: build degrees of freedom for every vertex
3 */
4
5#include "./VerticesDof.h"
6
7void mexFunction( int nlhs, mxArray* plhs[], int nrhs, const mxArray* prhs[]){
8
9 /*input datasets: */
10 Vertices* vertices=NULL;
11 Parameters* parameters=NULL;
12
13 /*Boot module: */
14 MODULEBOOT();
15
16 /*checks on arguments on the matlab side: */
17 CheckNumMatlabArguments(nlhs,NLHS,nrhs,NRHS,__FUNCT__,&VerticesDofUsage);
18
19 /*Input datasets: */
20 FetchMatlabData((DataSet**)&vertices,VERTICESIN);
21 FetchMatlabData(&parameters,PARAMETERS);
22
23 /*!Generate internal degree of freedom numbers: */
24 VerticesDofx(vertices, parameters);
25
26 /*write output datasets: */
27 WriteMatlabData(VERTICES,vertices);
28
29 /*Free ressources: */
30 delete vertices;
31 delete parameters;
32
33 /*end module: */
34 MODULEEND();
35}
36
37void VerticesDofUsage(void)
38{
39 _printf_(true,"\n");
40 _printf_(true," usage: [vertices] = %s(vertices,parameters);\n",__FUNCT__);
41 _printf_(true,"\n");
42}
Note: See TracBrowser for help on using the repository browser.