<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:DengXian;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@DengXian";
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Menlo;
panose-1:2 11 6 9 3 8 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
p.p1, li.p1, div.p1
{mso-style-name:p1;
margin:0in;
margin-bottom:.0001pt;
background:white;
font-size:8.5pt;
font-family:Menlo;
color:black;}
span.s1
{mso-style-name:s1;}
span.apple-converted-space
{mso-style-name:apple-converted-space;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Dear Petsc users:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">I am trying to use Petsc APIs for Fortran. One problem that I am facing right now is about the PetscPartitioner, i.e.,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">#include “petsc/finclude/petsc.h”<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> use petscdmplex<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> PetscPartitioner :: part<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> PetscErrorCode :: ierr<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> Call PetscPartitionerCreate(PETSC_COMM_WORLD, part, ierr)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">But, I got the error message as follows:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="p1"><span class="s1">[0]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------</span><o:p></o:p></p>
<p class="p1"><span class="s1">[0]PETSC ERROR: Null argument, when expecting valid pointer</span><o:p></o:p></p>
<p class="p1"><span class="s1">[0]PETSC ERROR: Null Pointer: Parameter # 2</span><o:p></o:p></p>
<p class="p1"><span class="s1">[0]PETSC ERROR: See http://www.mcs.anl.gov/petsc/documentation/faq.html for trouble shooting.</span><o:p></o:p></p>
<p class="p1"><span class="s1">[0]PETSC ERROR: Petsc Release Version 3.10.2, unknown</span><span class="apple-converted-space"> </span><o:p></o:p></p>
<p class="p1"><span class="s1">[0]PETSC ERROR: ./htm3d on a arch-linux2-c-opt named fn607018 by LIJ Wed Nov 21 16:30:35 2018</span><o:p></o:p></p>
<p class="p1"><span class="s1">[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</span><o:p></o:p></p>
<p class="p1"><span class="s1">[0]PETSC ERROR: #1 PetscPartitionerCreate() line 601 in /home/lij/packages/petsc/src/dm/impls/plex/plexpartition.c</span><o:p></o:p></p>
<p class="p1"><span class="s1">[1]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------</span><o:p></o:p></p>
<p class="p1"><span class="s1">[1]PETSC ERROR: Null argument, when expecting valid pointer</span><o:p></o:p></p>
<p class="p1"><span class="s1">[1]PETSC ERROR: Null Pointer: Parameter # 2</span><o:p></o:p></p>
<p class="p1"><span class="s1">[1]PETSC ERROR: See http://www.mcs.anl.gov/petsc/documentation/faq.html for trouble shooting.</span><o:p></o:p></p>
<p class="p1"><span class="s1">[1]PETSC ERROR: Petsc Release Version 3.10.2, unknown</span><span class="apple-converted-space"> </span><o:p></o:p></p>
<p class="p1"><span class="s1">[1]PETSC ERROR: ./htm3d on a arch-linux2-c-opt named fn607018 by LIJ Wed Nov 21 16:30:35 2018</span><o:p></o:p></p>
<p class="p1"><span class="s1">[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</span><o:p></o:p></p>
<p class="p1"><span class="s1">[1]PETSC ERROR: #1 PetscPartitionerCreate() line 601 in /home/lij/packages/petsc/src/dm/impls/plex/plexpartition.c</span><o:p></o:p></p>
<p class="p1"><span class="s1">[2]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------</span><o:p></o:p></p>
<p class="p1"><span class="s1">[2]PETSC ERROR: Null argument, when expecting valid pointer</span><o:p></o:p></p>
<p class="p1"><span class="s1">[2]PETSC ERROR: Null Pointer: Parameter # 2</span><o:p></o:p></p>
<p class="p1"><span class="s1">[2]PETSC ERROR: See http://www.mcs.anl.gov/petsc/documentation/faq.html for trouble shooting.</span><o:p></o:p></p>
<p class="p1"><span class="s1">[2]PETSC ERROR: Petsc Release Version 3.10.2, unknown</span><span class="apple-converted-space"> </span><o:p></o:p></p>
<p class="p1"><span class="s1">[2]PETSC ERROR: ./htm3d on a arch-linux2-c-opt named fn607018 by LIJ Wed Nov 21 16:30:35 2018</span><o:p></o:p></p>
<p class="p1"><span class="s1">[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</span><o:p></o:p></p>
<p class="p1"><span class="s1">[2]PETSC ERROR: #1 PetscPartitionerCreate() line 601 in /home/lij/packages/petsc/src/dm/impls/plex/plexpartition.c</span><o:p></o:p></p>
<p class="p1"><span class="s1">[3]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------</span><o:p></o:p></p>
<p class="p1"><span class="s1">[3]PETSC ERROR: Null argument, when expecting valid pointer</span><o:p></o:p></p>
<p class="p1"><span class="s1">[3]PETSC ERROR: Null Pointer: Parameter # 2</span><o:p></o:p></p>
<p class="p1"><span class="s1">[3]PETSC ERROR: See http://www.mcs.anl.gov/petsc/documentation/faq.html for trouble shooting.</span><o:p></o:p></p>
<p class="p1"><span class="s1">[3]PETSC ERROR: Petsc Release Version 3.10.2, unknown</span><span class="apple-converted-space"> </span><o:p></o:p></p>
<p class="p1"><span class="s1">[3]PETSC ERROR: ./htm3d on a arch-linux2-c-opt named fn607018 by LIJ Wed Nov 21 16:30:35 2018</span><o:p></o:p></p>
<p class="p1"><span class="s1">[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</span><o:p></o:p></p>
<p class="p1"><span class="s1">[3]PETSC ERROR: #1 PetscPartitionerCreate() line 601 in /home/lij/packages/petsc/src/dm/impls/plex/plexpartition.c</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Is there anyone who may encounter similar problem before? Any suggestions or commends are highly appreciated. Thank you very much.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Best,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Jiaoyan<o:p></o:p></span></p>
</div>
</body>
</html>