Hi Barry and Matt,
Would you please give me some advice on the functions I need to use to
set different dof to the specified nodes. For now, I use
DMPlexCreateSection that dof is uniform throughout the domain. I am a
bit lost in choosing the right DMPlex functions, unfortunately.
Thanks and
-Original Message-
From: Daniel Mckinnell
To: knepley
Sent: Thu, 15 Aug 2019 17:05
Subject: Re: [petsc-users] Accessing Global Vector Data with
Thank you, it seemed to work nicely for the fields associated with cells but
I'm having problems with the field on vertices. The code fo
Hi,Attached is a way I came up with to access data in a global vector, is this
the best way to do this or are there other ways? It would seem intuitive to use
the global PetscSection and VecGetValuesSection but this doesn't seem to work
on global vectors.
Instead I have used VecGetValues and Vec
> On Aug 15, 2019, at 12:36 AM, Tang, Qi wrote:
>
> Thanks, it works. snes_mf_jorge works for me.
Great.
> It appears to compute h in every ksp.
Each matrix vector product or each KSPSolve()? From the code looks like each
matrix-vector product.
>
> Without -snes_mf_jorge, it is no