/[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 792 by gross, Fri Jun 30 07:29:08 2006 UTC revision 793 by dhawcroft, Sat Jul 29 19:40:22 2006 UTC
# Line 716  void MeshAdapter::saveDX(const std::stri Line 716  void MeshAdapter::saveDX(const std::stri
716      for (int i=0;i<num_data;++i) {      for (int i=0;i<num_data;++i) {
717           escript::Data& d=boost::python::extract<escript::Data&>(arg[keys[i]]);           escript::Data& d=boost::python::extract<escript::Data&>(arg[keys[i]]);
718           if (dynamic_cast<const MeshAdapter&>(d.getFunctionSpace().getDomain()) !=*this)           if (dynamic_cast<const MeshAdapter&>(d.getFunctionSpace().getDomain()) !=*this)
719               throw FinleyAdapterException("Error  in saveVTK: Data must be defined on same Domain");               throw FinleyAdapterException("Error  in saveDX: Data must be defined on same Domain");
720           data[i]=d.getDataC();           data[i]=d.getDataC();
721           ptr_data[i]=&(data[i]);           ptr_data[i]=&(data[i]);
722           std::string n=boost::python::extract<std::string>(keys[i]);           std::string n=boost::python::extract<std::string>(keys[i]);
# Line 776  void MeshAdapter::saveVTK(const std::str Line 776  void MeshAdapter::saveVTK(const std::str
776              strcpy(c_names[i],n.c_str());              strcpy(c_names[i],n.c_str());
777           }           }
778      }      }
779    #ifndef PASO_MPI    
780      Finley_Mesh_saveVTK(filename.c_str(),m_finleyMesh.get(),num_data,c_names,ptr_data);      Finley_Mesh_saveVTK(filename.c_str(),m_finleyMesh.get(),num_data,c_names,ptr_data);
781      checkFinleyError();  #else
782        Finley_Mesh_saveVTK_MPIO(filename.c_str(),m_finleyMesh.get(),num_data,c_names,ptr_data);
783    #endif
784    
785    checkFinleyError();
786    /* win32 refactor */    /* win32 refactor */
787    TMPMEMFREE(c_names);    TMPMEMFREE(c_names);
788    TMPMEMFREE(data);    TMPMEMFREE(data);

Legend:
Removed from v.792  
changed lines
  Added in v.793

  ViewVC Help
Powered by ViewVC 1.1.26