/[escript]/trunk/dataexporter/src/ElementData.cpp
ViewVC logotype

Diff of /trunk/dataexporter/src/ElementData.cpp

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

revision 2897 by caltinay, Fri Jan 29 00:07:00 2010 UTC revision 2898 by caltinay, Mon Feb 1 01:23:46 2010 UTC
# Line 14  Line 14 
14  #include <escriptexport/ElementData.h>  #include <escriptexport/ElementData.h>
15  #include <escriptexport/NodeData.h>  #include <escriptexport/NodeData.h>
16    
17  extern "C" {  #include <finley/CppAdapter/MeshAdapter.h>
 #include <finley/ElementFile.h>  
 }  
18    
19  #include <iostream>  #include <iostream>
20    
# Line 272  bool ElementData::readFromNc(NcFile* ncf Line 270  bool ElementData::readFromNc(NcFile* ncf
270              int order = att->as_int(0);              int order = att->as_int(0);
271              att = ncfile->get_att("reduced_order");              att = ncfile->get_att("reduced_order");
272              int reduced_order = att->as_int(0);              int reduced_order = att->as_int(0);
273              Finley_ReferenceElementSet* refElements =              finley::ReferenceElementSetWrapper wrapper(finleyTypeId, order,
274                  Finley_ReferenceElementSet_alloc(finleyTypeId, order,                      reduced_order);
275                          reduced_order);              Finley_ReferenceElementSet* refElements = wrapper.getElementSet();
276    
277              CoordArray quadNodes;              CoordArray quadNodes;
278              int numQuadNodes;              int numQuadNodes;
# Line 309  bool ElementData::readFromNc(NcFile* ncf Line 307  bool ElementData::readFromNc(NcFile* ncf
307              for (int i=0; i<f.quadDim; i++)              for (int i=0; i<f.quadDim; i++)
308                  delete[] quadNodes[i];                  delete[] quadNodes[i];
309              quadNodes.clear();              quadNodes.clear();
             Finley_ReferenceElementSet_dealloc(refElements);  
310          }          }
311    
312          buildMeshes();          buildMeshes();

Legend:
Removed from v.2897  
changed lines
  Added in v.2898

  ViewVC Help
Powered by ViewVC 1.1.26