2009-01-13 04:40:13 +05:00
|
|
|
#include <mystdlib.h>
|
|
|
|
#include "meshing.hpp"
|
|
|
|
|
2009-01-18 22:36:38 +05:00
|
|
|
|
2009-01-13 04:40:13 +05:00
|
|
|
namespace netgen
|
|
|
|
{
|
2009-01-18 22:36:38 +05:00
|
|
|
// stringstream emptystr;
|
|
|
|
// ostream * testout = &emptystr;
|
|
|
|
// testout -> clear(ios::failbit);
|
2009-01-24 18:35:44 +05:00
|
|
|
|
|
|
|
// ostream * testout = &cout;
|
|
|
|
ostream * testout = new ostream(0);
|
|
|
|
|
|
|
|
// NetgenOutStream * testout = new NetgenOutStream;
|
2009-01-13 04:40:13 +05:00
|
|
|
|
|
|
|
ostream * mycout = &cout;
|
|
|
|
ostream * myerr = &cerr;
|
|
|
|
|
|
|
|
|
|
|
|
// Flags globflags; // not used anymoure
|
|
|
|
Flags parameters;
|
|
|
|
|
|
|
|
|
|
|
|
int silentflag = 0;
|
|
|
|
int testmode = 0;
|
|
|
|
|
|
|
|
MeshingParameters mparam;
|
|
|
|
volatile multithreadt multithread;
|
|
|
|
|
|
|
|
string ngdir = ".";
|
|
|
|
|
2009-01-25 17:35:25 +05:00
|
|
|
Array<int> tets_in_qualclass;
|
2009-01-13 04:40:13 +05:00
|
|
|
|
|
|
|
|
|
|
|
multithreadt :: multithreadt()
|
|
|
|
{
|
|
|
|
pause =0;
|
|
|
|
testmode = 0;
|
|
|
|
redraw = 0;
|
|
|
|
drawing = 0;
|
|
|
|
terminate = 0;
|
|
|
|
running = 0;
|
|
|
|
percent = 0;
|
|
|
|
task = "";
|
|
|
|
}
|
|
|
|
|
|
|
|
DebugParameters debugparam;
|
|
|
|
bool verbose = 0;
|
|
|
|
|
|
|
|
int timestamp = 0;
|
|
|
|
int GetTimeStamp()
|
|
|
|
{
|
|
|
|
return timestamp;
|
|
|
|
}
|
|
|
|
|
|
|
|
int NextTimeStamp()
|
|
|
|
{
|
|
|
|
timestamp++;
|
|
|
|
return timestamp;
|
|
|
|
}
|
|
|
|
}
|