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

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

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

trunk/esys2/finley/src/finleyC/Mesh_line3.c revision 149 by jgs, Thu Sep 1 03:31:39 2005 UTC trunk/finley/src/finleyC/Mesh_line3.c revision 155 by jgs, Wed Nov 9 02:02:19 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: generates rectangular meshes  */  /*   Finley: generates rectangular meshes  */
# Line 7  Line 21 
21    
22  /**************************************************************/  /**************************************************************/
23    
24  /*   Copyrights by ACcESS Australia 2003/04 */  /*  Author: gross@access.edu.au */
25  /*   Author: gross@access.edu.au */  /*  Version: $Id$ */
 /*   Version: $Id$ */  
26    
27  /**************************************************************/  /**************************************************************/
28    
 #include "Common.h"  
 #include "Finley.h"  
 #include "Mesh.h"  
29  #include "RectangularMesh.h"  #include "RectangularMesh.h"
30    
31  /**************************************************************/  /**************************************************************/
# Line 40  Finley_Mesh* Finley_RectangularMesh_Line Line 50  Finley_Mesh* Finley_RectangularMesh_Line
50        
51    sprintf(name,"Rectangular mesh with %d nodes",N0);    sprintf(name,"Rectangular mesh with %d nodes",N0);
52    out=Finley_Mesh_alloc(name,1,order);    out=Finley_Mesh_alloc(name,1,order);
53    if (Finley_ErrorCode!=NO_ERROR) return NULL;    if (! Finley_noError()) return NULL;
54    
55    out->Elements=Finley_ElementFile_alloc(Line3,out->order);    out->Elements=Finley_ElementFile_alloc(Line3,out->order);
56    if (useElementsOnFace) {    if (useElementsOnFace) {
# Line 51  Finley_Mesh* Finley_RectangularMesh_Line Line 61  Finley_Mesh* Finley_RectangularMesh_Line
61      out->ContactElements=Finley_ElementFile_alloc(Point1_Contact,out->order);      out->ContactElements=Finley_ElementFile_alloc(Point1_Contact,out->order);
62    }    }
63    out->Points=Finley_ElementFile_alloc(Point1,out->order);    out->Points=Finley_ElementFile_alloc(Point1,out->order);
64    if (Finley_ErrorCode!=NO_ERROR) {    if (! Finley_noError()) {
65         Finley_Mesh_dealloc(out);         Finley_Mesh_dealloc(out);
66         return NULL;         return NULL;
67    }    }
# Line 61  Finley_Mesh* Finley_RectangularMesh_Line Line 71  Finley_Mesh* Finley_RectangularMesh_Line
71    Finley_NodeFile_allocTable(out->Nodes,N0);    Finley_NodeFile_allocTable(out->Nodes,N0);
72    Finley_ElementFile_allocTable(out->Elements,NE0);    Finley_ElementFile_allocTable(out->Elements,NE0);
73    Finley_ElementFile_allocTable(out->FaceElements,NFaceElements);    Finley_ElementFile_allocTable(out->FaceElements,NFaceElements);
74    if (Finley_ErrorCode!=NO_ERROR) {    if (! Finley_noError()) {
75        Finley_Mesh_dealloc(out);        Finley_Mesh_dealloc(out);
76        return NULL;        return NULL;
77    }    }
# Line 146  Finley_Mesh* Finley_RectangularMesh_Line Line 156  Finley_Mesh* Finley_RectangularMesh_Line
156    printf("timing: mesh generation: %.4e sec\n",Finley_timer()-time0);    printf("timing: mesh generation: %.4e sec\n",Finley_timer()-time0);
157    #endif    #endif
158    
159    if (Finley_ErrorCode!=NO_ERROR) {    if (! Finley_noError()) {
160        Finley_Mesh_dealloc(out);        Finley_Mesh_dealloc(out);
161        return NULL;        return NULL;
162    }    }
# Line 154  Finley_Mesh* Finley_RectangularMesh_Line Line 164  Finley_Mesh* Finley_RectangularMesh_Line
164  }  }
165    
166  /*  /*
 * $Log$  
167  * Revision 1.3  2005/09/01 03:31:36  jgs  * Revision 1.3  2005/09/01 03:31:36  jgs
168  * Merge of development branch dev-02 back to main trunk on 2005-09-01  * Merge of development branch dev-02 back to main trunk on 2005-09-01
169  *  *
170    * Revision 1.2.2.2  2005/09/07 06:26:19  gross
171    * the solver from finley are put into the standalone package paso now
172    *
173  * Revision 1.2.2.1  2005/08/24 02:02:18  gross  * Revision 1.2.2.1  2005/08/24 02:02:18  gross
174  * timing output switched off. solver output can be swiched through getSolution(verbose=True) now.  * timing output switched off. solver output can be swiched through getSolution(verbose=True) now.
175  *  *

Legend:
Removed from v.149  
changed lines
  Added in v.155

  ViewVC Help
Powered by ViewVC 1.1.26