Fix for crash when compiling module with no parameters.
See https://github.com/pascalkuthe/OpenVAF/issues/103
This is the correct commit. Apparently, having a dummy parameter interns the empty string (possibly the unit or description of the parameter), so that the later lookup of the empty string finds a match.
@gjcoram It seems that this patch follows in a crash compiling psphv version 1.0.6 (see https://github.com/dwarning/VA-Models/tree/main/code/psphv/vacode). Log file attached: openvaf-crash-1721544959.log
@gjcoram Update README.md to point to this repository instead of pascalkuthe
I guess you went and officially forked this? are you mantaining it?
I guess you went and officially forked this? are you mantaining it?
I hope to continue to improve it.
I get something weird
thread 'main' panicked at openvaf/openvaf/tests/integration.rs:210:9:
assertion failed: `(left approx_eq right)`
left: `624.0`,
right: `78.0`
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
test noise ... test panicked: assertion failed: `(left approx_eq right)`
left: `624.0`,
right: `78.0`
FAILED
failures:
noise
test result: FAILED. 1 passed; 1 failed; 26 ignored; 0 filtered out; finished in 0.10s
trying to merge this branch