escript  Revision_
WeipaException.h
Go to the documentation of this file.
1 
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2018 by The University of Queensland
5 * http://www.uq.edu.au
6 *
7 * Primary Business: Queensland, Australia
8 * Licensed under the Apache License, version 2.0
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 * Development 2012-2013 by School of Earth Sciences
13 * Development from 2014 by Centre for Geoscience Computing (GeoComp)
14 *
15 *****************************************************************************/
16 
17 #ifndef __WEIPA_EXCEPTION_H__
18 #define __WEIPA_EXCEPTION_H__
19 
20 #include <escript/EsysException.h>
21 
22 namespace weipa {
27 class WeipaException : public escript::EsysException
28 {
29 public:
30  WeipaException(const std::string& str) : escript::EsysException(str) {}
31 };
32 
33 } // end of namespace weipa
34 
35 #endif // __WEIPA_EXCEPTION_H__
36 
escript::EsysException
The base class for escript exceptions.
Definition: EsysException.h:39
weipa::EscriptDataset::saveSilo
bool saveSilo(const std::string fileName, bool useMultiMesh=true)
Saves the dataset in the Silo file format.
Definition: EscriptDataset.cpp:307
weipa::VisItControl::publishData
bool publishData(EscriptDataset_ptr dataset)
Definition: VisItControl.cpp:248
weipa::EscriptDataset::addData
bool addData(escript::Data &data, const std::string name, const std::string units="")
Adds an escript data instance to this dataset. You must ensure that the data is defined on the domain...
Definition: EscriptDataset.cpp:217
weipa
Definition: DataVar.cpp:49
weipa::VisItControl::initialize
bool initialize(const std::string &simFile, const std::string &comment)
Definition: VisItControl.cpp:200
weipa::EscriptDataset::setMeshLabels
void setMeshLabels(const std::string x, const std::string y, const std::string z="")
Sets labels for the mesh axes.
Definition: EscriptDataset.cpp:557
BOOST_PYTHON_MODULE
BOOST_PYTHON_MODULE(weipacpp)
Definition: weipacpp.cpp:29
weipa::EscriptDataset::setSaveMeshData
void setSaveMeshData(bool flag)
Enables/Disables saving of mesh-related data.
Definition: EscriptDataset.h:132
escript::EsysException::EsysException
EsysException(const std::string &message)
Constructor which creates an Exception with the given message.
Definition: EsysException.h:60
weipa::WeipaException::WeipaException
WeipaException(const std::string &str)
Definition: WeipaException.h:53
escript
Definition: AbstractContinuousDomain.cpp:22
weipa::EscriptDataset::saveVTK
void saveVTK(const std::string fileName)
Saves the dataset in the VTK XML file format.
Definition: EscriptDataset.cpp:486
weipa::EscriptDataset::setCycleAndTime
void setCycleAndTime(int c, double t)
Sets the cycle number and time value for this dataset.
Definition: EscriptDataset.h:109
weipa::EscriptDataset::setDomain
bool setDomain(const escript::AbstractDomain *domain)
Sets the escript domain for this dataset. This method can only be called once and should be the first...
Definition: EscriptDataset.cpp:110
weipa::EscriptDataset::setMetadataSchemaString
void setMetadataSchemaString(const std::string schema, const std::string metadata)
Sets a metadata schema and content.
Definition: EscriptDataset.h:127
weipa::EscriptDataset::setMeshUnits
void setMeshUnits(const std::string x, const std::string y, const std::string z="")
Sets units for the mesh axes.
Definition: EscriptDataset.cpp:569