Dear Sir/Madam,
My name is Guangpu Zhu, I met a problem when I tested the matrix
operation in petsc4py. As the following code shows, I first set all elements
of the matrix to 2.0. Then, I try to set the diagonal elements of the matrix to
1.0. However, I surprisingly found that the diagonal elements are still 2.0.
This question has confused me for a few days, so I am writing to you for help
or suggestions. Attached is the test code I used. I would greatly appreciate it
if you can kindly reply to me. Thank you in ad[cid:8c058bba-e6bb-4dc5-ad0a-596e3150b21d] --- Guangpu Zhu Research Associate, Department of Mechanical Engineering National University of Singapore Personal E-mail: [email protected] Phone: (+65) 87581879
Petsc_Test.tar.gz
Description: Petsc_Test.tar.gz
