mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-27 14:20:34 +05:00
66 lines
1.3 KiB
C++
66 lines
1.3 KiB
C++
#ifndef FILE_GLOBAL
|
|
#define FILE_GLOBAL
|
|
|
|
|
|
/**************************************************************************/
|
|
/* File: global.hh */
|
|
/* Author: Joachim Schoeberl */
|
|
/* Date: 01. Okt. 95 */
|
|
/**************************************************************************/
|
|
|
|
/*
|
|
global functions and variables
|
|
*/
|
|
|
|
namespace netgen
|
|
{
|
|
|
|
///
|
|
DLL_HEADER extern double GetTime ();
|
|
extern void ResetTime ();
|
|
|
|
///
|
|
extern int testmode;
|
|
|
|
/// calling parameters
|
|
// extern Flags parameters;
|
|
|
|
// extern DLL_HEADER MeshingParameters mparam;
|
|
|
|
extern Array<int> tets_in_qualclass;
|
|
|
|
class multithreadt
|
|
{
|
|
public:
|
|
int pause;
|
|
int testmode;
|
|
int redraw;
|
|
int drawing;
|
|
int terminate;
|
|
int running;
|
|
double percent;
|
|
const char * task;
|
|
bool demorunning;
|
|
multithreadt();
|
|
};
|
|
|
|
extern volatile multithreadt multithread;
|
|
|
|
DLL_HEADER extern string ngdir;
|
|
extern DebugParameters debugparam;
|
|
extern bool verbose;
|
|
|
|
extern int h_argc;
|
|
extern char ** h_argv;
|
|
|
|
|
|
extern weak_ptr<Mesh> global_mesh;
|
|
inline void SetGlobalMesh (shared_ptr<Mesh> m)
|
|
{
|
|
cout << "set global mesh" << endl;
|
|
global_mesh = m;
|
|
}
|
|
}
|
|
|
|
#endif
|