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

fix (partially) levelset-based plugins for adapted views

(still need more work to work transparently on multisteo datasets)
parent 116c6997
No related branches found
No related tags found
No related merge requests found
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#include "Iso.h" #include "Iso.h"
#include "adaptiveData.h" #include "adaptiveData.h"
#include "GmshDefines.h" #include "GmshDefines.h"
#include "PViewOptions.h"
static const int exn[13][12][2] = { static const int exn[13][12][2] = {
{{0,0}}, // point {{0,0}}, // point
...@@ -397,8 +398,11 @@ void GMSH_LevelsetPlugin::_cutAndAddElements(PViewData *vdata, PViewData *wdata, ...@@ -397,8 +398,11 @@ void GMSH_LevelsetPlugin::_cutAndAddElements(PViewData *vdata, PViewData *wdata,
PView *GMSH_LevelsetPlugin::execute(PView *v) PView *GMSH_LevelsetPlugin::execute(PView *v)
{ {
// FIXME: we can only run the plugin on one step at a time
if(v->getData()->isAdaptive()){ if(v->getData()->isAdaptive()){
v->getData()->getAdaptiveData()->changeResolution(0, _recurLevel, _targetError, this); PViewOptions *opt = v->getOptions();
v->getData()->getAdaptiveData()->changeResolution
(opt->timeStep, _recurLevel, _targetError, this);
v->setChanged(true); v->setChanged(true);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment