[petsc-dev] Potential BUG for petsc4py

Ji Zhang gotofd at gmail.com
Wed Nov 9 19:34:24 CST 2016


OK, based on your information, I think I have made some misunderstanding.
Thanks.

此致
    敬礼
张骥(博士研究生)
北京计算科学研究中心
北京市海淀区西北旺东路10号院东区9号楼 (100193)

Best,
Regards,
Zhang Ji, PhD student
Beijing Computational Science Research Center
Zhongguancun Software Park II, No. 10 Dongbeiwang West Road, Haidian
District, Beijing 100193, China

On Tue, Nov 8, 2016 at 9:55 PM, Lisandro Dalcin <dalcinl at gmail.com> wrote:

>
> On 8 November 2016 at 11:19, Ji Zhang <gotofd at gmail.com> wrote:
>
>> More, let mat2=mat1, after do mat1.destroy(), mat2 is unacceptable
>> whether memory is released or not.
>
>
> Not sure what do you mean by "unacceptable", but mat2=mat1 makes mat2 be
> an alias to mat1, this is how Python works. As Matt said, maybe you want
> mat2=mat1.duplicate().
>
>
> --
> Lisandro Dalcin
> ============
> Research Scientist
> Computer, Electrical and Mathematical Sciences & Engineering (CEMSE)
> Extreme Computing Research Center (ECRC)
> King Abdullah University of Science and Technology (KAUST)
> http://ecrc.kaust.edu.sa/
>
> 4700 King Abdullah University of Science and Technology
> al-Khawarizmi Bldg (Bldg 1), Office # 0109
> Thuwal 23955-6900, Kingdom of Saudi Arabia
> http://www.kaust.edu.sa
>
> Office Phone: +966 12 808-0459
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20161110/9c23963c/attachment.html>


More information about the petsc-dev mailing list