[petsc-users] Question on output vector in vtk file

2023-12-11 Thread Gong Yujie
Dear PETSc developers, I have a DMPlex DM with 1 field 1dof. I'd like to output a vector with block size equals to 3. It seems that there is no response using command line option or using some code about PetscViewer. The DM is generated with (note that I'm not using PetscFE for discretization,

Re: [petsc-users] Bug report VecNorm

2023-12-11 Thread Matthew Knepley
We already merged the fix. Thanks, Matt On Mon, Dec 11, 2023 at 6:00 AM Barry Smith wrote: > >I don't fully understand your code and what it is trying to > demonstrate, but VecGetArrayWrite is Logically Collective. Having > > if(rank == 0) > { > PetscCall(VecGetArrayWrite(vec

Re: [petsc-users] Question on output vector in vtk file

2023-12-11 Thread Matthew Knepley
On Mon, Dec 11, 2023 at 4:32 AM Gong Yujie wrote: > Dear PETSc developers, > > I have a DMPlex DM with 1 field 1dof. I'd like to output a vector with > block size equals to 3. It seems that there is no response using command > line option or using some code about PetscViewer. > I am not sure how

[petsc-users] (no subject)

2023-12-11 Thread 1807580692
Hello, I have encountered some problems. Here are some of my configurations. OS Version and Type:  Linux daihuanhe-Aspire-A315-55G 5.15.0-89-generic #99~20.04.1-Ubuntu SMP Thu Nov 2 15:16:47 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux PETSc Version: #define PETSC_VERSION_RELEASE    1

Re: [petsc-users] (no subject)

2023-12-11 Thread Barry Smith
The snes options are not relevant since the parts of a PCFIELDSPLIT are always linear problems. By default PCFIELDSPLIT uses a KSP type of preonly on each split (that is it applies the preconditioner exactly once inside the PCApply_FieldSplit() hence the -fieldsplit_*_ksp_ options are n