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
|
Rev | Line | |
---|
[1103] | 1 | /*\file ElementConnectivity.c
|
---|
| 2 | *\brief: build element connectivity using node connectivity and elements.
|
---|
| 3 | */
|
---|
| 4 |
|
---|
| 5 | #include "./ElementConnectivity.h"
|
---|
| 6 |
|
---|
[12112] | 7 | WRAPPER(ElementConnectivity){
|
---|
[1103] | 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 |
|
---|
[12112] | 21 | /*checks on arguments: */
|
---|
| 22 | CHECKARGUMENTS(NLHS,NRHS,&ElementConnectivityUsage);
|
---|
[1103] | 23 |
|
---|
| 24 | /*Input datasets: */
|
---|
[11933] | 25 | FetchData(&elements,&nel,NULL,ELEMENTS);
|
---|
| 26 | FetchData(&nodeconnectivity,&nods,&width,NODECONNECTIVITY);
|
---|
[1103] | 27 |
|
---|
| 28 | /*!Generate internal degree of freedom numbers: */
|
---|
| 29 | ElementConnectivityx(&elementconnectivity, elements,nel, nodeconnectivity, nods, width);
|
---|
| 30 |
|
---|
| 31 | /*write output datasets: */
|
---|
[11933] | 32 | WriteData(ELEMENTCONNECTIVITY,elementconnectivity,nel,3);
|
---|
[1103] | 33 |
|
---|
| 34 | /*end module: */
|
---|
| 35 | MODULEEND();
|
---|
| 36 | }
|
---|
| 37 |
|
---|
| 38 | void ElementConnectivityUsage(void) {
|
---|
[12878] | 39 | _pprintLine_("");
|
---|
| 40 | _pprintLine_(" usage: elementconnectivity = " << __FUNCT__ << "(elements, nodeconnectivity);");
|
---|
| 41 | _pprintLine_("");
|
---|
[1103] | 42 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.