Opened 12 years ago

Closed 12 years ago

#2065 closed discussion (fixed)

c-runtime: side-effects using -lv

Reported by: Lennart Ochel Owned by: Lennart Ochel
Priority: high Milestone: 1.9.0
Component: Run-time Version: trunk
Keywords: c-runtime Cc: Vitalij Ruge, Adeel Asghar, Willi Braun

Description

We should get rid of side-effects while using –lv flags. For example the simulation gets stopped after the first step if the flag LOG_JAC_END is used.

"LOG_ENDJAC         [outputs the jacobian and exits the simulation]"

That is ugly and more a developer-flag than a user-flag.

That can be handled much smarter in two ways:

  1. We can use DEBUG_STREAM to determine if we are in debug (call it better developer) mode or user-mode.
  2. We can introduce a general debug-flag if needed. That can get several debug-options, similar to –lv. That would be a much more clear way to provide such functionality. I can provide such functionality if needed.

I am not sure if there are more side-effects.

Change History (2)

comment:1 by Willi Braun, 12 years ago

Yes, you are right, and the flag was only there for development propose. I've removed it.

IMHO your first proposal should be a suitable solution.

comment:2 by Lennart Ochel, 12 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.