PETSc Vector set deprecated

39 views
Skip to first unread message

Zachary 42!

unread,
Mar 28, 2021, 1:39:58 PM3/28/21
to dea...@googlegroups.com
Hello,

I am building PETSc vectors with the set operation and I see it’s deprecated. The documentation suggests to use “import( )” but I don’t see how to use it.

How can I use import( ) as a replacement for set( ) as the documentation suggests? Please provide an example.

Thank you,

Zachary

Wolfgang Bangerth

unread,
Mar 29, 2021, 12:25:23 AM3/29/21
to dea...@googlegroups.com

> I am building PETSc vectors with the set operation and I see it’s deprecated. The documentation suggests to use “import( )” but I don’t see how to use it.
>
> How can I use import( ) as a replacement for set( ) as the documentation suggests? Please provide an example.

I don't know the answer, but maybe David Wells does given that the deprecation
was added in
https://github.com/dealii/dealii/pull/10398

For sure, you could simply write into the vector elements one by one. That
doesn't require 'import()' at all.

Best
W.


--
------------------------------------------------------------------------
Wolfgang Bangerth email: bang...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/

Wells, David

unread,
Mar 31, 2021, 10:00:24 PM3/31/21
to dea...@googlegroups.com
Hi everyone,

Oh my - I never got around to finishing this - we need to actually implement the function otherwise there is no sense in deprecating this. I'll open an issue and get it done before the release.

Best,
David Wells

From: dea...@googlegroups.com <dea...@googlegroups.com> on behalf of Wolfgang Bangerth <bang...@colostate.edu>
Sent: Monday, March 29, 2021 12:25 AM
To: dea...@googlegroups.com <dea...@googlegroups.com>
Subject: Re: [deal.II] PETSc Vector set deprecated
 
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dealii+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/547b180f-8666-a20d-1922-d95b7425f237%40colostate.edu.
Reply all
Reply to author
Forward
0 new messages