/[escript]/trunk/finley/src/CPPAdapter/MeshAdapter.cpp
ViewVC logotype

Diff of /trunk/finley/src/CPPAdapter/MeshAdapter.cpp

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

revision 3522 by gross, Tue May 24 00:57:58 2011 UTC revision 3546 by jfenwick, Thu Jul 28 01:32:20 2011 UTC
# Line 2444  void MeshAdapter:: addDiracPoints(const Line 2444  void MeshAdapter:: addDiracPoints(const
2444        int numTags=boost::python::extract<int>(tags.attr("__len__")());        int numTags=boost::python::extract<int>(tags.attr("__len__")());
2445        Finley_Mesh* mesh=m_finleyMesh.get();        Finley_Mesh* mesh=m_finleyMesh.get();
2446                
2447        if  ( (numTags > 0) and ( numPoints !=  numTags ) )        if  ( (numTags > 0) && ( numPoints !=  numTags ) )
2448       throw FinleyAdapterException("Error - if tags are given number of tags and points must match.");       throw FinleyAdapterException("Error - if tags are given number of tags and points must match.");
2449                
2450        double* points_ptr=TMPMEMALLOC(numPoints * dim, double);        double* points_ptr=TMPMEMALLOC(numPoints * dim, double);

Legend:
Removed from v.3522  
changed lines
  Added in v.3546

  ViewVC Help
Powered by ViewVC 1.1.26