gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
onelabUtils.h
Go to the documentation of this file.
1 // Gmsh - Copyright (C) 1997-2022 C. Geuzaine, J.-F. Remacle
2 //
3 // See the LICENSE.txt file in the Gmsh root directory for license information.
4 // Please report all issues on https://gitlab.onelab.info/gmsh/gmsh/issues.
5 
6 #ifndef ONELAB_UTILS_H
7 #define ONELAB_UTILS_H
8 
9 #include "onelab.h"
10 
11 // onelab utility routines used both in the FLTK onelab server and in other
12 // onelab servers
13 
14 namespace onelabUtils {
15  std::vector<std::string> getCommandLine(onelab::client *c);
18  void initializeLoop(const std::string &level);
19  bool incrementLoop(const std::string &level);
20  std::vector<double> getRange(onelab::number &p);
21  bool updateGraph(const std::string &graphNum);
22  bool runGmshClient(const std::string &action, int meshAuto);
23  void runClient(const std::string &name = "", const std::string &command = "");
25  void setFirstComputationFlag(bool val);
28  const bool readOnlyRange = false);
32  void updateGraphs();
33  std::string timeStamp();
34  void saveDb(const std::string &fileName);
35  void archiveOutputFiles(const std::string &fileName);
36  void archiveSolutionFiles(const std::string &fileName);
37  void loadDb(const std::string &name);
38  void resetDb(bool runGmshClient);
39 } // namespace onelabUtils
40 
41 #endif
onelab::string
Definition: onelab.h:678
onelabUtils::updateString
std::string updateString(onelab::string &x, onelab::string &y)
onelabUtils::updateGraph
bool updateGraph(const std::string &graphNum)
c
static double c(int i, int j, fullMatrix< double > &CA, const std::vector< SPoint3 > &P, const std::vector< SPoint3 > &Q)
Definition: discreteFrechetDistance.cpp:15
onelabUtils::getFirstComputationFlag
bool getFirstComputationFlag()
onelabUtils::getMshFileName
std::string getMshFileName(onelab::client *c)
onelabUtils::timeStamp
std::string timeStamp()
onelabUtils::resetDb
void resetDb(bool runGmshClient)
onelabUtils::archiveSolutionFiles
void archiveSolutionFiles(const std::string &fileName)
onelabUtils::haveSolverToRun
bool haveSolverToRun()
onelabUtils::setFirstComputationFlag
void setFirstComputationFlag(bool val)
onelabUtils::getCommandLine
std::vector< std::string > getCommandLine(onelab::client *c)
onelab::number
Definition: onelab.h:432
onelabUtils::updateNumber
double updateNumber(onelab::number &x, onelab::number &y, const bool readOnlyRange=false)
onelabUtils::loadDb
void loadDb(const std::string &name)
onelab.h
onelabUtils::guessModelName
void guessModelName(onelab::client *c)
onelabUtils::archiveOutputFiles
void archiveOutputFiles(const std::string &fileName)
onelabUtils::updateGraphs
void updateGraphs()
onelabUtils
Definition: onelabUtils.h:14
onelabUtils::incrementLoops
bool incrementLoops()
onelabUtils::runGmshClient
bool runGmshClient(const std::string &action, int meshAuto)
onelabUtils::saveDb
void saveDb(const std::string &fileName)
onelabUtils::runClient
void runClient(const std::string &name="", const std::string &command="")
onelab::client
Definition: onelab.h:1201
onelabUtils::initializeLoops
void initializeLoops()
onelabUtils::getRange
std::vector< double > getRange(onelab::number &p)
onelabUtils::incrementLoop
bool incrementLoop(const std::string &level)
onelabUtils::initializeLoop
void initializeLoop(const std::string &level)