PSCF v1.1
NanException.h
1#ifndef PSCF_NAN_EXCEPTION_H
2#define PSCF_NAN_EXCEPTION_H
3
4/*
5* PSCF - Polymer Self-Consistent Field Theory
6*
7* Copyright 2016 - 2022, The Regents of the University of Minnesota
8* Distributed under the terms of the GNU General Public License.
9*/
10
11#include <util/global.h>
12#include <util/misc/Exception.h>
13
14namespace Pscf {
15
16 using namespace Util;
17
39 class NanException : public Exception
40 {
41
42 public:
43
56 NanException(const char *function, const char *file, int line,
57 int echo = 1);
58
66 NanException(const char *file, int line, int echo = 1);
67
72
73 };
74
75}
76#endif
Exception thrown when not-a-number (NaN) is encountered.
Definition: NanException.h:40
~NanException()
Destructor.
A user-defined exception.
Definition: Exception.h:25
File containing preprocessor macros for error handling.
C++ namespace for polymer self-consistent field theory (PSCF).
Utility classes for scientific computation.
Definition: accumulators.mod:1