Opened 8 years ago

Last modified 6 years ago

#447 new defect

Cactus' default warning level should be higher than 0.

Reported by: alexander.beck-ratzka@… Owned by: Erik Schnetter
Priority: major Milestone:
Component: Cactus Version:
Keywords: Cc:


The perl version of simfactory always uses the debugging loglevel for simulations. The loglevel of a cactus simulation can be specified by setting -L to a value between 0 (none) and 3 (debug). While the cactus default is 0, simfactory sets it to 3. The debug loglevel could lead to huge output files.

I would suggest to set it to the cactus default, and allow a user to increase it.

Attachments (0)

Change History (4)

comment:1 Changed 8 years ago by Ian Hinder

According to the documentation (, the warning levels are:

#define CCTK_WARN_ABORT 0 /* abort the Cactus run */
#define CCTK_WARN_ALERT 1 /* the results of this run will probably */

/* be wrong, but this isn’t quite certain, */
/* so we’re not going to abort the run */

#define CCTK_WARN_COMPLAIN 2 /* the user should know about this, but */

/* the results of this run are probably ok */

#define CCTK_WARN_PICKY 3 /* this is for small problems that can */

/* probably be ignored, but that careful */
/* people may want to know about */

#define CCTK_WARN_DEBUG 4 /* these messages are probably useful */

/* only for debugging purposes */

so level 3 is actually "PICKY", not "DEBUG". This means that unless something is actually wrong, or might be wrong, the warning should not be issued (in contrast to DEBUG). Usually warnings are there for a reason, and hiding them could lead to hard-to-diagnose problems. If all the warning calls in the code respected these definitions (unlikely), then possible sensible defaults for the log level would be 2 or 3. Since scientists are supposed to be "careful people", we should all be using 3, which is the current default in SimFactory :)

The interpretation of the command line arguments is given here:

Actually, I would be in favour of changing the Cactus default from 0 to 3. Then we could remove the "-L 3" in simfactory as the Cactus default would be suitable. What do people think of this option?

comment:2 Changed 7 years ago by Ian Hinder

Summary: simfactory 1.0 always uses -L 3simfactory always uses -L 3

comment:3 Changed 6 years ago by Frank Löffler

Summary: simfactory always uses -L 3Cactus' default warning level should be higher than 0.

I agree that the Cactus default could be changed to at least 2, possibly even 3. Right now I tend towards 2, but that's not a strong opinion.

comment:4 Changed 6 years ago by Frank Löffler

Component: SimFactoryCactus

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain Erik Schnetter.
Next status will be 'review'.
as The resolution will be set.
to The owner will be changed from Erik Schnetter to the specified user.
Next status will be 'confirmed'.
The owner will be changed from Erik Schnetter to anonymous.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.