netgen/libsrc/meshing/global.hpp

69 lines
1.6 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 ();
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
2015-10-19 13:08:30 +05:00
DLL_HEADER extern Array<int> tets_in_qualclass;
2011-03-03 01:50:39 +05:00
2016-02-22 22:43:51 +05:00
DLL_HEADER extern mutex tcl_todo_mutex;
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);
// global communicator for netgen (dummy if no MPI)
2019-02-12 02:12:29 +05:00
extern DLL_HEADER NgMPI_Comm ng_comm;
2011-03-03 01:50:39 +05:00
}
2009-01-13 04:40:13 +05:00
#endif