mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-08-22 05:47:42 +02:00
ngspiceMODULEdefs.h.xml, add min max for the sake of XXXguesstopology.c
This commit is contained in:
@@ -104,6 +104,9 @@ if(isinf((double) var)) \\
|
|||||||
exit(1); /*__asm__ __volatile__ ("int \$03");*/ \\
|
exit(1); /*__asm__ __volatile__ ("int \$03");*/ \\
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline double max(double x,double y) { return ((x)>(y))?(x):(y); }
|
||||||
|
static inline double min(double x,double y) { return ((x)<(y))?(x):(y); }
|
||||||
|
|
||||||
/* ngspice \$simparam variables
|
/* ngspice \$simparam variables
|
||||||
gdev (1/Ohms): Additional conductance to be added to nonlinear branches for conductance homotopy convergence algorithm.
|
gdev (1/Ohms): Additional conductance to be added to nonlinear branches for conductance homotopy convergence algorithm.
|
||||||
gmin (1/Ohms): Minimum conductance placed in parallel with nonlinear branches.
|
gmin (1/Ohms): Minimum conductance placed in parallel with nonlinear branches.
|
||||||
|
|||||||
Reference in New Issue
Block a user