netgen/libsrc/meshing/global.hpp

67 lines
1.4 KiB
C++
Raw Normal View History

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;
2015-06-26 19:30:27 +05:00
string * tcl_todo = new string(""); // tcl commands set from parallel thread
2011-03-03 01:50:39 +05:00
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