EDIT: The error seems to be that ngspice.js it's own circuit-file creates and uses. If i try to load another circuit-file (by entering the spice commands into the inputs array like it is done in pre.js) ngspice-js returns "No such file or directory". The file i try to load is in the same directory as ngspice.js and ngspice.html.
I get different results when executing an op-analysis with ngspice-js and ngspice. The circuit is as follows:
ngspice-js returns v(1) = 1.000000e+00 whereas ngspice (correctly) returns v(1) = 5.000000e+00.
EDIT: The error seems to be that ngspice.js it's own circuit-file creates and uses. If i try to load another circuit-file (by entering the spice commands into the inputs array like it is done in pre.js) ngspice-js returns "No such file or directory". The file i try to load is in the same directory as ngspice.js and ngspice.html.