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 ();
|
2015-10-19 13:08:30 +05:00
|
|
|
DLL_HEADER extern void ResetTime ();
|
2011-03-03 01:50:39 +05:00
|
|
|
|
|
|
|
///
|
2015-10-19 13:08:30 +05:00
|
|
|
DLL_HEADER extern int testmode;
|
2011-03-03 01:50:39 +05:00
|
|
|
|
|
|
|
/// 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
|
|
|
|
2016-02-22 22:43:51 +05:00
|
|
|
DLL_HEADER extern mutex tcl_todo_mutex;
|
|
|
|
|
2017-01-31 23:21:25 +05:00
|
|
|
class DLL_HEADER multithreadt
|
2011-03-03 01:50:39 +05:00
|
|
|
{
|
|
|
|
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();
|
|
|
|
};
|
|
|
|
|
2015-10-19 13:08:30 +05:00
|
|
|
DLL_HEADER extern volatile multithreadt multithread;
|
2011-03-03 01:50:39 +05:00
|
|
|
|
2012-10-29 23:46:32 +06:00
|
|
|
DLL_HEADER extern string ngdir;
|
2015-10-19 13:08:30 +05:00
|
|
|
DLL_HEADER extern DebugParameters debugparam;
|
|
|
|
DLL_HEADER extern bool verbose;
|
2012-07-06 13:49:05 +06:00
|
|
|
|
2015-10-19 13:08:30 +05:00
|
|
|
DLL_HEADER extern int h_argc;
|
|
|
|
DLL_HEADER extern char ** h_argv;
|
2015-01-09 02:18:33 +05:00
|
|
|
|
|
|
|
|
2015-10-19 13:08:30 +05:00
|
|
|
DLL_HEADER extern weak_ptr<Mesh> global_mesh;
|
2015-12-22 00:21:24 +05:00
|
|
|
DLL_HEADER void SetGlobalMesh (shared_ptr<Mesh> m);
|
2019-01-29 20:10:02 +05:00
|
|
|
|
|
|
|
// global communicator for netgen (dummy if no MPI)
|
2019-02-13 02:11:55 +05:00
|
|
|
// extern DLL_HEADER NgMPI_Comm ng_comm;
|
2019-01-29 20:10:02 +05:00
|
|
|
|
2011-03-03 01:50:39 +05:00
|
|
|
}
|
2009-01-13 04:40:13 +05:00
|
|
|
|
|
|
|
#endif
|