Re: [petsc-users] Question on DMPlexCreateSection for Fortran

2018-02-22 Thread Matthew Knepley
On Thu, Feb 22, 2018 at 6:10 PM, Danyang Su wrote: > Hi Matt, > > Just to let you know that after updating to PETSc 3.8.3 version, the > DMPlexCreateSection in my code now works. > > One more question, what is the PETSC_NULL_XXX for IS pointer, as shown > below, in C code,

Re: [petsc-users] Question on DMPlexCreateSection for Fortran

2018-02-22 Thread Danyang Su
Hi Matt, Just to let you know that after updating to PETSc 3.8.3 version, the DMPlexCreateSection in my code now works. One more question, what is the PETSC_NULL_XXX for IS pointer, as shown below, in C code, it just pass NULL, but in fortran, what is the name of null object for pBcCompIS

Re: [petsc-users] Question on DMPlexCreateSection for Fortran

2018-02-21 Thread Danyang Su
Hi Matt, To test the Segmentation Violation problem in my code, I modified the example ex1f90.F to reproduce the problem I have in my own code. If use DMPlexCreateBoxMesh to generate the mesh, the code works fine. However, if I use DMPlexCreateGmshFromFile, using the same mesh exported from

Re: [petsc-users] Question on DMPlexCreateSection for Fortran

2018-02-20 Thread Danyang Su
On 18-02-20 09:52 AM, Matthew Knepley wrote: On Tue, Feb 20, 2018 at 12:30 PM, Danyang Su > wrote: Hi All, I tried to compile the DMPlexCreateSection code but got error information as shown below. Error: Symbol

Re: [petsc-users] Question on DMPlexCreateSection for Fortran

2018-02-20 Thread Matthew Knepley
On Tue, Feb 20, 2018 at 12:30 PM, Danyang Su wrote: > Hi All, > > I tried to compile the DMPlexCreateSection code but got error information > as shown below. > > Error: Symbol 'petsc_null_is' at (1) has no IMPLICIT type > > I tried to use PETSC_NULL_OBJECT instead of

[petsc-users] Question on DMPlexCreateSection for Fortran

2018-02-20 Thread Danyang Su
Hi All, I tried to compile the DMPlexCreateSection code but got error information as shown below. Error: Symbol 'petsc_null_is' at (1) has no IMPLICIT type I tried to use PETSC_NULL_OBJECT instead of PETSC_NULL_IS, then the code can be compiled but run into Segmentation Violation error in