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

Diff of /branches/diaplayground/finley/src/CPPAdapter/MeshAdapter.cpp

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

revision 2100 by gross, Wed Nov 26 08:13:00 2008 UTC revision 2149 by caltinay, Wed Dec 10 05:08:17 2008 UTC
# Line 1479  void MeshAdapter::saveDX(const std::stri Line 1479  void MeshAdapter::saveDX(const std::stri
1479        std::string n=boost::python::extract<std::string>(keys[i]);        std::string n=boost::python::extract<std::string>(keys[i]);
1480        escript::Data& d=boost::python::extract<escript::Data&>(arg[keys[i]]);        escript::Data& d=boost::python::extract<escript::Data&>(arg[keys[i]]);
1481        if (dynamic_cast<const MeshAdapter&>(*(d.getFunctionSpace().getDomain())) !=*this)        if (dynamic_cast<const MeshAdapter&>(*(d.getFunctionSpace().getDomain())) !=*this)
1482           throw FinleyAdapterException("Error  in saveVTK: Data must be defined on same Domain");           throw FinleyAdapterException("Error in saveDX: Data must be defined on same Domain");
1483        data[i]=d.getDataC();        data[i]=d.getDataC();
1484        ptr_data[i]= &(data[i]);        ptr_data[i]= &(data[i]);
1485        if (n.length()>MAX_namelength-1) {        if (n.length()>MAX_namelength-1) {
# Line 1524  void MeshAdapter::saveVTK(const std::str Line 1524  void MeshAdapter::saveVTK(const std::str
1524        std::string n=boost::python::extract<std::string>(keys[i]);        std::string n=boost::python::extract<std::string>(keys[i]);
1525        escript::Data& d=boost::python::extract<escript::Data&>(arg[keys[i]]);        escript::Data& d=boost::python::extract<escript::Data&>(arg[keys[i]]);
1526        if (dynamic_cast<const MeshAdapter&>(*(d.getFunctionSpace().getDomain())) !=*this)        if (dynamic_cast<const MeshAdapter&>(*(d.getFunctionSpace().getDomain())) !=*this)
1527           throw FinleyAdapterException("Error  in saveVTK: Data must be defined on same Domain");           throw FinleyAdapterException("Error in saveVTK: Data must be defined on same Domain");
1528        data[i]=d.getDataC();        data[i]=d.getDataC();
1529        ptr_data[i]=&(data[i]);        ptr_data[i]=&(data[i]);
1530        if (n.length()>MAX_namelength-1) {        if (n.length()>MAX_namelength-1) {

Legend:
Removed from v.2100  
changed lines
  Added in v.2149

  ViewVC Help
Powered by ViewVC 1.1.26