[petsc-users] reusing matrix created with MatCreateMPIAIJWithSplitArrays

Hassan Raiesi Hassan.Raiesi at AERO.BOMBARDIER.COM
Thu Jun 30 14:40:41 CDT 2016


Hello,

We are using PETSC in our CFD code, and  noticed that using "MatCreateMPIAIJWithSplitArrays" is almost 60% faster for large problem size (i.e DOF > 725M, using GAMG each time-step only takes 5sec, compared to 8.3 sec when assembling the matrix one row at a time using matsetvaluesblocked()  as recommended).

The problem is that the memory usage goes up after each call to MatCreateMPIAIJWithSplitArrays  to update the matrix values. As MatCreateMPIAIJWithSplitArrays is not supposed to copy the values, do we need to call it each time to update the values? We tried to just update the values of the diagonal and off-diagonal part of the arrays passed to "MatCreateMPIAIJWithSplitArrays", (the sparsity structure is fixed) but it looks like that the values are not updated, what is the proper way to update the values of the matrix created by MatCreateMPIAIJWithSplitArrays?


Thank you

Hassan Raiesi,


Advanced Aerodynamics Department

Bombardier Aerospace


hassan.raiesi at aero.bombardier.com



2351 boul. Alfred-Nobel (BAN1)

Ville Saint-Laurent, Québec, H4S 2A9






Tél.

  514-855-5001    # 62204





[cid:image001.png at 01D1D2C3.1D169550]



CONFIDENTIALITY NOTICE - This communication may contain privileged or confidential information.
If you are not the intended recipient or received this communication by error, please notify the sender
and delete the message without copying, forwarding and/or disclosing it.




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20160630/a7f6ea39/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 6402 bytes
Desc: image001.png
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20160630/a7f6ea39/attachment-0001.png>


More information about the petsc-users mailing list