Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F71339108
exceptions.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Jul 11, 04:26
Size
1 KB
Mime Type
text/x-c++
Expires
Sat, Jul 13, 04:26 (2 d)
Engine
blob
Format
Raw Data
Handle
18937613
Attached To
rLAMMPS lammps
exceptions.h
View Options
/* -*- c++ -*- ----------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
certain rights in this software. This software is distributed under
the GNU General Public License.
See the README file in the top-level LAMMPS directory.
------------------------------------------------------------------------- */
#ifndef LMP_EXCEPTIONS_H
#define LMP_EXCEPTIONS_H
#include <mpi.h>
#include <string>
#include <exception>
namespace
LAMMPS_NS
{
class
LAMMPSException
:
public
std
::
exception
{
public:
std
::
string
message
;
LAMMPSException
(
std
::
string
msg
)
:
message
(
msg
)
{
}
~
LAMMPSException
()
throw
()
{
}
virtual
const
char
*
what
()
const
throw
()
{
return
message
.
c_str
();
}
};
class
LAMMPSAbortException
:
public
LAMMPSException
{
public:
MPI_Comm
universe
;
LAMMPSAbortException
(
std
::
string
msg
,
MPI_Comm
universe
)
:
LAMMPSException
(
msg
),
universe
(
universe
)
{
}
};
enum
ErrorType
{
ERROR_NONE
=
0
,
ERROR_NORMAL
=
1
,
ERROR_ABORT
=
2
};
}
#endif
Event Timeline
Log In to Comment