<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Thanks - I downloaded the maint branch (so I am 11 hours out of
date!) and built that - the advection diffusion example now runs.
Somewhat annoyingly, it doesn't seem to produce any output. Time to
add a few printf statements I guess.<br>
<br>
Dominic.<br>
<br>
<div class="moz-cite-prefix">On 16/05/2016 06:24, Matthew Knepley
wrote:<br>
</div>
<blockquote
cite="mid:CAMYG4Gk3dFcUjbA0RwKLg6CY7FBhswTwXFsbbMZy8ewSOV3Z4g@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">On Mon, May 16, 2016 at 6:47 AM,
Dominic Steinitz <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:dominic@steinitz.org" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:dominic@steinitz.org">dominic@steinitz.org</a></a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">On
15/05/2016 17:34, Dominic Steinitz wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
HYDU_create_process (utils/launch/launch.c:75):<br>
</blockquote>
<br>
Sorry for the noise. I understand why I got the above
error message but now I get a different one where
previously the example used to work. I have no idea what I
have done differently.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
~/petsc/src/ksp/ksp/examples/tutorials $
/Users/dom/petsc/arch-darwin-c-debug/bin/mpiexec -n 1
./ex1<br>
[0]PETSC ERROR: --------------------- Error Message
--------------------------------------------------------------<br>
[0]PETSC ERROR: Null argument, when expecting valid
pointer<br>
[0]PETSC ERROR: Null Pointer: Parameter # 2<br>
[0]PETSC ERROR: See <a moz-do-not-send="true"
href="http://www.mcs.anl.gov/petsc/documentation/faq.html"
rel="noreferrer" target="_blank">http://www.mcs.anl.gov/petsc/documentation/faq.html</a>
for trouble shooting.<br>
[0]PETSC ERROR: Petsc Release Version 3.6.3, unknown<br>
[0]PETSC ERROR: ./ex1 on a arch-darwin-c-debug named
Dominics-MacBook-Pro.local by dom Mon May 16 12:40:21
2016<br>
[0]PETSC ERROR: Configure options --with-cc=gcc
--with-cxx=g++ --with-fc=gfortran --download-fblaslapack
--download-mpich<br>
[0]PETSC ERROR: #1 PetscOptionsGetInt() line 1480 in
/Users/dom/petsc/src/sys/objects/options.c<br>
[0]PETSC ERROR: #2 main() line 39 in
/Users/dom/petsc/src/ksp/ksp/examples/tutorials/ex1.c<br>
[0]PETSC ERROR: No PETSc Option Table entries<br>
[0]PETSC ERROR: ----------------End of Error Message
-------send entire error message to
<a class="moz-txt-link-abbreviated" href="mailto:petsc-maint@mcs.anl.gov">petsc-maint@mcs.anl.gov</a>----------</blockquote>
</blockquote>
<div><br>
</div>
<div>The argument list for PetscOptionsGetInt() changed in
this release (so we could have reentrant option
functions). It added an</div>
<div>additional argument at the beginning. I am guessing
there is a mismatch here between the version from which
ex1.c comes</div>
<div>and the version you are linking.</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">
Here's how I built the example<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
~/petsc/src/ksp/ksp/examples/tutorials $ make clean<br>
~/petsc/src/ksp/ksp/examples/tutorials $ make ex1<br>
/Users/dom/petsc/arch-darwin-c-debug/bin/mpicc -o ex1.o
-c -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing
-Wno-unknown-pragmas -g3 -O0
-I/Users/dom/petsc/include
-I/Users/dom/petsc/arch-darwin-c-debug/include
-I/opt/X11/include -I/usr/local/include `pwd`/ex1.c<br>
/Users/dom/petsc/arch-darwin-c-debug/bin/mpicc
-Wl,-multiply_defined,suppress -Wl,-multiply_defined
-Wl,suppress -Wl,-commons,use_dylibs
-Wl,-search_paths_first -Wl,-multiply_defined,suppress
-Wl,-multiply_defined -Wl,suppress
-Wl,-commons,use_dylibs -Wl,-search_paths_first -fPIC
-Wall -Wwrite-strings -Wno-strict-aliasing
-Wno-unknown-pragmas -g3 -O0 -o ex1 ex1.o
-Wl,-rpath,/Users/dom/petsc/arch-darwin-c-debug/lib
-L/Users/dom/petsc/arch-darwin-c-debug/lib -lpetsc
-Wl,-rpath,/Users/dom/petsc/arch-darwin-c-debug/lib
-lflapack -lfblas -Wl,-rpath,/opt/X11/lib -L/opt/X11/lib
-lX11 -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lhwloc
-Wl,-rpath,/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/7.3.0/lib/darwin
-L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/7.3.0/lib/darwin
-lmpifort -lgfortran
-Wl,-rpath,/usr/local/Cellar/gcc/5.3.0/lib/gcc/5/gcc/x86_64-apple-darwin15.4.0/5.3.0
-L/usr/local/Cellar/gcc/5.3.0/lib/gcc/5/gcc/x86_64-apple-darwin15.4.0/5.3.0
-Wl,-rpath,/usr/local/Cellar/gcc/5.3.0/lib/gcc/5
-L/usr/local/Cellar/gcc/5.3.0/lib/gcc/5
-Wl,-rpath,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib
-L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib
-lgfortran -lgcc_ext.10.5 -lquadmath -lm -lclang_rt.osx
-lmpicxx -lc++
-Wl,-rpath,/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.3.0/lib/darwin
-L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.3.0/lib/darwin
-lclang_rt.osx
-Wl,-rpath,/Users/dom/petsc/arch-darwin-c-debug/lib
-L/Users/dom/petsc/arch-darwin-c-debug/lib -ldl -lmpi
-lpmpi -lSystem
-Wl,-rpath,/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.3.0/lib/darwin
-L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.3.0/lib/darwin
-lclang_rt.osx -ldl<br>
/bin/rm -f ex1.o<br>
</blockquote>
<br>
<br>
<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>
</blockquote>
<br>
</body>
</html>