| Line | |
|---|
| 1 | /*\file VerticesDof.c
|
|---|
| 2 | *\brief: build degrees of freedom for every vertex
|
|---|
| 3 | */
|
|---|
| 4 |
|
|---|
| 5 | #include "./VerticesDof.h"
|
|---|
| 6 |
|
|---|
| 7 | void 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(¶meters,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 |
|
|---|
| 37 | void 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.