Hi. Indeed creating a vec like in DMCreateInterpolationScale does the job.
Thank you!
Matteo & Samuele
On 10/12/2024 17:27, Barry Smith wrote:
Beats me :-) Just set it to whatever the DMDA sets it too
Barry
On Dec 10, 2024, at 11:20 AM, Matteo Semplice
wrote:
Thanks, Barry.
Just
Beats me :-) Just set it to whatever the DMDA sets it too
Barry
> On Dec 10, 2024, at 11:20 AM, Matteo Semplice
> wrote:
>
> Thanks, Barry.
>
> Just to be sure, one should refer to the help of
> https://urldefense.us/v3/__https://petsc.org/release/manualpages/DM/DMCreateInterpolation
Thanks, Barry.
Just to be sure, one should refer to the help of
https://urldefense.us/v3/__https://petsc.org/release/manualpages/DM/DMCreateInterpolationScale/__;!!G_uCfscf7eWS!c1PFRpf9jqVzaF3p98Od2T92U1LOgy4Q3oqZCcYrv2QsIO885A3iP7Lo3XpDveKwS7CMeHxzVseroufdL1mP8nbei0E_jEnpPsLtNQ$ and
the vec s
It appears you are completely ignoring the vec argument? Take a look at, for
example, DMCreateInterpolation_DA() you will see you need to provide an
appropriate vec in the same way you need (and do) provide an appropriate mat.
Barry
> On Dec 10, 2024, at 7:02 AM, Matteo Semplice via pet
On Tue, Dec 10, 2024 at 7:03 AM Matteo Semplice via petsc-users <
petsc-users@mcs.anl.gov> wrote:
> Dear petsc-users,
>
> I am trying with a student to modify the MG example 65 to use
> mat-shells instead of assembled matrices. Our use case is for a method that
> will use custom shell operator