Last change
on this file since 12878 was 12878, checked in by cborstad, 13 years ago |
merged trunk-jpl into trunk-jpl-damage through revision 12877
|
File size:
1.0 KB
|
Line | |
---|
1 | /*\file ElementConnectivity.c
|
---|
2 | *\brief: build element connectivity using node connectivity and elements.
|
---|
3 | */
|
---|
4 |
|
---|
5 | #include "./ElementConnectivity.h"
|
---|
6 |
|
---|
7 | WRAPPER(ElementConnectivity){
|
---|
8 |
|
---|
9 | /*inputs: */
|
---|
10 | double* elements=NULL;
|
---|
11 | double* nodeconnectivity=NULL;
|
---|
12 | int nel,nods;
|
---|
13 | int width;
|
---|
14 |
|
---|
15 | /*outputs: */
|
---|
16 | double* elementconnectivity=NULL;
|
---|
17 |
|
---|
18 | /*Boot module: */
|
---|
19 | MODULEBOOT();
|
---|
20 |
|
---|
21 | /*checks on arguments: */
|
---|
22 | CHECKARGUMENTS(NLHS,NRHS,&ElementConnectivityUsage);
|
---|
23 |
|
---|
24 | /*Input datasets: */
|
---|
25 | FetchData(&elements,&nel,NULL,ELEMENTS);
|
---|
26 | FetchData(&nodeconnectivity,&nods,&width,NODECONNECTIVITY);
|
---|
27 |
|
---|
28 | /*!Generate internal degree of freedom numbers: */
|
---|
29 | ElementConnectivityx(&elementconnectivity, elements,nel, nodeconnectivity, nods, width);
|
---|
30 |
|
---|
31 | /*write output datasets: */
|
---|
32 | WriteData(ELEMENTCONNECTIVITY,elementconnectivity,nel,3);
|
---|
33 |
|
---|
34 | /*end module: */
|
---|
35 | MODULEEND();
|
---|
36 | }
|
---|
37 |
|
---|
38 | void ElementConnectivityUsage(void) {
|
---|
39 | _pprintLine_("");
|
---|
40 | _pprintLine_(" usage: elementconnectivity = " << __FUNCT__ << "(elements, nodeconnectivity);");
|
---|
41 | _pprintLine_("");
|
---|
42 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.