[petsc-users] [petsc-maint #107932] run a simple example ex19 in src/snes/examples/tutorials

Jed Brown jedbrown at mcs.anl.gov
Tue Mar 13 09:14:12 CDT 2012


2012/3/13 Xiangze Zeng <zengshixiangze at 163.com>

> At the beginning and end of  the codes for setting the matrices values, I
> add "printf", and compute the time of this period. It is much longer than
> that when I don't use the GPU. I just guess the time is used for copping
> data. My PCTYPE is sor. And 2000 iterations.  Do you have any suggestion
> about this?


I suspect you have lost preallocation information when the matrix type was
changed. Make sure you set preallocation after setting the matrix type.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120313/8805a235/attachment.htm>


More information about the petsc-users mailing list