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
No related branches found
No related tags found
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>.
......
// 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>.
...@@ -44,7 +44,7 @@ PView *GMSH_CurlPlugin::execute(PView *v) ...@@ -44,7 +44,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(true); // get adaptive data if available PViewData *data1 = getPossiblyAdaptiveData(v1);
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;
......
// 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>.
...@@ -313,7 +313,7 @@ PView *GMSH_CutGridPlugin::GenerateView(PView *v1, int connect) ...@@ -313,7 +313,7 @@ PView *GMSH_CutGridPlugin::GenerateView(PView *v1, int connect)
if(getNbU() <= 0 || getNbV() <= 0) if(getNbU() <= 0 || getNbV() <= 0)
return v1; return v1;
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>.
......
// 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>.
...@@ -237,7 +237,7 @@ PView *GMSH_CutParametricPlugin::execute(PView *v) ...@@ -237,7 +237,7 @@ PView *GMSH_CutParametricPlugin::execute(PView *v)
if(!fillXYZ()) return v; if(!fillXYZ()) return v;
PViewData *data1 = v1->getData(); PViewData *data1 = getPossiblyAdaptiveData(v1);
int numSteps = data1->getNumTimeSteps(); int numSteps = data1->getNumTimeSteps();
int nbU = (int)CutParametricOptions_Number[2].def; int nbU = (int)CutParametricOptions_Number[2].def;
......
// 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>.
......
// 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_DivergencePlugin::execute(PView *v) ...@@ -44,7 +44,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(true); // get adaptive data if available PViewData *data1 = getPossiblyAdaptiveData(v1);
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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment