/[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

trunk/esys2/finley/src/finleyC/Mesh_print.c revision 82 by jgs, Tue Oct 26 06:53:54 2004 UTC trunk/finley/src/finley/Mesh_print.c revision 201 by jgs, Wed Nov 23 04:10:21 2005 UTC
# Line 1  Line 1 
1    /*
2     ******************************************************************************
3     *                                                                            *
4     *       COPYRIGHT  ACcESS 2003,2004,2005 -  All Rights Reserved              *
5     *                                                                            *
6     * This software is the property of ACcESS. No part of this code              *
7     * may be copied in any form or by any means without the expressed written    *
8     * consent of ACcESS.  Copying, use or modification of this software          *
9     * by any unauthorised person is illegal unless that person has a software    *
10     * license agreement with ACcESS.                                             *
11     *                                                                            *
12     ******************************************************************************
13    */
14    
15  /**************************************************************/  /**************************************************************/
16    
17  /*   Finley: prints Mesh */  /*   Finley: prints Mesh */
18    
19  /**************************************************************/  /**************************************************************/
20    
 /*   Copyrights by ACcESS Australia 2003 */  
21  /*   Author: gross@access.edu.au */  /*   Author: gross@access.edu.au */
22  /*   Version: $Id$ */  /*   Version: $Id$ */
23    
# Line 17  Line 30 
30  /*  prints the mesh to the standarts output: */  /*  prints the mesh to the standarts output: */
31    
32  void Finley_Mesh_print(Finley_Mesh *in) {  void Finley_Mesh_print(Finley_Mesh *in) {
33    int NN,i,j,numDim;    dim_t NN,i,j,numDim;
34    
35    /* write header */    /* write header */
36    
# Line 41  void Finley_Mesh_print(Finley_Mesh *in) Line 54  void Finley_Mesh_print(Finley_Mesh *in)
54    /*  write elements: */    /*  write elements: */
55    
56    if (in->Elements!=NULL) {    if (in->Elements!=NULL) {
57      printf( "=== %s:\nnumber of elements=%d\nnumber of colors=%d\n",      printf( "=== %s:\nnumber of elements=%d\ncolor range=[%d,%d]\n",
58                         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);
59      NN=in->Elements->ReferenceElement->Type->numNodes;      NN=in->Elements->ReferenceElement->Type->numNodes;
60      if (in->Elements->numElements>0) {      if (in->Elements->numElements>0) {
61         printf("Id,Tag,Color,Nodes\n");         printf("Id,Tag,Color,Nodes\n");
# Line 58  void Finley_Mesh_print(Finley_Mesh *in) Line 71  void Finley_Mesh_print(Finley_Mesh *in)
71    
72    
73    if (in->FaceElements!=NULL) {    if (in->FaceElements!=NULL) {
74      printf( "=== %s:\nnumber of elements=%d\nnumber of colors=%d\n",      printf( "=== %s:\nnumber of elements=%d\ncolor range=[%d,%d]\n",
75                         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);
76      NN=in->FaceElements->ReferenceElement->Type->numNodes;      NN=in->FaceElements->ReferenceElement->Type->numNodes;
77      if (in->FaceElements->numElements>0) {      if (in->FaceElements->numElements>0) {
78         printf("Id,Tag,Color,Nodes\n");         printf("Id,Tag,Color,Nodes\n");
# Line 73  void Finley_Mesh_print(Finley_Mesh *in) Line 86  void Finley_Mesh_print(Finley_Mesh *in)
86    
87    /*  write Contact elements : */    /*  write Contact elements : */
88    if (in->ContactElements!=NULL) {    if (in->ContactElements!=NULL) {
89      printf( "=== %s:\nnumber of elements=%d\nnumber of colors=%d\n",      printf( "=== %s:\nnumber of elements=%d\ncolor range=[%d,%d]\n",
90                         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);
91      NN=in->ContactElements->ReferenceElement->Type->numNodes;      NN=in->ContactElements->ReferenceElement->Type->numNodes;
92      if (in->ContactElements->numElements>0) {      if (in->ContactElements->numElements>0) {
93         printf("Id,Tag,Color,Nodes\n");         printf("Id,Tag,Color,Nodes\n");
# Line 88  void Finley_Mesh_print(Finley_Mesh *in) Line 101  void Finley_Mesh_print(Finley_Mesh *in)
101        
102    /*  write points: */    /*  write points: */
103    if (in->Points!=NULL) {    if (in->Points!=NULL) {
104      printf( "=== %s:\nnumber of elements=%d\nnumber of colors=%d\n",      printf( "=== %s:\nnumber of elements=%d\ncolor range=[%d,%d]\n",
105                         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);
106      NN=in->Points->ReferenceElement->Type->numNodes;      NN=in->Points->ReferenceElement->Type->numNodes;
107      if (in->Points->numElements>0) {      if (in->Points->numElements>0) {
108         printf("Id,Tag,Color,Nodes\n");         printf("Id,Tag,Color,Nodes\n");
# Line 104  void Finley_Mesh_print(Finley_Mesh *in) Line 117  void Finley_Mesh_print(Finley_Mesh *in)
117    
118  /*  /*
119  * $Log$  * $Log$
120  * Revision 1.1  2004/10/26 06:53:57  jgs  * Revision 1.3  2005/09/15 03:44:22  jgs
121  * Initial revision  * Merge of development branch dev-02 back to main trunk on 2005-09-15
122    *
123    * Revision 1.2.2.1  2005/09/07 06:26:19  gross
124    * the solver from finley are put into the standalone package paso now
125    *
126    * Revision 1.2  2005/07/08 04:07:54  jgs
127    * Merge of development branch back to main trunk on 2005-07-08
128    *
129    * Revision 1.1.1.1.2.1  2005/06/29 02:34:53  gross
130    * some changes towards 64 integers in finley
131    *
132    * Revision 1.1.1.1  2004/10/26 06:53:57  jgs
133    * initial import of project esys2
134  *  *
135  * Revision 1.1.1.1  2004/06/24 04:00:40  johng  * Revision 1.1.1.1  2004/06/24 04:00:40  johng
136  * Initial version of eys using boost-python.  * Initial version of eys using boost-python.

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

  ViewVC Help
Powered by ViewVC 1.1.26