From: Ondrej C. <on...@ce...> - 2007-07-08 20:06:25
|
> > Even adding a system in the first place may be a problem, because the > > System class will try to create a NumericVector for it's solution - > > it doesn't matter that you're never going to be solving with that > > vector, because the data structures for NumericVector subclasses > > depend on what solver you expect to hand them to later. I'm afraid > > the only fix may be to add a "Dummy" subclass like you suggested > > except that it's not a dummy linear solver you need, it's dummy > > NumericVector (and if you insist on creating ImplicitSystem objects, > > SparseMatrix) instantiations. Exactly, that's what I did in the debian package. I just made the laspack vector and laspack matrix a dummy vector and a dummy matrix (only I used the word laspack instead of dummy). > DistributedVector (include/numerics/distributed_vector.h) should be a > working built-in implementation of NumericVector > that we can use for the "Dummy" solver package. The LaspackVector actually derives from the NumericVector directly. But I guess any solution would be fine. Ondrej |