/[escript]/branches/domexper/dudley/src/NodeFile.c
ViewVC logotype

Annotation of /branches/domexper/dudley/src/NodeFile.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 97 - (hide annotations)
Tue Dec 14 05:39:33 2004 UTC (14 years, 4 months ago) by jgs
Original Path: trunk/esys2/finley/src/finleyC/NodeFile.c
File MIME type: text/plain
File size: 2012 byte(s)
*** empty log message ***

1 jgs 82 /* $Id$ */
2     /**************************************************************/
3     /* */
4     /* Finley: Mesh : NodeFile */
5     /* */
6     /* allocates and deallocates node files */
7     /* */
8     /**************************************************************/
9    
10     /* Copyrights by ACcESS Australia 2003/04 */
11     /* Author: gross@access.edu.au */
12     /* Version: $Id$ */
13    
14     /**************************************************************/
15    
16     #include "Finley.h"
17     #include "NodeFile.h"
18    
19     /**************************************************************/
20    
21     /* allocates a node file to hold nodes */
22     /* use Finley_NodeFile_allocTable to allocate the node table (Id,Coordinatess). */
23    
24     Finley_NodeFile* Finley_NodeFile_alloc(int numDim){
25     Finley_NodeFile *out;
26    
27     /* allocate the return value */
28    
29 jgs 97 out=MEMALLOC(1,Finley_NodeFile);
30 jgs 82 if (Finley_checkPtr(out)) return NULL;
31     out->numNodes=0;
32     out->numDegreesOfFreedom=0;
33     out->reducedNumDegreesOfFreedom=0;
34     out->reducedNumNodes=0;
35     out->numDim=numDim;
36     out->Id=NULL;
37     out->Tag=NULL;
38     out->Coordinates=NULL;
39     out->degreeOfFreedom=NULL;
40     out->reducedDegreeOfFreedom=NULL;
41     out->toReduced=NULL;
42     return out;
43     }
44    
45     /* deallocates a node file: */
46    
47     void Finley_NodeFile_dealloc(Finley_NodeFile* in) {
48     if (in!=NULL) {
49     #ifdef Finley_TRACE
50     printf("node file is deallocated.\n");
51     #endif
52     Finley_NodeFile_deallocTable(in);
53     MEMFREE(in);
54     }
55     }
56     /*
57     * $Log$
58 jgs 97 * Revision 1.2 2004/12/14 05:39:30 jgs
59     * *** empty log message ***
60 jgs 82 *
61 jgs 97 * Revision 1.1.1.1.2.1 2004/11/24 01:37:14 gross
62     * some changes dealing with the integer overflow in memory allocation. Finley solves 4M unknowns now
63     *
64     * Revision 1.1.1.1 2004/10/26 06:53:57 jgs
65     * initial import of project esys2
66     *
67 jgs 82 * Revision 1.1.1.1 2004/06/24 04:00:40 johng
68     * Initial version of eys using boost-python.
69     *
70     *
71     */

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26