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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3096 - (show annotations)
Thu Aug 19 01:40:52 2010 UTC (9 years, 1 month ago) by caltinay
File size: 1958 byte(s)
-New VisIt simulation control interface in weipa (uses VisIt's simv2)
-Rewrote restarts.py to be a more generic data manager for restarts and exports
-Removed weipa python file since the functionality is now handled by restarts.py

1
2 /*******************************************************
3 *
4 * Copyright (c) 2003-2010 by University of Queensland
5 * Earth Systems Science Computational Center (ESSCC)
6 * http://www.uq.edu.au/esscc
7 *
8 * Primary Business: Queensland, Australia
9 * Licensed under the Open Software License version 3.0
10 * http://www.opensource.org/licenses/osl-3.0.php
11 *
12 *******************************************************/
13
14
15 #include <weipa/FileSavers.h>
16 #include <weipa/VisItControl.h>
17
18 #include <boost/python.hpp>
19 #include <boost/python/module.hpp>
20 #include <boost/python/def.hpp>
21 #include <boost/python/object.hpp>
22 #include <boost/version.hpp>
23
24 using namespace boost::python;
25
26 /*! \mainpage Esys Documentation
27 *
28 * \version 3.0.0
29 *
30 * - \ref escript
31 *
32 * - \ref esys_exception "Esys Exception"
33 *
34 * - \ref finley
35 *
36 * - <a href="../../epydoc/index.html">Python module documentation (epydoc generated)</a>
37 *
38 */
39
40 /*! \page weipa Weipa
41 * Weipa is the python module that contains the interfaces
42 * to the C++ side of the escript data exporter.
43 *
44 *
45 *
46 * \section class_desc Class Description:
47 * None
48 *
49 * \section class_limits Class Limitations:
50 * None
51 *
52 * \section class_conds Class Conditions of Use:
53 * None
54 *
55 * \section class_throws Throws:
56 * None
57 *
58 */
59
60 BOOST_PYTHON_MODULE(weipacpp)
61 {
62 #if BOOST_VERSION >= 103500
63 // params are: bool show_user_defined, bool show_py_signatures, bool show_cpp_signatures
64 docstring_options docopt(true,true,false);
65 #endif
66
67 // File savers
68 def("_saveSilo", weipa::saveSilo, (args("filename", "cycle", "time", "domain", "datavars")));
69 def("_saveVTK", weipa::saveVTK, (args("filename", "cycle", "time", "domain", "datavars", "metadata", "metadata_schema")));
70
71 // VisIt Control
72 def("_visitInitialize", weipa::VisItControl::initialize, (args(
73 "simFile", "comment")));
74 def("_visitPublishData", weipa::VisItControl::publishData, (args(
75 "cycle", "time", "domain", "datavars")));
76 }
77

  ViewVC Help
Powered by ViewVC 1.1.26