PSCF v1.1
NanException.cpp
1/*
2* PSCF - Polymer Self-Consistent Field Theory
3*
4* Copyright 2016 - 2022, The Regents of the University of Minnesota
5* Distributed under the terms of the GNU General Public License.
6*/
7
8#include "NanException.h"
9#include <sstream>
10
11namespace Pscf
12{
13
14 using namespace Util;
15
16 /*
17 * Constructor, with function name.
18 */
19 NanException::NanException(const char *function, const char *file,
20 int line, int echo)
21 : Exception(function, "required numerical parameter has value of NaN",
22 file, line, echo)
23 {}
24
25 /*
26 * Constructor, with no function name.
27 */
28 NanException::NanException(const char *file, int line, int echo)
29 : Exception("required numerical parameter has value of NaN",
30 file, line, echo)
31 {}
32
33 /*
34 * Destructor.
35 */
37 {}
38
39}
NanException(const char *function, const char *file, int line, int echo=1)
Constructor.
~NanException()
Destructor.
A user-defined exception.
Definition: Exception.h:25
C++ namespace for polymer self-consistent field theory (PSCF).
Utility classes for scientific computation.
Definition: accumulators.mod:1