netgen/libsrc/meshing/global.hpp

72 lines
1.6 KiB
C++
Raw Permalink Normal View History

#ifndef NETGEN_GLOBAL_HPP
#define NETGEN_GLOBAL_HPP
2009-01-13 04:40:13 +05:00
/**************************************************************************/
/* File: global.hh */
/* Author: Joachim Schoeberl */
/* Date: 01. Okt. 95 */
/**************************************************************************/
/*
global functions and variables
*/
#include <mydefs.hpp>
2011-03-03 01:50:39 +05:00
namespace netgen
2009-01-13 04:40:13 +05:00
{
using namespace ngcore;
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;
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
class DebugParameters;
class Mesh;
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-13 02:11:55 +05:00
// extern DLL_HEADER NgMPI_Comm ng_comm;
} // namespace netgen
2009-01-13 04:40:13 +05:00
#endif // NETGEN_GLOBAL_HPP