NGSolve 5.3
ngstd.hpp
1#ifndef FILE_NGSTD
2#define FILE_NGSTD
3
4/*********************************************************************/
5/* File: ngstd.hpp */
6/* Author: Joachim Schoeberl */
7/* Date: 25. Mar. 2000 */
8/*********************************************************************/
9
10/*
11 ng-standard classes
12*/
13
14#include <ngs_stdcpp_include.hpp>
15
16/*
17inline void * operator new (size_t cnt)
18{
19 static int cnt_new = 0;
20 cnt_new++;
21 std::cout << "private new called, cnt = " << cnt_new << ", bytes = " << cnt << std::endl;
22 return operator new(cnt, std::nothrow);
23}
24
25inline void * operator new[] (size_t cnt)
26{
27 static int cnt_new = 0;
28 cnt_new++;
29 std::cout << "private new[] called, cnt = " << cnt_new << ", bytes = " << cnt << std::endl;
30 return operator new[](cnt, std::nothrow);
31}
32*/
33
34
35
36
37
38// #include "dynamicmem.hpp"
39
40
41namespace ngstd
42{
43 // NGS_DLL_HEADER extern int printmessage_importance;
44 NGS_DLL_HEADER extern const std::string ngsolve_version;
45}
46
47
48
49/*
50namespace ngstd
51{
52 using netgen::DynamicMem;
53}
54*/
55
56
66#include <ngs_defines.hpp>
67
68// #include "mycomplex.hpp"
69#include <core/ngcore.hpp>
70namespace ngstd
71{
72 using namespace ngcore;
73 using ngcore::INT;
74} // namespace ngstd
75
76#include "ngs_utils.hpp"
77// #include "ngsstream.hpp"
78// #include "templates.hpp" // nothing in anymore
79
80// #include "simd_complex.hpp"
81
82#include "blockalloc.hpp"
83// #include "autoptr.hpp"
84#include "memusage.hpp"
85
86#include "evalfunc.hpp"
87#include "sample_sort.hpp"
88
89#include "autodiff.hpp"
90#include "autodiffdiff.hpp"
91#include "polorder.hpp"
92#include "stringops.hpp"
93#include "statushandler.hpp"
94
95#ifndef WIN32
96#include "sockets.hpp"
97#endif
98
99namespace ngstd
100{
101#ifdef WIN32
102 const char dirslash = '\\';
103#else
104 const char dirslash = '/';
105#endif
106
107
108 using ngcore::NgMPI_Comm;
109 enum { MPI_TAG_CMD = 110 };
110 enum { MPI_TAG_SOLVE = 1110 };
111}
112
113
114inline void NOOP_Deleter(void *) { ; }
115
116#endif
Datatype for automatic differentiation.
Definition autodiff.hpp:26
namespace for standard data types and algorithms.
Definition ngstd.hpp:42