<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Thanks Mark. <br>
<br>
Very helpful and explains why my other PETSC_NULL_INTEGER uses are
still functioning<br>
and why in some places I have PETSC_NULL_INTEGER(1). I guess I can
replace the latter with PETSC_DEFAULT_INTEGER for a cleaner look.<br>
<pre class="moz-signature" cols="72">
</pre>
<div class="moz-cite-prefix">On 6/4/20 3:58 PM, Mark Adams wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CADOhEh66cxYXsLBEWE0M9zVD_BH9VARNFCPSeCc4x6mhkyvuRA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr"><br>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Thu, Jun 4, 2020 at 6:41
PM Sanjay Govindjee <<a href="mailto:s_g@berkeley.edu"
moz-do-not-send="true">s_g@berkeley.edu</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">thanks, that did it. now
I am wondering about all the other <br>
PETSC_NULL_INTEGER instances in<br>
my code. how should I be thinking about PETSC_NULL_INTEGER
</blockquote>
<div><br>
</div>
<div>I would think it's an integer array/pointer in C.</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">and <br>
PETSC_DEFAULT_INTEGER,<br>
</blockquote>
<div><br>
</div>
<div>and an integer in C.</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
so that I know that I am using the correct one?<br>
<br>
On 6/4/20 3:16 PM, Satish Balay wrote:<br>
> On Thu, 4 Jun 2020, Sanjay Govindjee wrote:<br>
><br>
>> I'm moving from 3.10 to 3.13 and ran into a
compilation problem with<br>
>> MatSeqBAIJSetPreallocation( ).<br>
>> The manual page shows:<br>
>><br>
>> PetscErrorCode<br>
>> <<a
href="https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode</a>><br>
>> MatSeqBAIJSetPreallocation<br>
>> <<a
href="https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/MatSeqBAIJSetPreallocation.html#MatSeqBAIJSetPreallocation"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/MatSeqBAIJSetPreallocation.html#MatSeqBAIJSetPreallocation</a>>(Mat<br>
>> <<a
href="https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/Mat.html#Mat"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/Mat.html#Mat</a>><br>
>> B,PetscInt<br>
>> <<a
href="https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscInt.html#PetscInt"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscInt.html#PetscInt</a>><br>
>> bs,PetscInt<br>
>> <<a
href="https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscInt.html#PetscInt"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscInt.html#PetscInt</a>><br>
>> nz,const PetscInt<br>
>> <<a
href="https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscInt.html#PetscInt"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscInt.html#PetscInt</a>><br>
>> nnz[])<br>
>><br>
>><br>
>> Which I think is the way it was before but my code
is now tossing a compile<br>
>> error<br>
>><br>
>><br>
>> 65 | & PETSC_NULL_INTEGER,mr(np(246)),<br>
>> | 1<br>
>> Error: Rank mismatch in argument 'c' at (1) (scalar
and rank-1)<br>
>><br>
>><br>
>> The full line looks like:<br>
>> call MatSeqBAIJSetPreallocation(Mmat,nsbk,<br>
>> & PETSC_NULL_INTEGER,mr(np(246)),<br>
> I think this should be PETSC_DEFAULT_INTEGER.<br>
><br>
> Previously there were no Interface definitions - so no
error checks by the compiler.<br>
><br>
> Satish<br>
><br>
>> & ierr)<br>
>><br>
>> Any suggestions on what I've messed up?<br>
>> -sanjay<br>
>><br>
>><br>
<br>
</blockquote>
</div>
</div>
</blockquote>
<br>
</body>
</html>