Re: [petsc-users] Accessing Global Vector Data with

2019-08-19 Thread Daniel Mckinnell via petsc-users
wrong.Thanks for all of the help.Daniel -Original Message- From: Matthew Knepley via petsc-users To: Daniel Mckinnell CC: PETSc Sent: Thu, 15 Aug 2019 16:11 Subject: Re: [petsc-users] Accessing Global Vector Data with On Thu, Aug 15, 2019 at 10:59 AM Daniel Mckinnell via petsc-users wr

[petsc-users] Fwd: Accessing Global Vector Data with

2019-08-19 Thread Daniel Mckinnell via petsc-users
--Original Message- From: Matthew Knepley via petsc-users To: Daniel Mckinnell CC: PETSc Sent: Thu, 15 Aug 2019 16:11 Subject: Re: [petsc-users] Accessing Global Vector Data with On Thu, Aug 15, 2019 at 10:59 AM Daniel Mckinnell via petsc-users wrote: Hi,Attached is a way I came up with to

[petsc-users] Fwd: Accessing Global Vector Data with

2019-08-15 Thread Daniel Mckinnell via petsc-users
Knepley via petsc-users To: Daniel Mckinnell CC: PETSc Sent: Thu, 15 Aug 2019 16:11 Subject: Re: [petsc-users] Accessing Global Vector Data with On Thu, Aug 15, 2019 at 10:59 AM Daniel Mckinnell via petsc-users wrote: Hi,Attached is a way I came up with to access data in a global vector, is

[petsc-users] Accessing Global Vector Data with

2019-08-15 Thread Daniel Mckinnell via petsc-users
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

[petsc-users] Questions about Field Data using DMPlex

2019-08-08 Thread Daniel Mckinnell via petsc-users
Hi,I have a DMPlex mesh stored in a dm object with an associated PetscSection containing the information on the layout of field0 and field1, I can create a local Vec with the layout from the PetscSection and edit that data. I have a couple of questions about what I can do from this point: 1. Is

Re: [petsc-users] Refine DMPlex with a Refinement Function

2019-08-02 Thread Daniel Mckinnell via petsc-users
-users Sent: Thu, 1 Aug 2019 17:36 Subject: Re: [petsc-users] Refine DMPlex with a Refinement Function On Thu, 1 Aug 2019 at 16:59, Daniel Mckinnell via petsc-users wrote: Hi, I have been having some trouble trying to refine a DMPlex object using a Refinement Function. I have been working with

[petsc-users] Refine DMPlex with a Refinement Function

2019-08-01 Thread Daniel Mckinnell via petsc-users
Hi, I have been having some trouble trying to refine a DMPlex object using a Refinement Function. I have been working with reference to the code discussed here: https://lists.mcs.anl.gov/mailman/htdig/petsc-users/2019-April/038341.html including the code from the GitHub directory mentioned. Th

[petsc-users] Altering Vertex Coordinates of an Unstructured Mesh

2019-07-02 Thread Daniel Mckinnell via petsc-users
Hello,I am a student currently doing a summer project so am fairly new to Petsc. I am trying to alter vertex coordinates of an unstructured mesh to look at mesh movement in DMPlex after they have been created by DMPlexCreateBoxMesh. I have been altering the first example on the DMPlex documenta