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

Last change on this file since 11933 was 11933, checked in by Eric.Larour, 13 years ago

New FetchData and WriteData interface

File size: 931 bytes
RevLine 
[4171]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: */
[4213]10 Vertices* vertices=NULL;
[4171]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: */
[11933]20 FetchData((DataSet**)&vertices,VERTICESIN);
21 FetchData(&parameters,PARAMETERS);
[4171]22
23 /*!Generate internal degree of freedom numbers: */
[6231]24 VerticesDofx(vertices, parameters);
[4171]25
26 /*write output datasets: */
[11933]27 WriteData(VERTICES,vertices);
[4171]28
29 /*Free ressources: */
30 delete vertices;
31 delete parameters;
32
33 /*end module: */
34 MODULEEND();
35}
36
37void VerticesDofUsage(void)
38{
[6412]39 _printf_(true,"\n");
40 _printf_(true," usage: [vertices] = %s(vertices,parameters);\n",__FUNCT__);
41 _printf_(true,"\n");
[4171]42}
Note: See TracBrowser for help on using the repository browser.