/[escript]/branches/trilinos_from_5897/dudley/src/CPPAdapter/DudleyError.cpp
ViewVC logotype

Contents of /branches/trilinos_from_5897/dudley/src/CPPAdapter/DudleyError.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5898 - (show annotations)
Fri Feb 5 03:37:49 2016 UTC (3 years, 2 months ago) by caltinay
File size: 1478 byte(s)
trilinos playground

1
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2016 by The University of Queensland
5 * http://www.uq.edu.au
6 *
7 * Primary Business: Queensland, Australia
8 * Licensed under the Open Software License version 3.0
9 * http://www.opensource.org/licenses/osl-3.0.php
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
18 #include "DudleyError.h"
19 #include <iostream>
20
21 namespace dudley {
22
23 void setDudleyError(Dudley_ErrorCodeType errorCode,
24 const std::string& errMess)
25 {
26 Dudley_setError(errorCode,(__const char*)(errMess.c_str()));
27 }
28
29 void checkDudleyError()
30 {
31 if (Dudley_noError()) {
32 return;
33 } else {
34 //
35 // reset the error code to no error otherwise the next call to
36 // this function may resurrect a previous error
37 Dudley_resetError();
38 throw DudleyAdapterException(Dudley_getErrorMessage());
39 }
40 }
41 void checkPasoError()
42 {
43 if (Esys_noError()) {
44 return;
45 } else {
46 //
47 // reset the error code to no error otherwise the next call to
48 // this function may resurrect a previous error
49 Esys_resetError();
50 throw DudleyAdapterException(Esys_getErrorMessage());
51 }
52 }
53
54 } // end of namespace

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision
svn:mergeinfo /branches/4.0fordebian/dudley/src/CPPAdapter/DudleyError.cpp:5567-5588 /branches/pasowrap/dudley/src/CPPAdapter/DudleyError.cpp:3661-3674 /branches/py3_attempt2/dudley/src/CPPAdapter/DudleyError.cpp:3871-3891 /branches/ripleygmg_from_3668/dudley/src/CPPAdapter/DudleyError.cpp:3669-3791 /branches/scons_revamp_from_3210/dudley/src/CPPAdapter/DudleyError.cpp:3212-3243 /branches/symbolic_from_3470/dudley/src/CPPAdapter/DudleyError.cpp:3471-3974 /branches/symbolic_from_3470/ripley/test/python/dudley/src/CPPAdapter/DudleyError.cpp:3517-3974 /release/4.0/dudley/src/CPPAdapter/DudleyError.cpp:5380-5406 /trunk/ripley/test/python/dudley/src/CPPAdapter/DudleyError.cpp:3480-3515

  ViewVC Help
Powered by ViewVC 1.1.26