NGSolve
4.9
|
00001 #ifndef FILE_SOLVE 00002 #define FILE_SOLVE 00003 00004 /*********************************************************************/ 00005 /* File: solve.hpp */ 00006 /* Author: Joachim Schoeberl */ 00007 /* Date: 25. Mar. 2000 */ 00008 /*********************************************************************/ 00009 00010 00011 /* 00012 NGS Solvers: BVP, Instationary, ... 00013 */ 00014 00015 00016 #include <comp.hpp> 00017 #include <multigrid.hpp> 00018 00019 struct Tcl_Interp; 00020 00021 00022 /* 00023 #ifdef WIN32 00024 #define LOCAL_EXPORTS __declspec(dllexport) 00025 #else 00026 #define LOCAL_EXPORTS 00027 #endif 00028 */ 00029 00036 namespace ngsolve 00037 { 00038 using namespace std; 00039 00040 using namespace ngstd; 00041 using namespace ngla; 00042 using namespace ngfem; 00043 using namespace ngcomp; 00044 using namespace ngmg; 00045 } 00046 00047 00048 #include "numproc.hpp" 00049 #include "pde.hpp" 00050 00051 00052 00053 /* 00054 #ifdef WIN32 00055 // trick from http://social.msdn.microsoft.com/Forums/en/vclanguage/thread/ab642c88-2d2d-4f5d-9fd7-2341442d5a46 00056 // all new/delete allocation is done from ngsolve heap 00057 00058 NGS_DLL_HEADER void * __cdecl my_operator_new_replacement(size_t _count); 00059 NGS_DLL_HEADER void __cdecl my_operator_delete_replacement(void * _ptr); 00060 NGS_DLL_HEADER void * __cdecl my_operator_new_array_replacement(size_t _count); 00061 NGS_DLL_HEADER void __cdecl my_operator_delete_array_replacement(void * _ptr); 00062 00063 #ifndef NGS_EXPORTS 00064 inline void * __cdecl operator new(size_t _count) { 00065 return my_operator_new_replacement(_count); 00066 } 00067 inline void __cdecl operator delete(void * _ptr) { 00068 my_operator_delete_replacement(_ptr); 00069 } 00070 inline void * __cdecl operator new[](size_t _count) { 00071 return my_operator_new_array_replacement(_count); 00072 } 00073 inline void __cdecl operator delete[](void * _ptr) { 00074 my_operator_delete_array_replacement(_ptr); 00075 } 00076 00077 #endif 00078 00079 #endif 00080 */ 00081 00082 00083 00084 00085 #endif