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

fix verb for blackbox builds

parent 5f09de86
No related branches found
No related tags found
No related merge requests found
// $Id: Main.cpp,v 1.12 2001-11-19 09:29:18 geuzaine Exp $
// $Id: Main.cpp,v 1.13 2001-12-05 10:17:51 geuzaine Exp $
#include <signal.h>
#include "ParUtil.h"
......@@ -165,7 +165,7 @@ void Msg(int level, char *fmt, ...){
switch(level){
case DIRECT :
if(ParUtil::Instance()->master())
if(CTX.verbosity >=2 && ParUtil::Instance()->master())
vfprintf(stdout, fmt, args); fprintf(stdout, "\n");
break;
......@@ -186,28 +186,28 @@ void Msg(int level, char *fmt, ...){
fprintf(stderr,"On processor %d : ", ParUtil::Instance()->rank());
fprintf(stderr, ERROR_STR);
vfprintf(stderr, fmt, args); fprintf(stderr, "\n");
abort = 1 ;
break ;
case WARNING :
case WARNING1 :
case WARNING2 :
case WARNING3 :
if(CTX.verbosity >= 1){
fprintf(stderr,"On processor %d : ", ParUtil::Instance()->rank());
fprintf(stderr, WARNING_STR);
vfprintf(stderr, fmt,args); fprintf(stderr, "\n");
}
break;
case PARSER_ERROR :
if(ParUtil::Instance()->master())
{
if(ParUtil::Instance()->master()){
fprintf(stderr, PARSER_ERROR_STR);
vfprintf(stderr, fmt, args); fprintf(stderr, "\n");
}
break ;
case PARSER_INFO :
if(CTX.verbosity == 5 && ParUtil::Instance()->master()){
if(CTX.verbosity >= 2 && ParUtil::Instance()->master()){
fprintf(stderr, PARSER_INFO_STR);
vfprintf(stderr, fmt, args); fprintf(stderr, "\n");
}
......@@ -217,14 +217,14 @@ void Msg(int level, char *fmt, ...){
case DEBUG1 :
case DEBUG2 :
case DEBUG3 :
if(ParUtil::Instance()->master() && CTX.verbosity > 2){
if(CTX.verbosity >= 3 && ParUtil::Instance()->master()){
fprintf(stderr, DEBUG_STR);
vfprintf(stderr, fmt, args); fprintf(stderr, "\n");
}
break;
default :
if(ParUtil::Instance()->master() && CTX.verbosity > 0){
if(CTX.verbosity >= 1 && ParUtil::Instance()->master()){
fprintf(stderr, INFO_STR);
vfprintf(stderr, fmt, args); fprintf(stderr, "\n");
}
......
......@@ -304,11 +304,7 @@ StringXNumber GeneralOptions_Number[] = {
"Z-axis translation (in model units)" },
#ifdef _BLACKBOX
{ F|O, "Verbosity" , opt_general_verbosity , 0. ,
#else
{ F|O, "Verbosity" , opt_general_verbosity , 2. ,
#endif
"Level of information printed during processing (0=no information)" },
{ F|O, "ZoomFactor" , opt_general_zoom_factor , 1.1 ,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment