calculix / CalculiX-Examples

CalculiX examples by Prof. Martin Kraska from Brandenburg University of Applied Sciences. Excellent starting point to master parametric modelling with CGX and CCX.
MIT License
299 stars 92 forks source link

testall.py: close windows automatically #36

Closed imirzov closed 4 years ago

imirzov commented 4 years ago

Hi!

Your examples are amazing! But running testall.py I must manually close GMSH and GraphiX windows for all examples. Please, could you implement automatic close of all windows?

mkraska commented 4 years ago

Thanks a lot for the contribution. I'd like to keep the option to interactively explore the examples in CGX. In this case it is desirable that the CGX windows stay open. Possibly, we could use a special init script for CGX if automatic closing of the window is required. I shall ask Klaus Wittig for a recommendation.

mkraska commented 4 years ago

The recommendation by Klaus is to put a read command to the end of the script. The file to be read contains the quit command when in batch mode and nothing if in interactive mode.

The disadvantage is that you have to take care of this in every new fbd script. Therefore, I prefer to temporarily append a line to the script. Perhaps a standard test procedure might look like this:

imirzov commented 4 years ago

Here is first try to implement my idea: https://github.com/mkraska/CalculiX-Examples/pull/45