From cfec1ab8b57d081741b0c46491a65620de809971 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Sun, 29 Jan 2006 23:25:20 +0000 Subject: [PATCH] typo --- Plugin/ExtractElements.cpp | 13 +++++++------ doc/texinfo/opt_plugin.texi | 7 ++++--- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/Plugin/ExtractElements.cpp b/Plugin/ExtractElements.cpp index a7803a398a..7849ac4ce6 100644 --- a/Plugin/ExtractElements.cpp +++ b/Plugin/ExtractElements.cpp @@ -1,4 +1,4 @@ -// $Id: ExtractElements.cpp,v 1.3 2006-01-28 03:23:15 geuzaine Exp $ +// $Id: ExtractElements.cpp,v 1.4 2006-01-29 23:25:20 geuzaine Exp $ // // Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle // @@ -59,9 +59,10 @@ void GMSH_ExtractElementsPlugin::getInfos(char *author, char *copyright, char *h strcpy(copyright, "DGR (www.multiphysics.com)"); strcpy(help_text, "Plugin(ExtractElements) extracts the elements\n" - "from the view `iView' whose `TimeStep'th values\n" - "are comprised between `MinVal' and `MaxVal'. If\n" - "`iView' < 0, the plugin is run on the current view.\n" + "from the view `iView' whose `TimeStep'-th values\n" + "(averaged by element) are comprised between\n" + "`MinVal' and `MaxVal'. If `iView' < 0, the plugin\n" + "is run on the current view.\n" "\n" "Plugin(ExtractElements) creates one new view.\n"); } @@ -108,8 +109,8 @@ static void extract(List_T *inList, int inNb, } } d /= (double)nbNod; - // '<=' and '<' so that we can do segmentation without playing - // without worrying about roudoff errors + // We use '>=' and '<' so that we can do segmentation without + // worrying about roudoff errors if(d >= MinVal && d < MaxVal){ for(int j = 0; j < nb; j++) List_Add(outList, List_Pointer_Fast(inList, i + j)); diff --git a/doc/texinfo/opt_plugin.texi b/doc/texinfo/opt_plugin.texi index 2a0a206009..09263c0428 100644 --- a/doc/texinfo/opt_plugin.texi +++ b/doc/texinfo/opt_plugin.texi @@ -433,9 +433,10 @@ Default value: @code{-1} @item Plugin(ExtractElements) Plugin(ExtractElements) extracts the elements -from the view `iView' whose `TimeStep'th values -are comprised between `MinVal' and `MaxVal'. If -`iView' < 0, the plugin is run on the current view. +from the view `iView' whose `TimeStep'-th values +(averaged by element) are comprised between +`MinVal' and `MaxVal'. If `iView' < 0, the plugin +is run on the current view. Plugin(ExtractElements) creates one new view. -- GitLab