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

use adapted data wherever possible, and issue a warning if we do (since only a single time step

is then available to the plugin) -- for Koen
parent 9c12ccd2
Branches
Tags
No related merge requests found
Showing
with 25 additions and 25 deletions
// Gmsh - Copyright (C) 1997-2010 C. Geuzaine, J.-F. Remacle // Gmsh - Copyright (C) 1997-2011 C. Geuzaine, J.-F. Remacle
// //
// See the LICENSE.txt file for license information. Please report all // See the LICENSE.txt file for license information. Please report all
// bugs and problems to <gmsh@geuz.org>. // bugs and problems to <gmsh@geuz.org>.
......
// Gmsh - Copyright (C) 1997-2010 C. Geuzaine, J.-F. Remacle // Gmsh - Copyright (C) 1997-2011 C. Geuzaine, J.-F. Remacle
// //
// See the LICENSE.txt file for license information. Please report all // See the LICENSE.txt file for license information. Please report all
// bugs and problems to <gmsh@geuz.org>. // bugs and problems to <gmsh@geuz.org>.
...@@ -44,7 +44,7 @@ PView *GMSH_EigenvaluesPlugin::execute(PView *v) ...@@ -44,7 +44,7 @@ PView *GMSH_EigenvaluesPlugin::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 = getPossiblyAdaptiveData(v1);
if(data1->hasMultipleMeshes()){ if(data1->hasMultipleMeshes()){
Msg::Error("Eigenvalues plugin cannot be run on multi-mesh views"); Msg::Error("Eigenvalues plugin cannot be run on multi-mesh views");
return v; return v;
......
// Gmsh - Copyright (C) 1997-2010 C. Geuzaine, J.-F. Remacle // Gmsh - Copyright (C) 1997-2011 C. Geuzaine, J.-F. Remacle
// //
// See the LICENSE.txt file for license information. Please report all // See the LICENSE.txt file for license information. Please report all
// bugs and problems to <gmsh@geuz.org>. // bugs and problems to <gmsh@geuz.org>.
......
// Gmsh - Copyright (C) 1997-2010 C. Geuzaine, J.-F. Remacle // Gmsh - Copyright (C) 1997-2011 C. Geuzaine, J.-F. Remacle
// //
// See the LICENSE.txt file for license information. Please report all // See the LICENSE.txt file for license information. Please report all
// bugs and problems to <gmsh@geuz.org>. // bugs and problems to <gmsh@geuz.org>.
...@@ -52,7 +52,7 @@ PView *GMSH_EigenvectorsPlugin::execute(PView *v) ...@@ -52,7 +52,7 @@ PView *GMSH_EigenvectorsPlugin::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 = getPossiblyAdaptiveData(v1);
if(data1->hasMultipleMeshes()){ if(data1->hasMultipleMeshes()){
Msg::Error("Eigenvectors plugin cannot be run on multi-mesh views"); Msg::Error("Eigenvectors plugin cannot be run on multi-mesh views");
return v; return v;
......
// Gmsh - Copyright (C) 1997-2010 C. Geuzaine, J.-F. Remacle // Gmsh - Copyright (C) 1997-2011 C. Geuzaine, J.-F. Remacle
// //
// See the LICENSE.txt file for license information. Please report all // See the LICENSE.txt file for license information. Please report all
// bugs and problems to <gmsh@geuz.org>. // bugs and problems to <gmsh@geuz.org>.
......
// Gmsh - Copyright (C) 1997-2010 C. Geuzaine, J.-F. Remacle // Gmsh - Copyright (C) 1997-2011 C. Geuzaine, J.-F. Remacle
// //
// See the LICENSE.txt file for license information. Please report all // See the LICENSE.txt file for license information. Please report all
// bugs and problems to <gmsh@geuz.org>. // bugs and problems to <gmsh@geuz.org>.
......
// Gmsh - Copyright (C) 1997-2010 C. Geuzaine, J.-F. Remacle // Gmsh - Copyright (C) 1997-2011 C. Geuzaine, J.-F. Remacle
// //
// See the LICENSE.txt file for license information. Please report all // See the LICENSE.txt file for license information. Please report all
// bugs and problems to <gmsh@geuz.org>. // bugs and problems to <gmsh@geuz.org>.
......
// Gmsh - Copyright (C) 1997-2010 C. Geuzaine, J.-F. Remacle // Gmsh - Copyright (C) 1997-2011 C. Geuzaine, J.-F. Remacle
// //
// See the LICENSE.txt file for license information. Please report all // See the LICENSE.txt file for license information. Please report all
// bugs and problems to <gmsh@geuz.org>. // bugs and problems to <gmsh@geuz.org>.
...@@ -55,7 +55,7 @@ PView *GMSH_ExtractElementsPlugin::execute(PView *v) ...@@ -55,7 +55,7 @@ PView *GMSH_ExtractElementsPlugin::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 = getPossiblyAdaptiveData(v1);
bool checkMinMax = MinVal != MaxVal; bool checkMinMax = MinVal != MaxVal;
......
// Gmsh - Copyright (C) 1997-2010 C. Geuzaine, J.-F. Remacle // Gmsh - Copyright (C) 1997-2011 C. Geuzaine, J.-F. Remacle
// //
// See the LICENSE.txt file for license information. Please report all // See the LICENSE.txt file for license information. Please report all
// bugs and problems to <gmsh@geuz.org>. // bugs and problems to <gmsh@geuz.org>.
......
// Gmsh - Copyright (C) 1997-2010 C. Geuzaine, J.-F. Remacle // Gmsh - Copyright (C) 1997-2011 C. Geuzaine, J.-F. Remacle
// //
// See the LICENSE.txt file for license information. Please report all // See the LICENSE.txt file for license information. Please report all
// bugs and problems to <gmsh@geuz.org>. // bugs and problems to <gmsh@geuz.org>.
......
// Gmsh - Copyright (C) 1997-2010 C. Geuzaine, J.-F. Remacle // Gmsh - Copyright (C) 1997-2011 C. Geuzaine, J.-F. Remacle
// //
// See the LICENSE.txt file for license information. Please report all // See the LICENSE.txt file for license information. Please report all
// bugs and problems to <gmsh@geuz.org>. // bugs and problems to <gmsh@geuz.org>.
......
// Gmsh - Copyright (C) 1997-2010 C. Geuzaine, J.-F. Remacle // Gmsh - Copyright (C) 1997-2011 C. Geuzaine, J.-F. Remacle
// //
// See the LICENSE.txt file for license information. Please report all // See the LICENSE.txt file for license information. Please report all
// bugs and problems to <gmsh@geuz.org>. // bugs and problems to <gmsh@geuz.org>.
......
// Gmsh - Copyright (C) 1997-2010 C. Geuzaine, J.-F. Remacle // Gmsh - Copyright (C) 1997-2011 C. Geuzaine, J.-F. Remacle
// //
// See the LICENSE.txt file for license information. Please report all // See the LICENSE.txt file for license information. Please report all
// bugs and problems to <gmsh@geuz.org>. // bugs and problems to <gmsh@geuz.org>.
...@@ -44,7 +44,7 @@ PView *GMSH_GradientPlugin::execute(PView *v) ...@@ -44,7 +44,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(true); // get adaptive data if available PViewData *data1 = getPossiblyAdaptiveData(v1);
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;
......
// Gmsh - Copyright (C) 1997-2010 C. Geuzaine, J.-F. Remacle // Gmsh - Copyright (C) 1997-2011 C. Geuzaine, J.-F. Remacle
// //
// See the LICENSE.txt file for license information. Please report all // See the LICENSE.txt file for license information. Please report all
// bugs and problems to <gmsh@geuz.org>. // bugs and problems to <gmsh@geuz.org>.
......
// Gmsh - Copyright (C) 1997-2010 C. Geuzaine, J.-F. Remacle // Gmsh - Copyright (C) 1997-2011 C. Geuzaine, J.-F. Remacle
// //
// See the LICENSE.txt file for license information. Please report all // See the LICENSE.txt file for license information. Please report all
// bugs and problems to <gmsh@geuz.org>. // bugs and problems to <gmsh@geuz.org>.
......
// Gmsh - Copyright (C) 1997-2010 C. Geuzaine, J.-F. Remacle // Gmsh - Copyright (C) 1997-2011 C. Geuzaine, J.-F. Remacle
// //
// See the LICENSE.txt file for license information. Please report all // See the LICENSE.txt file for license information. Please report all
// bugs and problems to <gmsh@geuz.org>. // bugs and problems to <gmsh@geuz.org>.
......
// Gmsh - Copyright (C) 1997-2010 C. Geuzaine, J.-F. Remacle // Gmsh - Copyright (C) 1997-2011 C. Geuzaine, J.-F. Remacle
// //
// See the LICENSE.txt file for license information. Please report all // See the LICENSE.txt file for license information. Please report all
// bugs and problems to <gmsh@geuz.org>. // bugs and problems to <gmsh@geuz.org>.
......
// Gmsh - Copyright (C) 1997-2010 C. Geuzaine, J.-F. Remacle // Gmsh - Copyright (C) 1997-2011 C. Geuzaine, J.-F. Remacle
// //
// See the LICENSE.txt file for license information. Please report all // See the LICENSE.txt file for license information. Please report all
// bugs and problems to <gmsh@geuz.org>. // bugs and problems to <gmsh@geuz.org>.
......
// Gmsh - Copyright (C) 1997-2010 C. Geuzaine, J.-F. Remacle // Gmsh - Copyright (C) 1997-2011 C. Geuzaine, J.-F. Remacle
// //
// See the LICENSE.txt file for license information. Please report all // See the LICENSE.txt file for license information. Please report all
// bugs and problems to <gmsh@geuz.org>. // bugs and problems to <gmsh@geuz.org>.
...@@ -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(true); // get adaptive data if available PViewData *data1 = getPossiblyAdaptiveData(v1);
PView *v2 = new PView(); PView *v2 = new PView();
PViewDataList *data2 = getDataList(v2); PViewDataList *data2 = getDataList(v2);
......
// Gmsh - Copyright (C) 1997-2010 C. Geuzaine, J.-F. Remacle // Gmsh - Copyright (C) 1997-2011 C. Geuzaine, J.-F. Remacle
// //
// See the LICENSE.txt file for license information. Please report all // See the LICENSE.txt file for license information. Please report all
// bugs and problems to <gmsh@geuz.org>. // bugs and problems to <gmsh@geuz.org>.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment