[petsc-users] Use kspsolve repeatly

丁老师 ztdepyahoo at 163.com
Wed Jul 31 23:58:19 CDT 2013


I need to use the kspsolve(A,b,x) repeatly in my code in the following style.
but i have noticed from the system load monitor that during the code running, it allocate new memeory every step.


I use the default setting for the PC. 
Could you please told me how to resolve this problem.






for (int i=0;i<maxit;i++)
{
MatsetValues(    )....
kspsolve(A,b,x)
}












-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130801/2ce5fc58/attachment.html>


More information about the petsc-users mailing list