[petsc-users] Integrate command line arguments -bv_type vecs -bv_type mat to python code
Jan Grießer
griesser.jan at googlemail.com
Thu Apr 4 05:23:12 CDT 2019
It works. Thank you very much!!
Am Mi., 3. Apr. 2019 um 13:12 Uhr schrieb Jose E. Roman <jroman at dsic.upv.es
>:
> You could just do
>
> E.getBV().setType(SLEPc.BV.Type.VECS)
>
> before E.setFromOptions()
>
> Jose
>
>
> > El 3 abr 2019, a las 13:05, Jan Grießer via petsc-users <
> petsc-users at mcs.anl.gov> escribió:
> >
> > Hello, everybody,
> > I use Splec4py to solve the lowest eigenvalues and corresponding
> eigenvectors of systems up to 20 Mio x 20 Mio. My problem so far was that
> the base was too big. On advice here in the forum I always added -bv_type
> vecs -bv_type mat to the command line, what solved my problems. I don't
> always want to execute these two commands on the command line, but I want
> to define them directly in the python code before E.solve() is called.
> However, I'm not quite sure how to call these functions correctly in
> Python.
> > Currently I do it like this
> > bv = SLEPc.BV().create()
> > bv.setType(VECS),
> > bv.setType(Mat), E.setBV(bv)
> >
> > Could you tell me if that's correct?
> > Thank you very much in advance!
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20190404/a2e8b2ca/attachment.html>
More information about the petsc-users
mailing list