gnucap-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnucap-devel] [Help-gnucap] Possibly a bug?


From: al davis
Subject: Re: [Gnucap-devel] [Help-gnucap] Possibly a bug?
Date: Wed, 22 May 2013 12:24:04 -0400
User-agent: KMail/1.13.7 (Linux/3.2.0-4-amd64; KDE/4.8.4; x86_64; ; )

On Wednesday 22 May 2013, Orestes Mas wrote:
> I'm obtaining unexpected results (NaN) when simulating a
> simple circuit:

Try adding a line .....


/*---------------------------------------------------- */
void DEV_RESISTANCE::precalc_last()
{
  ELEMENT::precalc_last();
  _y[0].f1 = (value() != 0.) ? value() : OPT::shortckt;
  set_constant(!has_tr_eval());
  set_converged(!has_tr_eval());
}
/*-----------------------------------------------------*/


As Felix said .. it's a divide by zero problem converting 
resistance (zero) to admittance.

Problem started associated with plugin conversion, or explicit 
"precalc_last".



reply via email to

[Prev in Thread] Current Thread [Next in Thread]