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

use adaptive data if available

parent 6f817f30
No related branches found
No related tags found
No related merge requests found
...@@ -59,7 +59,7 @@ PView *GMSH_CurlPlugin::execute(PView *v) ...@@ -59,7 +59,7 @@ PView *GMSH_CurlPlugin::execute(PView *v)
PView *v1 = getView(iView, v); PView *v1 = getView(iView, v);
if(!v1) return v; if(!v1) return v;
PViewData *data1 = v1->getData(); PViewData *data1 = v1->getData(true); // get adaptive data is available
if(data1->hasMultipleMeshes()){ if(data1->hasMultipleMeshes()){
Msg::Error("Curl plugin cannot be run on multi-mesh views"); Msg::Error("Curl plugin cannot be run on multi-mesh views");
return v; return v;
......
...@@ -59,7 +59,7 @@ PView *GMSH_DivergencePlugin::execute(PView *v) ...@@ -59,7 +59,7 @@ PView *GMSH_DivergencePlugin::execute(PView *v)
PView *v1 = getView(iView, v); PView *v1 = getView(iView, v);
if(!v1) return v; if(!v1) return v;
PViewData *data1 = v1->getData(); PViewData *data1 = v1->getData(true); // get adaptive data is available
if(data1->hasMultipleMeshes()){ if(data1->hasMultipleMeshes()){
Msg::Error("Divergence plugin cannot be run on multi-mesh views"); Msg::Error("Divergence plugin cannot be run on multi-mesh views");
return v; return v;
......
...@@ -75,7 +75,7 @@ PView *GMSH_GradientPlugin::execute(PView *v) ...@@ -75,7 +75,7 @@ PView *GMSH_GradientPlugin::execute(PView *v)
PView *v1 = getView(iView, v); PView *v1 = getView(iView, v);
if(!v1) return v; if(!v1) return v;
PViewData *data1 = v1->getData(); PViewData *data1 = v1->getData(true); // get adaptive data is available
if(data1->hasMultipleMeshes()){ if(data1->hasMultipleMeshes()){
Msg::Error("Gradient plugin cannot be run on multi-mesh views"); Msg::Error("Gradient plugin cannot be run on multi-mesh views");
return v; return v;
......
...@@ -46,7 +46,7 @@ PView *GMSH_IntegratePlugin::execute(PView * v) ...@@ -46,7 +46,7 @@ PView *GMSH_IntegratePlugin::execute(PView * v)
PView *v1 = getView(iView, v); PView *v1 = getView(iView, v);
if(!v1) return v; if(!v1) return v;
PViewData *data1 = v1->getData(); PViewData *data1 = v1->getData(true); // get adaptive data is available
PView *v2 = new PView(); PView *v2 = new PView();
PViewDataList *data2 = getDataList(v2); PViewDataList *data2 = getDataList(v2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment