On Monday 08 November 2010, [email protected] wrote: > ad> This is incorrect because EVAL_BM_MODEL contains no > information, ad> only placeholders. The correct values are > in the daughter ad> object, which would be wiped out when > the placeholder is copied ad> over it. > > May be we speak about different things. > I speak about _temp_c value (as an example). > > It is initialized for EVAL_BM_MODEL during precalc_first() > and then it is lost when EVAL_BM_MODEL is converted into > EVAL_BM_SEMI_RESISTOR during expand(). > > please test that.
I don't see it. _temp_c in EVAL_BM_MODEL is not used, because EVAL_BM_MODEL is only a placeholder. The test cases I have show that the parameters are evaluated correctly. Can you post a test case that illustrates the problem?
# semiconductor "resistor" test .param pw=2u pl=1u pt=37 v1 1 0 dc 2 ac 5 r1 1 2 1k r2 2 0 t1 (w=pw l=pl temp=pt) .model t1 r rsh=1k tc2=.01 .print op v(nodes) r(r*) .print ac v(nodes) .op .ac .list .end
# semiconductor "resistor" test .param pw=2u pl=1u pt=37 v1 1 0 dc 2 ac 5 r1 1 2 1k r2 2 0 t1 (w=pw l=pl temp=pt) .model t1 r rsh=1k tc1=.1 .print op v(nodes) r(r*) .print ac v(nodes) .op .ac .list .end
_______________________________________________ Gnucap-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/gnucap-devel
