Hello! I am writing extension for control of ngspice in form of shared library. My question is - what is the safe sequence for unloading shared library without memory corruption? My sequence is: 1. Tries to gracefully shut down background thread by bg_halt command, wait for the BGThreadRunning callback with some timeout (there is also checks that wait issuing bg_halt until thread is launched, if call to unload arrive at that transition time) 2. Send quit command to ngspice 3. Wait for ControlledExit...
Hello! I am writing extension for control of ngspice in form of shared library. My question is - what is the safe sequence for unloading shared library without memory corruption? My sequence is: 1. Tries to gracefully shut down background thread by bg_halt command, wait for the BGThreadRunning callback with some timeout (there is also checks that wait issuing bg_halt until thread is launched, if call to unload arrive at that transition time) 2. Send quit command to ngspice 3. Wait for ControlledExit...
Hello! I am writing extension for control of ngspice in form of shared library. My question is - what is the safe sequence for unloading shared library without memory corruption? My sequence is: 1. Tries to gracefully shut down background thread by bg_halt command, wait for the BGThreadRunning callback with some timeout (there is also checks that wait issuing bg_halt until thread is launched, if call to unload arrive at that transition time) 2. Send quit command to ngspice 3. Wait for ControlledExit...
Hello! I am writing extension for control of ngspice in form of shared library. My question is - what is the safe sequence for unloading shared library without memory corruption? My sequence is: 1. Tries to gracefully shut down background thread by bg_halt command, wait for the BGThreadRunning callback with some timeout (there is also checks that wait issuing bg_halt until thread is launched, if call to unload arrive at that transition time) 2. Send "quit" command to ngspice 3. Wait for ControlledExit...
Right after posting, I realized that I can just put quit command right after the write command...
Hello! It may sounds strange, but my question is: Is it possible to override raw file that is specified with command line option -r in batch mode? For example, I want to save raw file inside .control section with write command under the same name as file specified with -r option, but with different vectors. If I just add write command, the file later is being overwritten by standard raw file. I know that I can just not specify -r option, but in my specific application, it is difficult to know if...
As far as I know, there is no such feature now. In theory, it could be handled with compiling Ngspice as a shared library and control it precisely from external script that detects convergence issues, change tolerances and resume simulation, but still need confirmation from more experienced users
As far as I know, there is no such feature now. In theory, it could be handled with compiling Ngspice and shared library and control it precisely from external script that detects convergence issues, change tolerances and continue running, but still need confirmation from more experienced users