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

Contents of /trunk/finley/src/NodeFile.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 616 - (show annotations)
Wed Mar 22 02:46:56 2006 UTC (13 years, 6 months ago) by elspeth
File MIME type: text/plain
File size: 2404 byte(s)
Copyright added to more source files.

1 /*
2 ************************************************************
3 * Copyright 2006 by ACcESS MNRF *
4 * *
5 * http://www.access.edu.au *
6 * Primary Business: Queensland, Australia *
7 * Licensed under the Open Software License version 3.0 *
8 * http://www.opensource.org/licenses/osl-3.0.php *
9 * *
10 ************************************************************
11 */
12
13 /**************************************************************/
14 /* */
15 /* Finley: Mesh : NodeFile */
16 /* */
17 /* allocates and deallocates node files */
18 /* */
19 /**************************************************************/
20
21 /* Author: gross@access.edu.au */
22 /* Version: $Id$ */
23
24 /**************************************************************/
25
26 #include "NodeFile.h"
27
28 /**************************************************************/
29
30 /* allocates a node file to hold nodes */
31 /* use Finley_NodeFile_allocTable to allocate the node table (Id,Coordinatess). */
32
33 Finley_NodeFile* Finley_NodeFile_alloc(int numDim){
34 Finley_NodeFile *out;
35
36 /* allocate the return value */
37
38 out=MEMALLOC(1,Finley_NodeFile);
39 if (Finley_checkPtr(out)) return NULL;
40 out->numNodes=0;
41 out->numDegreesOfFreedom=0;
42 out->reducedNumDegreesOfFreedom=0;
43 out->reducedNumNodes=0;
44 out->numDim=numDim;
45 out->Id=NULL;
46 out->Tag=NULL;
47 out->Coordinates=NULL;
48 out->degreeOfFreedom=NULL;
49 out->reducedDegreeOfFreedom=NULL;
50 out->toReduced=NULL;
51 return out;
52 }
53
54 /* deallocates a node file: */
55
56 void Finley_NodeFile_dealloc(Finley_NodeFile* in) {
57 if (in!=NULL) {
58 #ifdef Finley_TRACE
59 printf("node file is deallocated.\n");
60 #endif
61 Finley_NodeFile_deallocTable(in);
62 MEMFREE(in);
63 }
64 }
65 /*
66 * $Log$
67 * Revision 1.5 2005/09/15 03:44:23 jgs
68 * Merge of development branch dev-02 back to main trunk on 2005-09-15
69 *
70 * Revision 1.4.2.1 2005/09/07 06:26:20 gross
71 * the solver from finley are put into the standalone package paso now
72 *
73 * Revision 1.4 2004/12/15 07:08:33 jgs
74 * *** empty log message ***
75 *
76 *
77 *
78 */

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26