/[escript]/trunk/weipa/src/VisItData.h
ViewVC logotype

Annotation of /trunk/weipa/src/VisItData.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3096 - (hide annotations)
Thu Aug 19 01:40:52 2010 UTC (10 years, 3 months ago) by caltinay
File MIME type: text/plain
File size: 1907 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 caltinay 3096
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     #ifndef __VISITDATA_H__
15     #define __VISITDATA_H__
16    
17     #include <escript/AbstractDomain.h>
18     #include <escript/Data.h>
19     #include <weipa/EscriptDataset.h>
20    
21     #include <VisItInterfaceTypes_V2.h>
22    
23     namespace weipa {
24    
25     class VisItData {
26    
27     public:
28     VisItData();
29    
30     void publishData(escript::const_Domain_ptr domain,
31     const boost::python::dict& datavars);
32    
33     void setCommandNames(std::vector<std::string> commandNames);
34     void setSimulationStatus(bool runFlag, double time, int cycle);
35    
36     visit_handle getDomainList();
37     visit_handle getMesh(const char* name);
38     visit_handle getSimMetaData();
39     visit_handle getVariable(const char* name);
40    
41     private:
42     void addExpressionMetadata(visit_handle smd, const std::string& name,
43     const std::string& def, int type);
44     void addMeshMetadata(visit_handle smd, const std::string& name,
45     int dim, int numDoms);
46     void addVariableMetadata(visit_handle smd, const std::string& name,
47     const std::string& meshName, int centering,
48     int rank);
49    
50     int mpiRank, mpiSize;
51     int cycle;
52     double time;
53     bool runFlag;
54     std::vector<std::string> cmdNames;
55     escript::const_Domain_ptr escriptDomain;
56     DataVec dataVec;
57     StringVec varNames;
58     EscriptDataset_ptr dataset;
59     std::map<std::string, DataVar_ptr> variables;
60     };
61    
62     typedef boost::shared_ptr<VisItData> VisItData_ptr;
63    
64    
65     } // namespace weipa
66    
67     #endif // __VISITDATA_H__
68    

  ViewVC Help
Powered by ViewVC 1.1.26