Re: [petsc-users] Generating xdmf from h5 file.

2014-10-08 Thread Matthew Knepley
On Tue, Oct 7, 2014 at 10:09 PM, Justin Chang jychan...@gmail.com wrote: Hi Matt, Bumping this thread. I have a similar question. The lines you wrote for testnum 39 have also worked perfectly for me. However, when I change a couple parameters, namely not interpolating the mesh and using

[petsc-users] PCMG behaviour on various levels

2014-10-08 Thread Filippo Leonardi
Hi, Quick PCMG question. Default behaviour of PCMG (I'm using 3D DMDAs) is to use all processes for every level and redundantly solve the coarse level locally (to my knowledge). However, if I want to keep the level numbers to be log_c N for (c=2^d, d=dimension, N = dof of finest mesh) so that

Re: [petsc-users] PCMG behaviour on various levels

2014-10-08 Thread Jed Brown
Filippo Leonardi filippo.leona...@sam.math.ethz.ch writes: Hi, Quick PCMG question. Default behaviour of PCMG (I'm using 3D DMDAs) is to use all processes for every level and redundantly solve the coarse level locally (to my knowledge). However, if I want to keep the level numbers to be

[petsc-users] When is the TSMonitor called?

2014-10-08 Thread Miguel Angel Salazar de Troya
Hi all I want to save a certain quantity at the very beginning of each time step, before any TSFunction of any kind is called. Can I do this within the TSMonitor? It would also be ok to save that quantity at the very end of the time step. Thanks Miguel -- *Miguel Angel Salazar de Troya*

Re: [petsc-users] When is the TSMonitor called?

2014-10-08 Thread Jed Brown
Miguel Angel Salazar de Troya salazardetr...@gmail.com writes: Hi all I want to save a certain quantity at the very beginning of each time step, before any TSFunction of any kind is called. Can I do this within the TSMonitor? It would also be ok to save that quantity at the very end of the

[petsc-users] 3D multi-dof DMDA and Poisson equation

2014-10-08 Thread Håkon Strandenes
Hi, I am making a new, simple incompressible CFD code. I have created a grid as a 3D DMDA, with ndof=4, one dof for each velocity component (u,v,w) and one for the pressure (p). Currently I am creating a forward Euler step, where the velocities are updated based on the velocities and

Re: [petsc-users] 3D multi-dof DMDA and Poisson equation

2014-10-08 Thread Matthew Knepley
On Wed, Oct 8, 2014 at 3:00 PM, Håkon Strandenes haa...@hakostra.net wrote: Hi, I am making a new, simple incompressible CFD code. I have created a grid as a 3D DMDA, with ndof=4, one dof for each velocity component (u,v,w) and one for the pressure (p). Currently I am creating a forward

Re: [petsc-users] 3D multi-dof DMDA and Poisson equation

2014-10-08 Thread Jed Brown
Håkon Strandenes haa...@hakostra.net writes: Hi, I am making a new, simple incompressible CFD code. I have created a grid as a 3D DMDA, with ndof=4, one dof for each velocity component (u,v,w) and one for the pressure (p). Currently I am creating a forward Euler step, where the