/[escript]/trunk/weipa/src/weipacpp.cpp
ViewVC logotype

Diff of /trunk/weipa/src/weipacpp.cpp

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

revision 3127 by caltinay, Thu Aug 19 01:40:52 2010 UTC revision 3128 by caltinay, Wed Sep 1 03:54:09 2010 UTC
# Line 12  Line 12 
12  *******************************************************/  *******************************************************/
13    
14    
15  #include <weipa/FileSavers.h>  #include <escript/Data.h>
16    
17    #include <weipa/EscriptDataset.h>
18  #include <weipa/VisItControl.h>  #include <weipa/VisItControl.h>
19    
20  #include <boost/python.hpp>  #include <boost/python.hpp>
# Line 64  BOOST_PYTHON_MODULE(weipacpp) Line 66  BOOST_PYTHON_MODULE(weipacpp)
66    docstring_options docopt(true,true,false);    docstring_options docopt(true,true,false);
67  #endif  #endif
68    
69    // File savers      class_<weipa::EscriptDataset>("EscriptDataset","Represents an escript dataset including a domain and data variables for one timestep. It is used for exporting", init<>())
70    def("_saveSilo", weipa::saveSilo, (args("filename", "cycle", "time", "domain", "datavars")));          .def("setDomain", &weipa::EscriptDataset::setDomain)
71    def("_saveVTK", weipa::saveVTK, (args("filename", "cycle", "time", "domain", "datavars", "metadata", "metadata_schema")));          .def("addData", &weipa::EscriptDataset::addData, (arg("data"), arg("name"), arg("units")=""))
72            .def("setCycleAndTime", &weipa::EscriptDataset::setCycleAndTime, args("cycle","time"))
73    // VisIt Control          .def("setMeshLabels", &weipa::EscriptDataset::setMeshLabels, (arg("x"),arg("y"),arg("z")=""))
74    def("_visitInitialize", weipa::VisItControl::initialize, (args(          .def("setMeshUnits", &weipa::EscriptDataset::setMeshUnits, (arg("x"),arg("y"),arg("z")=""))
75                    "simFile", "comment")));          .def("setMetadataSchemaString", &weipa::EscriptDataset::setMetadataSchemaString, (arg("schema"),arg("metadata")=""))
76    def("_visitPublishData", weipa::VisItControl::publishData, (args(          .def("saveSilo", &weipa::EscriptDataset::saveSilo, (arg("filename"), arg("useMultimesh")=true))
77                    "cycle", "time", "domain", "datavars")));          .def("saveVTK", &weipa::EscriptDataset::saveVTK, args("filename"));
78    
79        // VisIt Control
80        def("visitInitialize", weipa::VisItControl::initialize, (arg("simFile"), arg("comment")=""));
81        def("visitPublishData", weipa::VisItControl::publishData, args("dataset"));
82  }  }
83    

Legend:
Removed from v.3127  
changed lines
  Added in v.3128

  ViewVC Help
Powered by ViewVC 1.1.26