From 4624d2a6c088bec9b142bc102ed4f8ffbad86c05 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Mon, 18 Aug 2014 05:28:22 +0000 Subject: [PATCH] fix compile --- Common/GmshMessage.cpp | 5 +++++ Plugin/DuplicateBoundaries.cpp | 17 ++--------------- 2 files changed, 7 insertions(+), 15 deletions(-) diff --git a/Common/GmshMessage.cpp b/Common/GmshMessage.cpp index c5771d5302..d94728cd0c 100644 --- a/Common/GmshMessage.cpp +++ b/Common/GmshMessage.cpp @@ -1102,9 +1102,14 @@ void Msg::RunOnelabClient(const std::string &name, const std::string &command) o.setVisible(false); o.setNeverChanged(true); onelab::server::instance()->set(o); +#if defined(HAVE_FLTK) Msg::Info("Creating new ONELAB client `%s' (%s)", name.c_str(), command.c_str()); client = new gmshLocalNetworkClient(name, command); client->run(); +#else + Msg::Error("Cannot create ONELAB client without FLTK"); + return; +#endif } onelab::string o(name + "/Action", "compute"); o.setVisible(false); diff --git a/Plugin/DuplicateBoundaries.cpp b/Plugin/DuplicateBoundaries.cpp index d686d96511..04fdb16943 100644 --- a/Plugin/DuplicateBoundaries.cpp +++ b/Plugin/DuplicateBoundaries.cpp @@ -18,9 +18,7 @@ #include "Context.h" StringXNumber DuplicateBoundariesOptions_Number[] = { -// {GMSH_FULLRC, "Dimension", NULL, 1.}, -// {GMSH_FULLRC, "PhysicalGroup", NULL, 1.}, -// {GMSH_FULLRC, "OpenBoundaryPhysicalGroup", NULL, 0.}, + {GMSH_FULLRC, "Dummy", NULL, 1.}, }; extern "C" @@ -33,18 +31,7 @@ extern "C" std::string GMSH_DuplicateBoundariesPlugin::getHelp() const { - return "Plugin(Crack) creates a crack around the physical " - "group `PhysicalGroup' of dimension `Dimension' (1 or 2). " - "The plugin duplicates the vertices and the elements on " - "the crack and stores them in a new discrete curve " - "(`Dimension' = 1) or surface (`Dimension' = 2). The " - "elements touching the crack on the negative side " - "are modified to use the newly generated vertices." - "If `OpenBoundaryPhysicalGroup' is given (> 0), its " - "vertices are duplicated and the crack will be left " - "open on that (part of the) boundary. Otherwise, the " - "lips of the crack are sealed, i.e., its vertices are " - "not duplicated."; + return "Plugin(DuplicateBoundaries) is not documented yet."; } int GMSH_DuplicateBoundariesPlugin::getNbOptions() const -- GitLab