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

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

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

temp_trunk_copy/finley/src/NodeFile.c revision 1384 by phornby, Fri Jan 11 02:29:38 2008 UTC trunk/finley/src/NodeFile.c revision 3259 by jfenwick, Mon Oct 11 01:48:14 2010 UTC
# Line 1  Line 1 
1    
 /* $Id$ */  
   
2  /*******************************************************  /*******************************************************
3   *  *
4   *           Copyright 2003-2007 by ACceSS MNRF  * Copyright (c) 2003-2010 by University of Queensland
5   *       Copyright 2007 by University of Queensland  * Earth Systems Science Computational Center (ESSCC)
6   *  * http://www.uq.edu.au/esscc
7   *                http://esscc.uq.edu.au  *
8   *        Primary Business: Queensland, Australia  * Primary Business: Queensland, Australia
9   *  Licensed under the Open Software License version 3.0  * Licensed under the Open Software License version 3.0
10   *     http://www.opensource.org/licenses/osl-3.0.php  * http://www.opensource.org/licenses/osl-3.0.php
11   *  *
12   *******************************************************/  *******************************************************/
13    
14    
15  /**************************************************************/  /**************************************************************/
16  /*                                                             */  /*                                                             */
# Line 28  Line 27 
27  /*   allocates a node file to hold nodes */  /*   allocates a node file to hold nodes */
28  /*   use Finley_NodeFile_allocTable to allocate the node table (Id,Coordinatess). */  /*   use Finley_NodeFile_allocTable to allocate the node table (Id,Coordinatess). */
29    
30  Finley_NodeFile* Finley_NodeFile_alloc(dim_t numDim, Paso_MPIInfo *MPIInfo)  Finley_NodeFile* Finley_NodeFile_alloc(dim_t numDim, Esys_MPIInfo *MPIInfo)
31  {  {
32    Finley_NodeFile *out;    Finley_NodeFile *out;
33        
# Line 38  Finley_NodeFile* Finley_NodeFile_alloc(d Line 37  Finley_NodeFile* Finley_NodeFile_alloc(d
37    if (Finley_checkPtr(out)) return NULL;    if (Finley_checkPtr(out)) return NULL;
38    out->numNodes=0;    out->numNodes=0;
39    out->numDim=numDim;    out->numDim=numDim;
40      out->numTagsInUse=0;
41    out->Id=NULL;    out->Id=NULL;
42    out->globalDegreesOfFreedom=NULL;    out->globalDegreesOfFreedom=NULL;
43    out->Tag=NULL;    out->Tag=NULL;
# Line 59  Finley_NodeFile* Finley_NodeFile_alloc(d Line 59  Finley_NodeFile* Finley_NodeFile_alloc(d
59    out->reducedNodesDistribution=NULL;    out->reducedNodesDistribution=NULL;
60    out->degreesOfFreedomDistribution=NULL;    out->degreesOfFreedomDistribution=NULL;
61    out->reducedDegreesOfFreedomDistribution=NULL;    out->reducedDegreesOfFreedomDistribution=NULL;
62    out->degreesOfFreedomCoupler=NULL;    out->degreesOfFreedomConnector=NULL;
63    out->reducedDegreesOfFreedomCoupler=NULL;    out->reducedDegreesOfFreedomConnector=NULL;
64      out->tagsInUse=NULL;
65    
66    out->MPIInfo = Paso_MPIInfo_getReference( MPIInfo );    out->MPIInfo = Esys_MPIInfo_getReference( MPIInfo );
67    return out;    return out;
68  }  }
69    
# Line 71  Finley_NodeFile* Finley_NodeFile_alloc(d Line 72  Finley_NodeFile* Finley_NodeFile_alloc(d
72  void Finley_NodeFile_free(Finley_NodeFile* in) {  void Finley_NodeFile_free(Finley_NodeFile* in) {
73    if (in!=NULL) {    if (in!=NULL) {
74       Finley_NodeFile_freeTable(in);       Finley_NodeFile_freeTable(in);
75       Paso_MPIInfo_free( in->MPIInfo );       Esys_MPIInfo_free( in->MPIInfo );
76       MEMFREE(in);             MEMFREE(in);      
77    }    }
78  }  }

Legend:
Removed from v.1384  
changed lines
  Added in v.3259

  ViewVC Help
Powered by ViewVC 1.1.26