/[escript]/branches/domexper/finley/src/ElementFile.c
ViewVC logotype

Diff of /branches/domexper/finley/src/ElementFile.c

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

revision 123 by jgs, Fri Jul 8 04:08:13 2005 UTC revision 150 by jgs, Thu Sep 15 03:44:45 2005 UTC
# Line 1  Line 1 
1  /* $Id$ */  /*
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: ElementFile */  /*   Finley: ElementFile */
# Line 8  Line 21 
21    
22  /**************************************************************/  /**************************************************************/
23    
 /*   Copyrights by ACcESS Australia 2003/04 */  
24  /*   Author: gross@access.edu.au */  /*   Author: gross@access.edu.au */
25  /*   Version: $Id$ */  /*   Version: $Id$ */
26    
27  /**************************************************************/  /**************************************************************/
28    
 #include "Finley.h"  
29  #include "ElementFile.h"  #include "ElementFile.h"
30    
31  /**************************************************************/  /**************************************************************/
# Line 28  Finley_ElementFile* Finley_ElementFile_a Line 39  Finley_ElementFile* Finley_ElementFile_a
39        
40    if (order<0) order=2*Finley_RefElement_InfoList[id].numOrder;    if (order<0) order=2*Finley_RefElement_InfoList[id].numOrder;
41    NQ= Finley_RefElement_InfoList[id].getNumQuadNodes(order);    NQ= Finley_RefElement_InfoList[id].getNumQuadNodes(order);
42    if (Finley_ErrorCode!=NO_ERROR) return NULL;    if (! Finley_noError()) return NULL;
43        
44    /*  allocate the return value */    /*  allocate the return value */
45        
# Line 48  Finley_ElementFile* Finley_ElementFile_a Line 59  Finley_ElementFile* Finley_ElementFile_a
59    /*  allocate the reference element: */    /*  allocate the reference element: */
60        
61    out->ReferenceElement=Finley_RefElement_alloc(id,NQ);    out->ReferenceElement=Finley_RefElement_alloc(id,NQ);
62    if (Finley_ErrorCode!=NO_ERROR) {    if (! Finley_noError()) {
63       Finley_ElementFile_dealloc(out);       Finley_ElementFile_dealloc(out);
64       return NULL;       return NULL;
65    }    }
66    out->LinearReferenceElement=Finley_RefElement_alloc(Finley_RefElement_InfoList[id].LinearTypeId,NQ);    out->LinearReferenceElement=Finley_RefElement_alloc(Finley_RefElement_InfoList[id].LinearTypeId,NQ);
67    if (Finley_ErrorCode!=NO_ERROR) {    if (! Finley_noError()) {
68       Finley_ElementFile_dealloc(out);       Finley_ElementFile_dealloc(out);
69       return NULL;       return NULL;
70    }    }
# Line 75  void Finley_ElementFile_dealloc(Finley_E Line 86  void Finley_ElementFile_dealloc(Finley_E
86  }  }
87  /*  /*
88  * $Log$  * $Log$
89    * Revision 1.6  2005/09/15 03:44:21  jgs
90    * Merge of development branch dev-02 back to main trunk on 2005-09-15
91    *
92    * Revision 1.5.2.1  2005/09/07 06:26:18  gross
93    * the solver from finley are put into the standalone package paso now
94    *
95  * Revision 1.5  2005/07/08 04:07:48  jgs  * Revision 1.5  2005/07/08 04:07:48  jgs
96  * Merge of development branch back to main trunk on 2005-07-08  * Merge of development branch back to main trunk on 2005-07-08
97  *  *

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

  ViewVC Help
Powered by ViewVC 1.1.26