gmsh-TingyuanDoc
0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
|
Go to the documentation of this file.
15 #include "GmshConfig.h"
27 virtual void operator()(std::string level, std::string message) {}
44 static std::map<std::string, double>
_timers;
64 #if defined(HAVE_ONELAB)
78 static void Exit(
int level);
91 static void SetLogFile(
const std::string &name);
98 static std::string
PrintResources(
bool printDate,
bool printWallTime,
99 bool printCpu,
bool printMem);
100 static void Error(
const char *fmt, ...);
101 static void Warning(
const char *fmt, ...);
102 static void Info(
const char *fmt, ...);
104 static void Direct(
const char *fmt, ...);
105 static void Auto(
const char *fmt, ...);
106 static void StatusBar(
bool log,
const char *fmt, ...);
107 static void StatusGl(
const char *fmt, ...);
109 static void Debug(
const char *fmt, ...);
111 static void ProgressMeter(
int n,
bool log,
const char *fmt, ...);
117 static double &
Timer(
const std::string &str);
126 static double GetValue(
const char *text,
double defaultval);
127 static std::string
GetString(
const char *text,
const std::string &defaultval);
128 static int GetAnswer(
const char *question,
int defaultval,
const char *zero,
129 const char *one,
const char *two =
nullptr);
131 const std::string &sockname =
"");
136 const std::string &sockName);
139 #if defined(HAVE_ONELAB)
144 bool visible =
true,
bool persistent =
false,
145 bool readOnly =
false,
int changedValue = 3);
146 static void SetOnelabNumber(
const std::string &name,
const std::vector<double> &val,
147 bool visible =
true);
148 static void SetOnelabString(
const std::string &name,
const std::string &val,
149 bool visible =
true,
bool persistent =
false,
150 bool readOnly =
false,
int changedValue = 3,
151 const std::string &kind =
"");
153 double defaultValue = 0.,
154 bool errorIfMissing =
false);
156 const std::string &defaultValue =
"",
157 bool errorIfMissing =
false);
159 const std::string &kind,
160 const std::string &value,
161 bool updateValue =
true,
162 bool readOnly =
false,
bool visible =
true);
166 const std::string &key, std::vector<double> &val,
167 std::map<std::string, std::vector<double> > &fopt,
168 std::map<std::string, std::vector<std::string> > &copt);
170 const std::string &key, std::string &val,
171 std::map<std::string, std::vector<double> > &fopt,
172 std::map<std::string, std::vector<std::string> > &copt);
175 const std::string &exe =
"");
176 static void SetOnelabChanged(
int value,
const std::string &client =
"Gmsh");
virtual void operator()(std::string level, std::string message)
static GmshMessage * GetCallback()
static void SetOnelabAction(const std::string &action)
static std::atomic< int > _progressMeterCurrent
static int GetProgressMeterStep()
static std::map< std::string, std::string > & GetCommandLineStrings()
static int GetVerbosity()
static int _atLeastOneErrorInRun
static void SetInfoMem(bool val)
static std::string GetFirstError()
static void Info(const char *fmt,...)
static void RunOnelabClient(const std::string &name, const std::string &exe="")
static double GetOnelabNumber(const std::string &name, double defaultValue=0., bool errorIfMissing=false)
static void Debug(const char *fmt,...)
static int _progressMeterStep
static void Warning(const char *fmt,...)
static std::map< std::string, std::vector< double > > _commandLineNumbers
static void Error(const char *fmt,...)
static void StatusBar(bool log, const char *fmt,...)
static double & Timer(const std::string &str)
static std::string GetCommandLineFull()
static void SetExecutableName(const std::string &name)
static void ImportPhysicalGroupsInOnelab()
static void SetProgressMeterStep(int step)
static GmshClient * GetGmshClient()
static void StatusGl(const char *fmt,...)
static void Initialize(int argc, char **argv)
static std::vector< std::string > _commandLineArgs
static double GetValue(const char *text, double defaultval)
static void PrintTimers()
static void ExchangeOnelabParameter(const std::string &key, std::vector< double > &val, std::map< std::string, std::vector< double > > &fopt, std::map< std::string, std::vector< std::string > > &copt)
static void AddOnelabStringChoice(const std::string &name, const std::string &kind, const std::string &value, bool updateValue=true, bool readOnly=false, bool visible=true)
MsgProgressStatus(int numElementToTreat)
static void SetCommSize(int val)
static int GetThreadNum()
static void SetNumThreads(int num)
static void SetOnelabString(const std::string &name, const std::string &val, bool visible=true, bool persistent=false, bool readOnly=false, int changedValue=3, const std::string &kind="")
static void InitializeOnelab(const std::string &name, const std::string &sockname="")
static std::string GetFirstWarning()
void setInitialTime(double time)
static void PrintErrorCounter(const char *title)
static std::string GetString(const char *text, const std::string &defaultval)
static void StopProgressMeter()
static void SetOnelabChanged(int value, const std::string &client="Gmsh")
static int GetMaxThreads()
static void SetCallback(GmshMessage *callback)
static void SetWindowTitle(const std::string &title)
static std::string PrintResources(bool printDate, bool printWallTime, bool printCpu, bool printMem)
static GmshMessage * _callback
static std::string _execName
static void Exit(int level)
static void LoadOnelabClient(const std::string &name, const std::string &sockName)
static std::string GetLastError()
static void FinalizeOnelab()
static std::string GetLaunchDate()
static int GetNumOnelabClients()
static void ResetErrorCounter()
static int GetWarningCount()
static std::map< std::string, std::vector< double > > & GetCommandLineNumbers()
static void Direct(const char *fmt,...)
static std::vector< std::string > & GetCommandLineArgs()
static std::string _launchDate
static int GetAnswer(const char *question, int defaultval, const char *zero, const char *one, const char *two=nullptr)
static void StartProgressMeter(int ntotal)
static std::string _firstWarning
static int GetNumThreads()
static int _progressMeterTotal
static void SetVerbosity(int val)
static std::string _lastError
static std::string _logFileName
static std::string _firstError
static GmshClient * _client
static void SetOnelabNumber(const std::string &name, double val, bool visible=true, bool persistent=false, bool readOnly=false, int changedValue=3)
static void RequestRender()
static std::map< std::string, double > _timers
static void ProgressMeter(int n, bool log, const char *fmt,...)
static void Auto(const char *fmt,...)
static void UndefineOnelabParameter(const std::string &name)
static std::string GetOnelabString(const std::string &name, const std::string &defaultValue="", bool errorIfMissing=false)
static std::string GetOnelabAction()
static int GetErrorCount()
static std::string GetExecutableName()
static void SetCommRank(int val)
static void SetLogFile(const std::string &name)
static std::map< std::string, std::string > _commandLineStrings
static void SetInfoCpu(bool val)