Skip to content
Snippets Groups Projects
Commit 3905b1ad authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix compile

parent f5fc1c17
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,10 @@ typedef unsigned long intptr_t;
#include "Options.h"
#include "Context.h"
#include "HighOrder.h"
#if defined(HAVE_OPTHOM)
#include "OptHomRun.h"
#endif
#if defined(HAVE_PARSER)
#include "Parser.h"
......@@ -59,6 +62,7 @@ static void change_completeness_cb(Fl_Widget *w, void *data)
static void highordertools_runp_cb(Fl_Widget *w, void *data)
{
#if defined(HAVE_OPTHOM)
highOrderToolsWindow *o = FlGui::instance()->highordertools;
int order = (int)o->value[0]->value();
......@@ -73,16 +77,20 @@ static void highordertools_runp_cb(Fl_Widget *w, void *data)
distanceFromMeshToGeometry_t dist;
computeDistanceFromMeshToGeometry (GModel::current(), dist);
for (std::map<GEntity*, double> ::iterator it = dist.d2.begin(); it !=dist.d2.end();++it){
printf ("GEntity %d of dim %d : dist %12.5E\n",it->first->tag(),it->first->dim(),it->second);
for (std::map<GEntity*, double> ::iterator it = dist.d2.begin();
it !=dist.d2.end();++it){
printf ("GEntity %d of dim %d : dist %12.5E\n",
it->first->tag(), it->first->dim(), it->second);
}
CTX::instance()->mesh.changed |= (ENT_LINE | ENT_SURFACE | ENT_VOLUME);
drawContext::global()->draw();
#endif
}
static void chooseopti_cb(Fl_Widget *w, void *data)
{
#if defined(HAVE_OPTHOM)
highOrderToolsWindow *o = FlGui::instance()->highordertools;
int elastic = o->choice[2]->value();
......@@ -101,11 +109,12 @@ static void chooseopti_cb(Fl_Widget *w, void *data)
o->value[i]->activate();
// o->push[1]->activate();
}
#endif
}
static void highordertools_runelas_cb(Fl_Widget *w, void *data)
{
#if defined(HAVE_OPTHOM)
highOrderToolsWindow *o = FlGui::instance()->highordertools;
bool elastic = o->choice[2]->value() == 1;
......@@ -135,6 +144,7 @@ static void highordertools_runelas_cb(Fl_Widget *w, void *data)
CTX::instance()->mesh.changed |= (ENT_LINE | ENT_SURFACE | ENT_VOLUME);
drawContext::global()->draw();
#endif
}
highOrderToolsWindow::highOrderToolsWindow(int deltaFontSize)
......@@ -151,7 +161,6 @@ highOrderToolsWindow::highOrderToolsWindow(int deltaFontSize)
int y = WB;
int x = 2 * WB;
butt[1] = new Fl_Check_Button
(x,y, 1.5*IW-WB, BH, "Visible entities only");
butt[1]->type(FL_TOGGLE_BUTTON);
......
......@@ -14,7 +14,6 @@
#include <FL/Fl_Check_Button.H>
#include <FL/Fl_Value_Input.H>
#include <FL/Fl_Output.H>
#include "GmshConfig.h"
class highOrderToolsWindow{
public:
......
......@@ -8,6 +8,7 @@
#include "GmshConfig.h"
#include "GmshMessage.h"
#include "meshGRegion.h"
#include "meshGFaceOptimize.h"
#include "meshGFaceBoundaryLayers.h"
#include "meshGRegionDelaunayInsertion.h"
#include "GModel.h"
......
......@@ -12,7 +12,9 @@
#include "meshGFaceLloyd.h"
#include "meshGFaceOptimize.h"
#include "meshPartitionOptions.h"
#if defined(HAVE_OPTHOM)
#include "OptHomRun.h"
#endif
#if defined(HAVE_METIS) || defined(HAVE_CHACO)
#include "meshPartition.h"
#endif
......@@ -43,7 +45,9 @@ namespace std {
%include "meshGFaceLloyd.h"
%include "meshGFaceOptimize.h"
%include "meshPartitionOptions.h"
#if defined(HAVE_OPTHOM)
%include "OptHomRun.h"
#endif
#if defined(HAVE_METIS) || defined(HAVE_CHACO)
%include "meshPartition.h"
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment