~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to dolfin/mesh/ALE.cpp

  • Committer: Anders Logg
  • Date: 2008-05-27 21:37:34 UTC
  • mto: (2668.1.38 trunk)
  • mto: This revision was merged to the branch mainline in revision 2670.
  • Revision ID: logg@simula.no-20080527213734-8srthxd396wsz50j
Bug fix in ALE.cpp from Solveig

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
    memcpy(v->x(), new_x + v->index()*dim, dim*sizeof(real));
47
47
  
48
48
  delete [] new_x;
49
 
  for (uint i=0; i<new_boundary.numVertices(); i++) 
50
 
    delete [] ghat[i];
 
49
  if (method==hermite)
 
50
    for (uint i=0; i<new_boundary.numVertices(); i++) 
 
51
      delete [] ghat[i];
51
52
  delete [] ghat;
52
53
}
53
54
//-----------------------------------------------------------------------------