<div dir="ltr"><div><div>Okay, thanks Matt. It now makes sense why it failed, but I don't understand your logic.<br></div>The PetscQuadrature class is so small and doesn't depend on DM (at least not in the definition of the structure described PetscQuadrature). Hence, why should DMInitializePackage() have to be called at all? <br>I realize you how are you using PetscDT, but it should be available for everyone - even if they don't ever create a DM.<br><br><br>Cheers,<br></div>  Dave<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 18 November 2014 22:46, Matthew Knepley <span dir="ltr"><<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">On Tue, Nov 18, 2014 at 1:49 PM, Dave May <span dir="ltr"><<a href="mailto:dave.mayhem23@gmail.com" target="_blank">dave.mayhem23@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi,<br><br></div>I was trying to use some of DT functionality (in particular PetscDTGaussTensorQuadrature()) in petsc 3.5.2 and I encountered this error:<br></div></div></div></blockquote><div><br></div></span><div>I did not anticipate someone calling that before anything by itself. You need a call to</div><div><br></div><div>  DMInitializePackage()</div><div><br></div><div>This is called by PetscQuadratureCreate().</div><div><br></div><div>   Matt</div><div><div class="h5"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><br>[0]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------<br>[0]PETSC ERROR: Invalid argument<br>[0]PETSC ERROR: Invalid object classid 0<br>This could happen if you compile with PETSC_HAVE_DYNAMIC_LIBRARIES, but link with static libraries.<br>[0]PETSC ERROR: See <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html" target="_blank">http://www.mcs.anl.gov/petsc/documentation/faq.html</a> for trouble shooting.<br>[0]PETSC ERROR: Petsc Release Version 3.5.2, Sep, 08, 2014 <br>[0]PETSC ERROR: ./dmdadg.app on a arch-darwin-c-mpi-debug-f2c named nikkan.local by dmay Tue Nov 18 20:34:56 2014<br>[0]PETSC ERROR: Configure options --download-openmpi=yes --with-debugging=yes --with-fc=0 --download-f2cblaslapck=yes PETSC_ARCH=arch-darwin-c-mpi-debug-f2c<br>[0]PETSC ERROR: #1 PetscClassRegLogGetClass() line 290 in /Users/dmay/software/petsc-3.5.2/src/sys/logging/utils/classlog.c<br>[0]PETSC ERROR: #2 PetscLogObjCreateDefault() line 317 in /Users/dmay/software/petsc-3.5.2/src/sys/logging/utils/classlog.c<br>[0]PETSC ERROR: #3 PetscQuadratureCreate() line 35 in /Users/dmay/software/petsc-3.5.2/src/dm/dt/interface/dt.c<br>[0]PETSC ERROR: #4 PetscDTGaussTensorQuadrature() line 322 in /Users/dmay/software/petsc-3.5.2/src/dm/dt/interface/dt.c<br>[0]PETSC ERROR: #5 DMDGSpace_ex4_quadrature() line 480 in dmdadg.c<br>[0]PETSC ERROR: #6 main() line 503 in dmdadg.c<br>[0]PETSC ERROR: ----------------End of Error Message -------send entire error message to petsc-maint@mcs.anl.gov----------<br>--------------------------------------------------------------------------<br>MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_WORLD <br>with errorcode 1.<br><br>NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.<br>You may or may not see output from other processes, depending on<br>exactly when Open MPI kills them.<br>--------------------------------------------------------------------------<br><br></div>Snooping around in the source tree, the only place where I can find PetscHeaderCreate being passed PETSC_OBJECT_CLASSID is within src/dm/dt/interface/dt.c in the function PetscQuadratureCreate().<br><br>Is this is a bug or is my petsc build broken??<br><br></div>I'm sure I am linking against a dynamic library (or whatever you want to call a dylib on OSX)<br><br>dmay@nikkan:~/codes/dgspace$ otool -L dmdadg.app <br>dmdadg.app:<br><b>    /Users/dmay/software/petsc-3.5.2/arch-darwin-c-mpi-debug-f2c/lib/libpetsc.3.5.dylib (compatibility version 3.5.0, current version 3.5.2)</b><br>    /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib (compatibility version 1.0.0, current version 1.0.0)<br>    /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib (compatibility version 1.0.0, current version 1.0.0)<br>    /opt/X11/lib/libX11.6.dylib (compatibility version 10.0.0, current version 10.0.0)<br>    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)<br>    /usr/lib/libssl.0.9.8.dylib (compatibility version 0.9.8, current version 50.0.0)<br>    /usr/lib/libcrypto.0.9.8.dylib (compatibility version 0.9.8, current version 50.0.0)<br>    /Users/dmay/software/petsc-3.5.2/arch-darwin-c-mpi-debug-f2c/lib/libmpi_cxx.1.dylib (compatibility version 3.0.0, current version 3.3.0)<br>    /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0)<br>    /Users/dmay/software/petsc-3.5.2/arch-darwin-c-mpi-debug-f2c/lib/libmpi.1.dylib (compatibility version 7.0.0, current version 7.0.0)<br><br><div><br><div><br></div><div>Cheers,<br></div><div>  Dave<br></div></div></div>
</blockquote></div></div></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><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></div><br></div>