Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F81076679
ATC_Error.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
Wed, Sep 4, 02:29
Size
765 B
Mime Type
text/x-c
Expires
Fri, Sep 6, 02:29 (2 d)
Engine
blob
Format
Raw Data
Handle
20410567
Attached To
rLAMMPS lammps
ATC_Error.h
View Options
// ATC_Error : a base class for atom-continuum errors
#ifndef ATC_ERROR
#define ATC_ERROR
#include <string>
namespace ATC {
class ATC_Error {
public:
// constructor
ATC_Error(int procID, std::string errorDescription) {
procID_ = procID;
errorDescription_ = errorDescription;
};
//ATC_Error(std::string errorDescription) {
// procID_ = LammpsInterface::instance()->comm_rank();
// errorDescription_ = errorDescription;
//};
// data access
virtual int get_id() {
return procID_;
};
virtual std::string get_error_description() {
return errorDescription_;
};
private:
// id of the processor reporting the error
int procID_;
// string describing the type of error
std::string errorDescription_;
};
}
#endif
Event Timeline
Log In to Comment