escript  Revision_
pyerr.h
Go to the documentation of this file.
1 /*****************************************************************************
2 *
3 * Copyright (c) 2015-2018 by The University of Queensland
4 * http://www.uq.edu.au
5 *
6 * Primary Business: Queensland, Australia
7 * Licensed under the Apache License, version 2.0
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
11 * Development 2012-2013 by School of Earth Sciences
12 * Development from 2014-2017 by Centre for Geoscience Computing (GeoComp)
13 * Development from 2019 by School of Earth and Environmental Sciences
14 **
15 *****************************************************************************/
16 
17 #ifndef __ESCRIPT_PYERR_H__
18 #define __ESCRIPT_PYERR_H__
19 
20 #include <boost/python/errors.hpp>
21 
22 #include <string>
23 
24 namespace escript {
25 
26 void getStringFromPyException(boost::python::error_already_set e, std::string& errormsg);
27 
28 } // namespace escript
29 
30 #endif // __ESCRIPT_PYERR_H__
31 
escript
Definition: AbstractContinuousDomain.cpp:23
escript::getStringFromPyException
void getStringFromPyException(boost::python::error_already_set e, std::string &errormsg)
Definition: pyerr.cpp:40
pyerr.h
escript::trace
void trace(const VEC &in, const DataTypes::ShapeType &inShape, typename VEC::size_type inOffset, VEC &ev, const DataTypes::ShapeType &evShape, typename VEC::size_type evOffset, int axis_offset)
computes the trace of a matrix
Definition: DataVectorOps.h:241