Open paulray opened 12 years ago
no, indeed it hasn't, the original design had a strict separation between in and output, because Roberto wanted Python-style return values, so to decide want to have as function parameter and what to return he had to separate. thanks for the bug report. Will need to think a bit about how to solve this. It might be cleaned up together for the functions that have unallocated array sizes as output. Those as well are not implemented as of yet (apart from my hardcoding hack for getfov).
The wrapper code for gfoclt_c is broken. The argument cnfine is actually supposed to be BOTH an input and an output. The wrapper considers it only an input and thus when the routine is called it tries to read a null pointer and segfaults.
I don't know if PySPICE has a preferred method for handling arguments that are both Input and Output.
The help text correctly lists it as I-O: