/[escript]/trunk/finley/src/Mesh_print.c
ViewVC logotype

Diff of /trunk/finley/src/Mesh_print.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 82 by jgs, Tue Oct 26 06:53:54 2004 UTC revision 123 by jgs, Fri Jul 8 04:08:13 2005 UTC
# Line 17  Line 17 
17  /*  prints the mesh to the standarts output: */  /*  prints the mesh to the standarts output: */
18    
19  void Finley_Mesh_print(Finley_Mesh *in) {  void Finley_Mesh_print(Finley_Mesh *in) {
20    int NN,i,j,numDim;    dim_t NN,i,j,numDim;
21    
22    /* write header */    /* write header */
23    
# Line 41  void Finley_Mesh_print(Finley_Mesh *in) Line 41  void Finley_Mesh_print(Finley_Mesh *in)
41    /*  write elements: */    /*  write elements: */
42    
43    if (in->Elements!=NULL) {    if (in->Elements!=NULL) {
44      printf( "=== %s:\nnumber of elements=%d\nnumber of colors=%d\n",      printf( "=== %s:\nnumber of elements=%d\ncolor range=[%d,%d]\n",
45                         in->Elements->ReferenceElement->Type->Name,in->Elements->numElements,in->Elements->numColors);                         in->Elements->ReferenceElement->Type->Name,in->Elements->numElements,in->Elements->minColor,in->Elements->maxColor);
46      NN=in->Elements->ReferenceElement->Type->numNodes;      NN=in->Elements->ReferenceElement->Type->numNodes;
47      if (in->Elements->numElements>0) {      if (in->Elements->numElements>0) {
48         printf("Id,Tag,Color,Nodes\n");         printf("Id,Tag,Color,Nodes\n");
# Line 58  void Finley_Mesh_print(Finley_Mesh *in) Line 58  void Finley_Mesh_print(Finley_Mesh *in)
58    
59    
60    if (in->FaceElements!=NULL) {    if (in->FaceElements!=NULL) {
61      printf( "=== %s:\nnumber of elements=%d\nnumber of colors=%d\n",      printf( "=== %s:\nnumber of elements=%d\ncolor range=[%d,%d]\n",
62                         in->FaceElements->ReferenceElement->Type->Name,in->FaceElements->numElements,in->FaceElements->numColors);                 in->FaceElements->ReferenceElement->Type->Name,in->FaceElements->numElements,in->FaceElements->minColor,in->FaceElements->maxColor);
63      NN=in->FaceElements->ReferenceElement->Type->numNodes;      NN=in->FaceElements->ReferenceElement->Type->numNodes;
64      if (in->FaceElements->numElements>0) {      if (in->FaceElements->numElements>0) {
65         printf("Id,Tag,Color,Nodes\n");         printf("Id,Tag,Color,Nodes\n");
# Line 73  void Finley_Mesh_print(Finley_Mesh *in) Line 73  void Finley_Mesh_print(Finley_Mesh *in)
73    
74    /*  write Contact elements : */    /*  write Contact elements : */
75    if (in->ContactElements!=NULL) {    if (in->ContactElements!=NULL) {
76      printf( "=== %s:\nnumber of elements=%d\nnumber of colors=%d\n",      printf( "=== %s:\nnumber of elements=%d\ncolor range=[%d,%d]\n",
77                         in->ContactElements->ReferenceElement->Type->Name,in->ContactElements->numElements,in->ContactElements->numColors);                         in->ContactElements->ReferenceElement->Type->Name,in->ContactElements->numElements,in->ContactElements->minColor,in->ContactElements->maxColor);
78      NN=in->ContactElements->ReferenceElement->Type->numNodes;      NN=in->ContactElements->ReferenceElement->Type->numNodes;
79      if (in->ContactElements->numElements>0) {      if (in->ContactElements->numElements>0) {
80         printf("Id,Tag,Color,Nodes\n");         printf("Id,Tag,Color,Nodes\n");
# Line 88  void Finley_Mesh_print(Finley_Mesh *in) Line 88  void Finley_Mesh_print(Finley_Mesh *in)
88        
89    /*  write points: */    /*  write points: */
90    if (in->Points!=NULL) {    if (in->Points!=NULL) {
91      printf( "=== %s:\nnumber of elements=%d\nnumber of colors=%d\n",      printf( "=== %s:\nnumber of elements=%d\ncolor range=[%d,%d]\n",
92                         in->Points->ReferenceElement->Type->Name,in->Points->numElements,in->Points->numColors);                         in->Points->ReferenceElement->Type->Name,in->Points->numElements,in->Points->minColor,in->Points->maxColor);
93      NN=in->Points->ReferenceElement->Type->numNodes;      NN=in->Points->ReferenceElement->Type->numNodes;
94      if (in->Points->numElements>0) {      if (in->Points->numElements>0) {
95         printf("Id,Tag,Color,Nodes\n");         printf("Id,Tag,Color,Nodes\n");
# Line 104  void Finley_Mesh_print(Finley_Mesh *in) Line 104  void Finley_Mesh_print(Finley_Mesh *in)
104    
105  /*  /*
106  * $Log$  * $Log$
107  * Revision 1.1  2004/10/26 06:53:57  jgs  * Revision 1.2  2005/07/08 04:07:54  jgs
108  * Initial revision  * Merge of development branch back to main trunk on 2005-07-08
109    *
110    * Revision 1.1.1.1.2.1  2005/06/29 02:34:53  gross
111    * some changes towards 64 integers in finley
112    *
113    * Revision 1.1.1.1  2004/10/26 06:53:57  jgs
114    * initial import of project esys2
115  *  *
116  * Revision 1.1.1.1  2004/06/24 04:00:40  johng  * Revision 1.1.1.1  2004/06/24 04:00:40  johng
117  * Initial version of eys using boost-python.  * Initial version of eys using boost-python.

Legend:
Removed from v.82  
changed lines
  Added in v.123

  ViewVC Help
Powered by ViewVC 1.1.26