[petsc-users] Integrate command line arguments -bv_type vecs -bv_type mat to python code
Jan Grießer
griesser.jan at googlemail.com
Wed Apr 3 06:05:21 CDT 2019
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/20190403/9dd4a61a/attachment-0001.html>
More information about the petsc-users
mailing list