/[escript]/branches/doubleplusgood/dudley/src/Mesh.cpp
ViewVC logotype

Diff of /branches/doubleplusgood/dudley/src/Mesh.cpp

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

revision 2548 by jfenwick, Mon Jul 20 06:20:06 2009 UTC revision 2748 by gross, Tue Nov 17 07:32:59 2009 UTC
# Line 24  Line 24 
24  /*   allocates a Mesh with name name for elements of type id using an integration order. If order is negative, */  /*   allocates a Mesh with name name for elements of type id using an integration order. If order is negative, */
25  /*   the most appropriate order is selected indepently. */  /*   the most appropriate order is selected indepently. */
26    
 extern Finley_RefElementInfo Finley_RefElement_InfoList[];  
   
27  Finley_Mesh* Finley_Mesh_alloc(char* name,dim_t numDim, index_t order, index_t reduced_order, Paso_MPIInfo *mpi_info)  Finley_Mesh* Finley_Mesh_alloc(char* name,dim_t numDim, index_t order, index_t reduced_order, Paso_MPIInfo *mpi_info)
28  {  {
29    Finley_Mesh *out;    Finley_Mesh *out;
# Line 90  void Finley_Mesh_free(Finley_Mesh* in) { Line 88  void Finley_Mesh_free(Finley_Mesh* in) {
88    if (in!=NULL) {    if (in!=NULL) {
89       in->reference_counter--;       in->reference_counter--;
90       if (in->reference_counter<1) {       if (in->reference_counter<1) {
        #ifdef Finley_TRACE  
        if (in->Name!=NULL) {  
            printf("Finley_Mesh_free: mesh %s is freed.\n",in->Name);  
        } else {  
            printf("Finley_Mesh_free\n");  
        }  
        #endif  
91         MEMFREE(in->Name);         MEMFREE(in->Name);
92         Finley_NodeFile_free(in->Nodes);         Finley_NodeFile_free(in->Nodes);
93         Finley_ElementFile_free(in->FaceElements);         Finley_ElementFile_free(in->FaceElements);

Legend:
Removed from v.2548  
changed lines
  Added in v.2748

  ViewVC Help
Powered by ViewVC 1.1.26