[Ktechlab-devel] Converting to Eigen -- update equation matrix size?

Alan Grimes agrimes at speakeasy.net
Mon Aug 3 01:00:54 UTC 2009


P Zoltan wrote:
>   I've tried to convert the existing code to use Eigen, but at this moment  
> it's totally broken, due to the fact that if a new element/component is  
> added to the circuit, the corresponding matrix's size doesn't change, so  
> some nodes won't get voltage values. Does anybody know how adding new  
> elements it's supposed to work?

Circuit or Circuit document totally destroys the existing elementSet and
builds a new one, that's how it works.

>   Later edit: it seems to me that after each added component, the  
> CircuitDocument is divided in Circuits and ElementSets and each Circuit  
> gets an init() call, where the matrix is recreated. Some more debugging is  
> needed... And also a decent logging method, because debugging complex data  
> structures/classes tends to suck.

Yep.

-- 
New president: Here we go again...
Chemistry.com: A total rip-off.
Powers are not rights.





More information about the Ktechlab-devel mailing list