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

typo

parent 7bbccfc4
No related branches found
No related tags found
No related merge requests found
// $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 // Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle
// //
...@@ -59,9 +59,10 @@ void GMSH_ExtractElementsPlugin::getInfos(char *author, char *copyright, char *h ...@@ -59,9 +59,10 @@ void GMSH_ExtractElementsPlugin::getInfos(char *author, char *copyright, char *h
strcpy(copyright, "DGR (www.multiphysics.com)"); strcpy(copyright, "DGR (www.multiphysics.com)");
strcpy(help_text, strcpy(help_text,
"Plugin(ExtractElements) extracts the elements\n" "Plugin(ExtractElements) extracts the elements\n"
"from the view `iView' whose `TimeStep'th values\n" "from the view `iView' whose `TimeStep'-th values\n"
"are comprised between `MinVal' and `MaxVal'. If\n" "(averaged by element) are comprised between\n"
"`iView' < 0, the plugin is run on the current view.\n" "`MinVal' and `MaxVal'. If `iView' < 0, the plugin\n"
"is run on the current view.\n"
"\n" "\n"
"Plugin(ExtractElements) creates one new view.\n"); "Plugin(ExtractElements) creates one new view.\n");
} }
...@@ -108,8 +109,8 @@ static void extract(List_T *inList, int inNb, ...@@ -108,8 +109,8 @@ static void extract(List_T *inList, int inNb,
} }
} }
d /= (double)nbNod; d /= (double)nbNod;
// '<=' and '<' so that we can do segmentation without playing // We use '>=' and '<' so that we can do segmentation without
// without worrying about roudoff errors // worrying about roudoff errors
if(d >= MinVal && d < MaxVal){ if(d >= MinVal && d < MaxVal){
for(int j = 0; j < nb; j++) for(int j = 0; j < nb; j++)
List_Add(outList, List_Pointer_Fast(inList, i + j)); List_Add(outList, List_Pointer_Fast(inList, i + j));
......
...@@ -433,9 +433,10 @@ Default value: @code{-1} ...@@ -433,9 +433,10 @@ Default value: @code{-1}
@item Plugin(ExtractElements) @item Plugin(ExtractElements)
Plugin(ExtractElements) extracts the elements Plugin(ExtractElements) extracts the elements
from the view `iView' whose `TimeStep'th values from the view `iView' whose `TimeStep'-th values
are comprised between `MinVal' and `MaxVal'. If (averaged by element) are comprised between
`iView' < 0, the plugin is run on the current view. `MinVal' and `MaxVal'. If `iView' < 0, the plugin
is run on the current view.
Plugin(ExtractElements) creates one new view. Plugin(ExtractElements) creates one new view.
......
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