/[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 3224 by jfenwick, Wed Sep 29 05:19:37 2010 UTC revision 3227 by jfenwick, Thu Sep 30 06:07:08 2010 UTC
# Line 23  Line 23 
23  /*   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, */
24  /*   the most appropriate order is selected indepently. */  /*   the most appropriate order is selected indepently. */
25    
26  Dudley_Mesh *Dudley_Mesh_alloc(char *name, dim_t numDim, Paso_MPIInfo * mpi_info)  Dudley_Mesh *Dudley_Mesh_alloc(char *name, dim_t numDim, Esys_MPIInfo * mpi_info)
27  {  {
28      Dudley_Mesh *out;      Dudley_Mesh *out;
29    
# Line 44  Dudley_Mesh *Dudley_Mesh_alloc(char *nam Line 44  Dudley_Mesh *Dudley_Mesh_alloc(char *nam
44      out->FullReducedPattern = NULL;      out->FullReducedPattern = NULL;
45      out->ReducedFullPattern = NULL;      out->ReducedFullPattern = NULL;
46      out->ReducedReducedPattern = NULL;      out->ReducedReducedPattern = NULL;
47      out->MPIInfo = Paso_MPIInfo_getReference(mpi_info);      out->MPIInfo = Esys_MPIInfo_getReference(mpi_info);
48      if (!Dudley_noError())      if (!Dudley_noError())
49      {      {
50      Dudley_Mesh_free(out);      Dudley_Mesh_free(out);
# Line 88  Dudley_Mesh *Dudley_Mesh_reference(Dudle Line 88  Dudley_Mesh *Dudley_Mesh_reference(Dudle
88      return in;      return in;
89  }  }
90    
91  /*   freeates a mesh: */  /*   frees a mesh: */
92    
93  void Dudley_Mesh_free(Dudley_Mesh * in)  void Dudley_Mesh_free(Dudley_Mesh * in)
94  {  {
# Line 107  void Dudley_Mesh_free(Dudley_Mesh * in) Line 107  void Dudley_Mesh_free(Dudley_Mesh * in)
107          Paso_SystemMatrixPattern_free(in->FullReducedPattern);          Paso_SystemMatrixPattern_free(in->FullReducedPattern);
108          Paso_SystemMatrixPattern_free(in->ReducedFullPattern);          Paso_SystemMatrixPattern_free(in->ReducedFullPattern);
109          Paso_SystemMatrixPattern_free(in->ReducedReducedPattern);          Paso_SystemMatrixPattern_free(in->ReducedReducedPattern);
110          Paso_MPIInfo_free(in->MPIInfo);          Esys_MPIInfo_free(in->MPIInfo);
111          MEMFREE(in);          MEMFREE(in);
112      }      }
113      }      }

Legend:
Removed from v.3224  
changed lines
  Added in v.3227

  ViewVC Help
Powered by ViewVC 1.1.26