<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, May 16, 2015 at 3:25 AM, Marco Zocca <span dir="ltr"><<a href="mailto:zocca.marco@gmail.com" target="_blank">zocca.marco@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have wrapped a couple of elementary Vec allocation functions which<br>
typecheck in the host language but are not seemingly accepted by the<br>
library.<br>
In the host language, I called "VecCreate" on communicator 1, then<br>
used VecSet to set it to value 1.0 .<br></blockquote><div><br></div><div>You have to give a valid MPI communicator, not a random integer.</div><div><br></div><div>  Thanks,</div><div><br></div><div>     Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
What do errors #1 to #4 mean?<br>
In particular, error #4 points to this line in rvector.c :<br>
  PetscValidHeaderSpecific(x,VEC_CLASSID,1);<br>
<br>
Which one is parameter #1 referred to by "Null Object" ? Does "Null<br>
argument" in the line before refer to the same error as the Null<br>
Object? And, how may I fix it?<br>
<br>
<br>
[0]PETSC ERROR: --------------------- Error Message<br>
--------------------------------------------------------------<br>
[0]PETSC ERROR: Null argument, when expecting valid pointer<br>
[0]PETSC ERROR: Null Object: Parameter # 1<br>
[0]PETSC ERROR: Petsc Release Version 3.5.3, Jan, 31, 2015<br>
[0]PETSC ERROR: Configure options --with-cc=gcc --with-cxx=g++<br>
--with-fc=gfortran --with-shared-libraries=1 --download-mpich<br>
--download-fblaslapack<br>
<br>
[0]PETSC ERROR: #1 PetscCommDuplicate() line 140 in<br>
/Users/ocramz/petsc-3.5.3/src/sys/objects/tagm.c<br>
[0]PETSC ERROR: #2 PetscHeaderCreate_Private() line 59 in<br>
/Users/ocramz/petsc-3.5.3/src/sys/objects/inherit.c<br>
[0]PETSC ERROR: #3 VecCreate() line 37 in<br>
/Users/ocramz/petsc-3.5.3/src/vec/vec/interface/veccreate.c<br>
[0]PETSC ERROR: #4 VecSet() line 569 in<br>
/Users/ocramz/petsc-3.5.3/src/vec/vec/interface/rvector.c<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div>
</div></div>