PLaSK library
Loading...
Searching...
No Matches
xerfft.cpp
Go to the documentation of this file.
1#include <sstream>
2
3#ifdef __cplusplus
4extern "C" {
5#endif //TODO the below function is not C becouse it throws an exception!
6
7#include "f2c.h"
8
33int xerfft_(char *srname, integer *info, ftnlen)
34{
35 std::stringstream msg;
36
37 if (*info >= 1)
38 msg << "On entry to " << srname << " parameter number " << (*info) << " has an illegal value";
39 else if (*info == -1)
40 msg << "On entry to " << srname << " parameters LOT, JUMP, N and INC are inconsistent";
41 else if (*info == -2)
42 msg << "On entry to " << srname << " parameter L is greater than LDIM";
43 else if (*info == -3)
44 msg << "On entry to " << srname << " parameter M is greater than MDIM";
45 else if (*info == -5)
46 msg << "Within " << srname << " input error returned by lower level routine";
47 else if (*info == -6)
48 msg << "On entry to " << srname << " parameter LDIM is less than 2*(L/2+1)";
49
50/*#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
51 fprintf(stderr, "%s", msg.str().c_str());
52 exit(1);
53#else*/
54 throw msg.str();
55//#endif
56
57 return 0;
58}
59
60#ifdef __cplusplus
61}
62#endif