From 1caee800ee3208d3d874c6b5b70a90473e08d508 Mon Sep 17 00:00:00 2001 From: r29173 Date: Mon, 30 Apr 2007 13:10:35 +0000 Subject: [PATCH] improved 'guesstopology' fixed implementation of macro 'noise' when building 'load' traverse block 'noise' --- .../admst/ngspiceMODULEguesstopology.c.xml | 326 ++++++++---------- .../adms/admst/ngspiceMODULEload.c.xml | 17 +- .../devices/adms/admst/ngspiceVersion.xml | 60 ++-- 3 files changed, 180 insertions(+), 223 deletions(-) diff --git a/src/spicelib/devices/adms/admst/ngspiceMODULEguesstopology.c.xml b/src/spicelib/devices/adms/admst/ngspiceMODULEguesstopology.c.xml index affb3b1f6..5cf2548eb 100644 --- a/src/spicelib/devices/adms/admst/ngspiceMODULEguesstopology.c.xml +++ b/src/spicelib/devices/adms/admst/ngspiceMODULEguesstopology.c.xml @@ -3,7 +3,12 @@ - + - + - - - - - - - - - - - + fabs + shrinkl + shrinka + log10 + log + limexp + limexp + _modelname + _instancename + _circuit_temp + %(name) - - - + + - - - + @@ -95,7 +97,7 @@ - + @@ -116,13 +118,10 @@ - - - - - + + @@ -136,202 +135,114 @@ - - + - - - - - - - int %s;\n - double %s=0.0/0.0;\n - char* %s;\n - - - - - - + - - - - - - - + + + + - - + - + - + - + - + - - + + - - - - + + - - - - - - - - - - + + - - + + + + + + - - - - - - - - - - - - - + + + + - - - - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - + + + + + + - - - - - + + - - - - - - - - - - - - + + + + + + + + + + + - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #include "ngspice.h" #include "cktdefs.h" @@ -342,7 +253,7 @@ #include "ifsim.h" #include "suffix.h" -#define jacobian(a,b) here->PTR_J_##a##_##b##_required=1; +#define jacobian(a,b) here->PTR_J_##a##_##b##_required=1; #define static_jacobian4(p,q,r,s) jacobian(p,r) jacobian(p,s) jacobian(q,r) jacobian(q,s) #define static_jacobian2s(p,q,r) jacobian(p,r) jacobian(q,r) #define static_jacobian2p(p,r,s) jacobian(p,r) jacobian(p,s) @@ -364,24 +275,69 @@ int $(module)guesstopology (SMPmatrix *matrix, CKTcircuit *ckt, $(module)model *model, $(module)instance *here) /* guess topology */ { - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int %(name);\n + double %(name)=0.0/0.0;\n + char* %(name);\n + + + + + + return(OK); } + - - - - - - - + + + + - - + diff --git a/src/spicelib/devices/adms/admst/ngspiceMODULEload.c.xml b/src/spicelib/devices/adms/admst/ngspiceMODULEload.c.xml index 85facc05d..f63721790 100644 --- a/src/spicelib/devices/adms/admst/ngspiceMODULEload.c.xml +++ b/src/spicelib/devices/adms/admst/ngspiceMODULEload.c.xml @@ -3,7 +3,12 @@ - - - - - - - - - - - - - - - - + + + + + + + - + + + + + + + + @@ -1838,22 +1841,11 @@ - - - - - - - - - - - - - - - - + + + + +