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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3143 - (show annotations)
Fri Sep 3 00:31:55 2010 UTC (10 years, 5 months ago) by caltinay
File MIME type: text/plain
File size: 1749 byte(s)
-Moved finley specifics into weipa subclasses
-EscriptDataset is now the only weipa class exported in Windows
-Some weipa code cleanup


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 #ifndef __WEIPA_VISITDATA_H__
15 #define __WEIPA_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() : runFlag(false) {}
29
30 void publishData(EscriptDataset_ptr ds) { dataset=ds; }
31 void setCommandNames(std::vector<std::string> names) { cmdNames=names; }
32 void setSimulationStatus(bool running) { runFlag=running; }
33
34 visit_handle getDomainList();
35 visit_handle getMesh(const char* name);
36 visit_handle getSimMetaData();
37 visit_handle getVariable(const char* name);
38
39 private:
40 void addExpressionMetadata(visit_handle smd, const std::string& name,
41 const std::string& def, int type);
42 void addMeshMetadata(visit_handle smd, const std::string& name,
43 int dim, int numDoms);
44 void addVariableMetadata(visit_handle smd, const std::string& name,
45 const std::string& meshName, int centering,
46 int rank);
47
48 bool runFlag;
49 EscriptDataset_ptr dataset;
50 std::vector<std::string> cmdNames;
51 std::map<std::string, DataVar_ptr> variables;
52 };
53
54 typedef boost::shared_ptr<VisItData> VisItData_ptr;
55
56
57 } // namespace weipa
58
59 #endif // __WEIPA_VISITDATA_H__
60

  ViewVC Help
Powered by ViewVC 1.1.26