[petsc-users] PetscPartitioner in Fortran

Jiaoyan Li Jiaoyan.Li at inl.gov
Thu Dec 20 15:50:58 CST 2018


Matt,

Thanks a lot for your update. I will test it out and let you know if there is any problem.

Thanks,

Jiaoyan

From: Matthew Knepley <knepley at gmail.com>
Date: Friday, December 14, 2018 at 08:57
To: Jiaoyan Li <Jiaoyan.Li at inl.gov>
Cc: Barry Smith <bsmith at mcs.anl.gov>, PETSc <petsc-users at mcs.anl.gov>
Subject: Re: [petsc-users] PetscPartitioner in Fortran

I finally fixed this:

  https://bitbucket.org/petsc/petsc/branch/knepley/fix-dmplex-fortran<https://urldefense.proofpoint.com/v2/url?u=https-3A__bitbucket.org_petsc_petsc_branch_knepley_fix-2Ddmplex-2Dfortran&d=DwMFaQ&c=54IZrppPQZKX9mLzcGdPfFD1hxrcB__aEkJFOKJFd00&r=5MMpjBrVOPpVGfIH9op1r4nz1k4YC8LDRnpo_HwMgZU&m=mVlB7MjAbzi4HzdfNibnhGRkfnfFLac246NrNtB4V8E&s=ZxNw-nlQ1eaNA2m7X41IiZMWLv62TIS094ajfqIxAdY&e=>

  Thanks,

    Matt

On Wed, Nov 21, 2018 at 9:27 PM Jiaoyan Li via petsc-users <petsc-users at mcs.anl.gov<mailto:petsc-users at mcs.anl.gov>> wrote:
Barry,

Thanks a lot for your reply. Look forward to the further information.

Jiaoyan

On 11/21/18, 19:25, "Smith, Barry F." <bsmith at mcs.anl.gov<mailto:bsmith at mcs.anl.gov>> wrote:


       Matt,

         PetscPartitioner is missing from lib/petsc/conf/bfort-petsc.txt

       Barry



    > On Nov 21, 2018, at 3:33 PM, Jiaoyan Li via petsc-users <petsc-users at mcs.anl.gov<mailto:petsc-users at mcs.anl.gov>> wrote:
    >
    > Dear Petsc users:
    >
    > I am trying to use Petsc APIs for Fortran. One problem that I am facing right now is about the PetscPartitioner, i.e.,
    >
    > #include “petsc/finclude/petsc.h”
    >   use petscdmplex
    >
    >   PetscPartitioner :: part
    >   PetscErrorCode :: ierr
    >
    >   Call PetscPartitionerCreate(PETSC_COMM_WORLD, part, ierr)
    >
    > But, I got the error message as follows:
    >
    > [0]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------
    > [0]PETSC ERROR: Null argument, when expecting valid pointer
    > [0]PETSC ERROR: Null Pointer: Parameter # 2
    > [0]PETSC ERROR: See https://urldefense.proofpoint.com/v2/url?u=http-3A__www.mcs.anl.gov_petsc_documentation_faq.html&d=DwIGaQ&c=54IZrppPQZKX9mLzcGdPfFD1hxrcB__aEkJFOKJFd00&r=5MMpjBrVOPpVGfIH9op1r4nz1k4YC8LDRnpo_HwMgZU&m=1lomdbavAvxQQpe-IZtEv3xEovYeZ9lxbOzN-sE8CUQ&s=BYCTTDqEflIdLwRAkF4txknqLg0jeyOcdodQkfHj-TA&e= for trouble shooting.
    > [0]PETSC ERROR: Petsc Release Version 3.10.2, unknown
    > [0]PETSC ERROR: ./htm3d on a arch-linux2-c-opt named fn607018 by LIJ Wed Nov 21 16:30:35 2018
    > [0]PETSC ERROR: Configure options --download-fblaslapack --with-mpi-dir=/opt/mpitch-3.2.1 -download-exodusii --download-hdf5 --download-netcdf --download-zlib --download-pnetcdf
    > [0]PETSC ERROR: #1 PetscPartitionerCreate() line 601 in /home/lij/packages/petsc/src/dm/impls/plex/plexpartition.c
    > [1]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------
    > [1]PETSC ERROR: Null argument, when expecting valid pointer
    > [1]PETSC ERROR: Null Pointer: Parameter # 2
    > [1]PETSC ERROR: See https://urldefense.proofpoint.com/v2/url?u=http-3A__www.mcs.anl.gov_petsc_documentation_faq.html&d=DwIGaQ&c=54IZrppPQZKX9mLzcGdPfFD1hxrcB__aEkJFOKJFd00&r=5MMpjBrVOPpVGfIH9op1r4nz1k4YC8LDRnpo_HwMgZU&m=1lomdbavAvxQQpe-IZtEv3xEovYeZ9lxbOzN-sE8CUQ&s=BYCTTDqEflIdLwRAkF4txknqLg0jeyOcdodQkfHj-TA&e= for trouble shooting.
    > [1]PETSC ERROR: Petsc Release Version 3.10.2, unknown
    > [1]PETSC ERROR: ./htm3d on a arch-linux2-c-opt named fn607018 by LIJ Wed Nov 21 16:30:35 2018
    > [1]PETSC ERROR: Configure options --download-fblaslapack --with-mpi-dir=/opt/mpitch-3.2.1 -download-exodusii --download-hdf5 --download-netcdf --download-zlib --download-pnetcdf
    > [1]PETSC ERROR: #1 PetscPartitionerCreate() line 601 in /home/lij/packages/petsc/src/dm/impls/plex/plexpartition.c
    > [2]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------
    > [2]PETSC ERROR: Null argument, when expecting valid pointer
    > [2]PETSC ERROR: Null Pointer: Parameter # 2
    > [2]PETSC ERROR: See https://urldefense.proofpoint.com/v2/url?u=http-3A__www.mcs.anl.gov_petsc_documentation_faq.html&d=DwIGaQ&c=54IZrppPQZKX9mLzcGdPfFD1hxrcB__aEkJFOKJFd00&r=5MMpjBrVOPpVGfIH9op1r4nz1k4YC8LDRnpo_HwMgZU&m=1lomdbavAvxQQpe-IZtEv3xEovYeZ9lxbOzN-sE8CUQ&s=BYCTTDqEflIdLwRAkF4txknqLg0jeyOcdodQkfHj-TA&e= for trouble shooting.
    > [2]PETSC ERROR: Petsc Release Version 3.10.2, unknown
    > [2]PETSC ERROR: ./htm3d on a arch-linux2-c-opt named fn607018 by LIJ Wed Nov 21 16:30:35 2018
    > [2]PETSC ERROR: Configure options --download-fblaslapack --with-mpi-dir=/opt/mpitch-3.2.1 -download-exodusii --download-hdf5 --download-netcdf --download-zlib --download-pnetcdf
    > [2]PETSC ERROR: #1 PetscPartitionerCreate() line 601 in /home/lij/packages/petsc/src/dm/impls/plex/plexpartition.c
    > [3]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------
    > [3]PETSC ERROR: Null argument, when expecting valid pointer
    > [3]PETSC ERROR: Null Pointer: Parameter # 2
    > [3]PETSC ERROR: See https://urldefense.proofpoint.com/v2/url?u=http-3A__www.mcs.anl.gov_petsc_documentation_faq.html&d=DwIGaQ&c=54IZrppPQZKX9mLzcGdPfFD1hxrcB__aEkJFOKJFd00&r=5MMpjBrVOPpVGfIH9op1r4nz1k4YC8LDRnpo_HwMgZU&m=1lomdbavAvxQQpe-IZtEv3xEovYeZ9lxbOzN-sE8CUQ&s=BYCTTDqEflIdLwRAkF4txknqLg0jeyOcdodQkfHj-TA&e= for trouble shooting.
    > [3]PETSC ERROR: Petsc Release Version 3.10.2, unknown
    > [3]PETSC ERROR: ./htm3d on a arch-linux2-c-opt named fn607018 by LIJ Wed Nov 21 16:30:35 2018
    > [3]PETSC ERROR: Configure options --download-fblaslapack --with-mpi-dir=/opt/mpitch-3.2.1 -download-exodusii --download-hdf5 --download-netcdf --download-zlib --download-pnetcdf
    > [3]PETSC ERROR: #1 PetscPartitionerCreate() line 601 in /home/lij/packages/petsc/src/dm/impls/plex/plexpartition.c
    >
    > Is there anyone who may encounter similar problem before? Any suggestions or commends are highly appreciated. Thank you very much.
    >
    > Best,
    >
    > Jiaoyan




--
What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.
-- Norbert Wiener

https://www.cse.buffalo.edu/~knepley/<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.cse.buffalo.edu_-7Eknepley_&d=DwMFaQ&c=54IZrppPQZKX9mLzcGdPfFD1hxrcB__aEkJFOKJFd00&r=5MMpjBrVOPpVGfIH9op1r4nz1k4YC8LDRnpo_HwMgZU&m=mVlB7MjAbzi4HzdfNibnhGRkfnfFLac246NrNtB4V8E&s=vn0wryWiz5mxgkUYzHqHIMFxTVu8mw6ojUQGsagXIUM&e=>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20181220/3f308b63/attachment-0001.html>


More information about the petsc-users mailing list