2009-01-13 04:40:13 +05:00
|
|
|
#ifndef FILE_GLOBAL
|
|
|
|
#define FILE_GLOBAL
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************/
|
|
|
|
/* File: global.hh */
|
|
|
|
/* Author: Joachim Schoeberl */
|
|
|
|
/* Date: 01. Okt. 95 */
|
|
|
|
/**************************************************************************/
|
|
|
|
|
|
|
|
/*
|
|
|
|
global functions and variables
|
|
|
|
*/
|
|
|
|
|
2011-03-03 01:50:39 +05:00
|
|
|
namespace netgen
|
2009-01-13 04:40:13 +05:00
|
|
|
{
|
2011-03-03 01:50:39 +05:00
|
|
|
|
|
|
|
///
|
|
|
|
DLL_HEADER extern double GetTime ();
|
|
|
|
extern void ResetTime ();
|
|
|
|
|
|
|
|
///
|
|
|
|
extern int testmode;
|
|
|
|
|
|
|
|
/// calling parameters
|
|
|
|
// extern Flags parameters;
|
|
|
|
|
2011-07-25 17:33:19 +06:00
|
|
|
// extern DLL_HEADER MeshingParameters mparam;
|
2011-03-03 01:50:39 +05:00
|
|
|
|
|
|
|
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;
|
|
|
|
|
2012-10-29 23:46:32 +06:00
|
|
|
DLL_HEADER extern string ngdir;
|
2011-03-03 01:50:39 +05:00
|
|
|
extern DebugParameters debugparam;
|
|
|
|
extern bool verbose;
|
2012-07-06 13:49:05 +06:00
|
|
|
|
|
|
|
extern int h_argc;
|
|
|
|
extern char ** h_argv;
|
2015-01-09 02:18:33 +05:00
|
|
|
|
|
|
|
|
|
|
|
extern weak_ptr<Mesh> global_mesh;
|
|
|
|
inline void SetGlobalMesh (shared_ptr<Mesh> m)
|
|
|
|
{
|
|
|
|
cout << "set global mesh" << endl;
|
|
|
|
global_mesh = m;
|
|
|
|
}
|
2011-03-03 01:50:39 +05:00
|
|
|
}
|
2009-01-13 04:40:13 +05:00
|
|
|
|
|
|
|
#endif
|