Forum Message

 

 

We have moved the forum to https://forum.ngsolve.org . This is an archived version of the topics until 05/05/23. All the topics were moved to the new forum and conversations can be continued there. This forum is just kept as legacy to not invalidate old links. If you want to continue a conversation just look for the topic in the new forum.

Notice

The forum is in read only mode.

Pausing netgen

More
1 year 8 months ago #4479 by pbmonk
Pausing netgen was created by pbmonk
This is on a Mac with OSX 12.4 and I run Netgen from the command line usually.

In the past (up to v2203 of Netgen I think) I have pause a sequence of Draw commands using simple input() eg

   Draw (uplot.components[2].Norm(), mesh,'v')
    input()

 but after installing 2204 I get the message

Tcl_WaitForEvent: Notifier not initialized
zsh: abort      netgen mITP_TDNSS.py

and Netgen crashes. Is there a good way to pause a sequence of graphical results?

Thanks for the help!
Peter
More
1 year 8 months ago #4480 by joachim
Replied by joachim on topic Pausing netgen
Hi Peter,

this problem is certainly caused by the recent decoupling of the core code and the gui.

I can confirm the problem on MacOS, a fix is the following:

add  "import netgen.gui" into the py-script, and run the file using "python3 script.py"

Joachim


 
Time to create page: 0.126 seconds