mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
95 lines
1.3 KiB
C++
95 lines
1.3 KiB
C++
#ifndef FILE_MYSTDLIB
|
|
#define FILE_MYSTDLIB
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
#include <iostream>
|
|
#include <iomanip>
|
|
#include <fstream>
|
|
#include <sstream>
|
|
|
|
|
|
#include <cstdlib>
|
|
#include <cstdio>
|
|
#include <cmath>
|
|
#include <cctype>
|
|
#include <ctime>
|
|
#include <cstring>
|
|
#include <climits>
|
|
|
|
|
|
#include <new>
|
|
#include <string>
|
|
#include <typeinfo>
|
|
|
|
#ifdef PARALLEL
|
|
#undef SEEK_SET
|
|
#undef SEEK_CUR
|
|
#undef SEEK_END
|
|
#include <mpi.h>
|
|
#endif
|
|
|
|
#ifdef _OPENMP
|
|
#include <omp.h>
|
|
#endif
|
|
|
|
|
|
#ifdef METIS
|
|
namespace metis { extern "C" {
|
|
#include <metis.h>
|
|
} }
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef NO_PARALLEL_THREADS
|
|
#ifndef WIN32
|
|
#include <pthread.h>
|
|
#endif
|
|
#endif
|
|
|
|
#ifndef M_PI
|
|
#define M_PI 3.14159265358979323846
|
|
#endif
|
|
|
|
|
|
/*** Windows headers ***/
|
|
#ifdef _MSC_VER
|
|
# define WIN32_LEAN_AND_MEAN
|
|
# ifndef NO_PARALLEL_THREADS
|
|
# include <afxwin.h>
|
|
# include <afxmt.h>
|
|
# endif
|
|
# include <windows.h>
|
|
# undef WIN32_LEAN_AND_MEAN
|
|
# include <winnt.h>
|
|
|
|
#else
|
|
# ifndef NO_PARALLEL_THREADS
|
|
# include <pthread.h>
|
|
# endif
|
|
#endif
|
|
|
|
/*
|
|
extern void* operator new(std::size_t) throw (std::bad_alloc);
|
|
extern void* operator new[](std::size_t) throw (std::bad_alloc);
|
|
extern void operator delete(void*) throw();
|
|
extern void operator delete[](void*) throw();
|
|
*/
|
|
|
|
/*
|
|
extern int mem_alloc;
|
|
extern int mem_total_alloc;
|
|
extern int mem_max_alloc;
|
|
extern int mem_total_alloc_array;
|
|
extern int mem_total_alloc_table;
|
|
*/
|
|
|
|
using namespace std;
|
|
|
|
#endif
|
|
|