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

fatal->erreur simple si lc <= 0

parent edda69e0
No related branches found
No related tags found
No related merge requests found
// $Id: Generator.cpp,v 1.10 2001-02-17 22:08:58 geuzaine Exp $
// $Id: Generator.cpp,v 1.11 2001-03-14 12:04:25 geuzaine Exp $
#include "Gmsh.h"
#include "Const.h"
......@@ -24,9 +24,11 @@ void GetStatistics (double s[50]){
void ApplyLcFactor_Point(void *a, void *b){
Vertex *v = *(Vertex**)a;
if(v->lc <= 0.0)
Msg(FATAL, "Wrong characteristic Length (%g <= 0) for Point %d",
if(v->lc <= 0.0){
Msg(GERROR, "Wrong characteristic Length (%g <= 0) for Point %d (defaulting to 1.0)",
v->lc, v->Num);
v->lc = 1.0 ;
}
v->lc *= CTX.mesh.lc_factor;
}
void ApplyLcFactor_Attractor(void *a, void *b){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment