sfepy/sfepy — Issue #120: quiet solver
Author: rc
Created: 2012-01-30 10:26:41+00:00
State: open

With many time steps the output becomes "noisy" and slows processing. Could
we include a "-quiet" command line option to prevent this output.

Migrated from http://code.google.com/p/sfepy/issues/detail?id=118

earlier comments

robert.cimrman said, at 2010-04-15T13:13:41.000Z:

Good idea. See also Issue 16.

What do you mean by "slows processing"? The time for each step should be roughly the
same (for linear problems at least). I guess it's more related to adding the next
step to a growing hdf5 file? We may need to control what get's saved at what step...

freevryheid said, at 2010-04-15T14:19:02.000Z:

"Slows processing" is wrong, rather delays solution given all the printing :)

Also - this is not a defect but an enhancement
Following your previous comment:
"You can just click into 'Add a comment and make changes' field, type nothing, change
labels, and save changes - this should work."
I don't have these options - I think only admins do.

robert.cimrman said, at 2010-04-15T14:27:41.000Z:

I see :)

I have added your mail (freevryheid) to project members - try changing the issue
labels now.

robert.cimrman said, at 2010-04-19T07:16:25.000Z:

I guess we should add two options:

--quiet to suppress all output
--log= to redirect the output to a text file

Then

simple.py ... would print messages to screen
simple.py --quiet would not produce any text output
simple.py --log=file would both print to screen and log to the file
simple.py --quiet --log=file would not print to screen and only log to the file

What do you say?

robert.cimrman said, at 2010-04-21T07:27:08.000Z:

Assuming you agree, the above solution is implemented in the github repo.

freevryheid said, at 2010-04-21T12:33:05.000Z:

Thanks Robert!