Re: [petsc-users] A question about DMPlexDistribute

2016-08-16 Thread Julian Andrej
The maint branch is a more or less "stable" branch. Features go into "master" at first then get merged into "maint". So git clone -b master https://bitbucket.org/petsc/petsc petsc will always be the most recent code you can possibly obtain. On Wed, Aug 17, 2016 at 3:48 AM, leejearl

Re: [petsc-users] A question about DMPlexDistribute

2016-08-16 Thread leejearl
Thank you for your help. The problem has been overcome following your advices. Now, I give some notes for this problem which might be useful for others. 1. Up to now, we must use the code in the master branch. The source code can be downloaded using git with: git clone

Re: [petsc-users] A question about DMPlexDistribute

2016-08-16 Thread Matthew Knepley
On Mon, Aug 15, 2016 at 9:28 PM, leejearl wrote: > Thank you for all your helps. I have tried and reinstalled PETSc lots of > times. The error are still existed. > > I can not find out the reasons. Now, I give the some messages in this > letter. > > 1> The source code is

Re: [petsc-users] A question about DMPlexDistribute

2016-08-12 Thread leejearl
Thank you for your reply. The source code I have used is from the website of PETSc, not from the git repository. I will have a test with the code from git repository. leejearl On 2016年08月13日 08:49, Oxberry, Geoffrey Malcolm wrote: On Aug 12, 2016, at 5:41 PM, leejearl

Re: [petsc-users] A question about DMPlexDistribute

2016-08-12 Thread Oxberry, Geoffrey Malcolm
On Aug 12, 2016, at 5:41 PM, leejearl > wrote: Hi, Matt: > Can you verify that you are running the master branch? cd ${PETSC_DIR} git branch The last command should return something like a list of branch names, and the branch name with an

Re: [petsc-users] A question about DMPlexDistribute

2016-08-12 Thread leejearl
Hi, Matt: > Can you verify that you are running the master branch? I am not sure, how can I verify this? And I configure PETSc with this command "./configure --prefix=$HOME/Install/petsc-openmpi --with-mpi=/home/leejearl/Install/openmpi/gnu/1.8.4 --download-exodusii=yes --download-netcdf

Re: [petsc-users] A question about DMPlexDistribute

2016-08-12 Thread Matthew Knepley
On Thu, Aug 11, 2016 at 8:00 PM, leejearl wrote: > Thank you for your reply. I have attached the code, grid and the error > message. > > cavity.c is the code file, cavity.exo is the grid, and error.dat is the > error message. > > The command is "mpirun -n 2 ./cavity > Can you

Re: [petsc-users] A question about DMPlexDistribute

2016-08-11 Thread leejearl
Hi, Thank you for your reply. It help me very much. But, for "/petsc-3.7.2/src/ts/examples/tutorials/ex11.c", when I set the overlap to 2 levels, the command is "mpirun -n 3 ./ex11 -f annulus-20.exo -ufv_mesh_overlap 2 -physics sw", it suffers a error. It seems to me that setting

Re: [petsc-users] A question about DMPlexDistribute

2016-08-11 Thread Julian Andrej
Hi, take a look at slide 10 of [1], there is visually explained what the overlap between partitions is. [1] https://www.archer.ac.uk/training/virtual/files/2015/06-PETSc/slides.pdf On Thu, Aug 11, 2016 at 8:48 AM, leejearl wrote: > Hi, all: > I want to use PETSc to build

[petsc-users] A question about DMPlexDistribute

2016-08-11 Thread leejearl
Hi, all: I want to use PETSc to build my FVM code. Now, I have a question about the function DMPlexDistribute(DM dm, PetscInt overlap, PetscSF *sf, DM *dmOverlap) . In the example "/petsc-3.7.2/src/ts/examples/tutorials/ex11.c". When I set the overlap as 0 or 1, it works well. But,