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

fix compile without solver

parent 91e6084d
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#include "BackgroundMeshTools.h" #include "BackgroundMeshTools.h"
#include "GmshMessage.h" #include "GmshMessage.h"
#include "GModel.h"
#include "GVertex.h" #include "GVertex.h"
#include "GEdge.h" #include "GEdge.h"
#include "GEdgeCompound.h" #include "GEdgeCompound.h"
...@@ -21,6 +22,8 @@ ...@@ -21,6 +22,8 @@
#include "MTriangle.h" #include "MTriangle.h"
#include "Field.h" #include "Field.h"
#include "OS.h" #include "OS.h"
#include "Context.h"
#include "meshGFaceOptimize.h"
#if defined(HAVE_SOLVER) #if defined(HAVE_SOLVER)
#include "dofManager.h" #include "dofManager.h"
...@@ -32,17 +35,18 @@ ...@@ -32,17 +35,18 @@
#endif #endif
class evalDiffusivityFunction : public simpleFunction<double>{ class evalDiffusivityFunction : public simpleFunction<double>{
public: public:
evalDiffusivityFunction(frameFieldBackgroundMesh2D *_bgm, double t=0.95):bgm(_bgm),threshold(t){}; evalDiffusivityFunction(frameFieldBackgroundMesh2D *_bgm, double t=0.95)
double operator () (double u, double v, double w) const{ : bgm(_bgm),threshold(t){};
return ((bgm->get_smoothness(u,v) >= threshold) ? 1. : 1.e-3); double operator () (double u, double v, double w) const
} {
private: return ((bgm->get_smoothness(u,v) >= threshold) ? 1. : 1.e-3);
frameFieldBackgroundMesh2D *bgm; }
const double threshold; private:
frameFieldBackgroundMesh2D *bgm;
const double threshold;
}; };
//TODO: move this fct ??? //TODO: move this fct ???
/* applies rotations of amplitude pi to set the /* applies rotations of amplitude pi to set the
angle in the first quadrant (in [0,pi/2[ ) */ angle in the first quadrant (in [0,pi/2[ ) */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment