<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, May 16, 2016 at 8:31 AM, Dominic Steinitz <span dir="ltr"><<a href="mailto:dominic@steinitz.org" target="_blank">dominic@steinitz.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div 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></div></blockquote><div><br></div><div>By default, PETSc produces no output since printing on a supercomputer can take more time than your run.</div><div>If you want output, I suggest using the monitors and viewers:</div><div><br></div><div> -ksp_monitor -ksp_view -log_summary</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"><div bgcolor="#FFFFFF" text="#000000">
Dominic.<br>
<br>
<div>On 16/05/2016 06:24, Matthew Knepley
wrote:<br>
</div>
<blockquote 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 href="mailto:dominic@steinitz.org" target="_blank"></a><a href="mailto:dominic@steinitz.org" target="_blank">dominic@steinitz.org</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 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 href="mailto:petsc-maint@mcs.anl.gov" target="_blank">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"><span class="HOEnZb"><font color="#888888">
<div><br>
</div>
-- <br>
<div>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>
</font></span></div>
</div>
</blockquote>
<br>
</div>
</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>