[petsc-dev] PetscOptionsInsertFile_YAML
Blaise Bourdin
bourdin at lsu.edu
Thu Jan 19 10:29:26 CST 2012
I simplified the example I had sent yesterday even further. I don't think that I can do much simpler than that. I could not find the working examples in the petsc-dev tree.
Blaise
MacPro:Options blaise$ ./TestOptionsC
Events did not load properly. (/opt/HPC/petsc-yaml/src/sys/yaml/yamlimpls.c:211)
[0]PETSC ERROR: --------------------- Error Message ------------------------------------
[0]PETSC ERROR: !
[0]PETSC ERROR: Unable to open YAML Options File options.yml!
[0]PETSC ERROR: ------------------------------------------------------------------------
[0]PETSC ERROR: Petsc Development HG revision: 3e39bc7a6c4a1101689f723895024107b4a9b966 HG Date: Wed Jan 18 17:46:16 2012 -0600
[0]PETSC ERROR: See docs/changes/index.html for recent updates.
[0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.
[0]PETSC ERROR: See docs/index.html for manual pages.
[0]PETSC ERROR: ------------------------------------------------------------------------
[0]PETSC ERROR: ./TestOptionsC on a gcc4.2-ya named MacPro.local by blaise Thu Jan 19 10:22:17 2012
[0]PETSC ERROR: Libraries linked from /opt/HPC/petsc-yaml/gcc4.2-yaml-g/lib
[0]PETSC ERROR: Configure run at Thu Jan 19 08:46:22 2012
[0]PETSC ERROR: Configure options --CC=gcc --CFLAGS=-Wno-unused --CXX=g++ --FC=gfortran --download-yaml=1 --download-mpich=1 --download-sowing=1 --with-cmake=cmake --with-debugging=1 --with-gnu-compilers=1 --with-pic --with-shared-libraries=1 --with-x11=1
[0]PETSC ERROR: ------------------------------------------------------------------------
[0]PETSC ERROR: PetscOptionsInsertFile_YAML() line 763 in /opt/HPC/petsc-yaml/src/sys/yaml/yamlimpls.c
[0]PETSC ERROR: main() line 20 in TestOptionsC.c
application called MPI_Abort(MPI_COMM_WORLD, 83) - process 0
[unset]: aborting job:
application called MPI_Abort(MPI_COMM_WORLD, 83) - process 0
output from the debugger:
(gdb) cont
Continuing.
Program received signal SIGABRT, Aborted.
0x00007fff87b8c82a in __kill ()
(gdb) where
#0 0x00007fff87b8c82a in __kill ()
#1 0x00007fff8c2cca9c in abort ()
#2 0x000000010536b6c2 in PetscAbortErrorHandler (comm=1140850689, line=763, fun=0x105ff9140 "PetscOptionsInsertFile_YAML", file=0x105ff8d58 "/opt/HPC/petsc-yaml/src/sys/yaml/yamlimpls.c", dir=0x105fe98a8 "", n=83, p=PETSC_ERROR_INITIAL, mess=0x7fff64e77d44 "Unable to open YAML Options File options.yml", ctx=0x0) at errabort.c:62
#3 0x0000000105364654 in PetscError (comm=1140850689, line=763, func=0x105ff9140 "PetscOptionsInsertFile_YAML", file=0x105ff8d58 "/opt/HPC/petsc-yaml/src/sys/yaml/yamlimpls.c", dir=0x105fe98a8 "", n=83, p=PETSC_ERROR_INITIAL, mess=0x105ff91b0 "Unable to open YAML Options File %s") at err.c:349
#4 0x000000010540cb75 in PetscOptionsInsertFile_YAML (comm=1140850688, file=0x10527bf4f "options.yml", require=PETSC_TRUE) at yamlimpls.c:763
#5 0x000000010527bd48 in main (argc=2, argv=0x7fff64e798e8) at TestOptionsC.c:20
> On Thu, Jan 19, 2012 at 10:12, Blaise Bourdin <bourdin at lsu.edu> wrote:
> Nevermind: src/sys/yaml/yamlimpls.c has not been touched since changeset d3065a573ab0 when it was first committed. I upgraded to this changeset and still could not get it to parse a trivial file. Too bad...
>
> It usually helps to provide test cases (e.g here is the "trivial file" and here is the failure output). It sounds like Sean says it worked for some tests when it was committed, in which case it's not "known to not work" code.
--
Department of Mathematics and Center for Computation & Technology
Louisiana State University, Baton Rouge, LA 70803, USA
Tel. +1 (225) 578 1612, Fax +1 (225) 578 4276 http://www.math.lsu.edu/~bourdin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120119/1ece01a4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: options.yml
Type: application/octet-stream
Size: 9 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120119/1ece01a4/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120119/1ece01a4/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestOptionsC.c
Type: application/octet-stream
Size: 315 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120119/1ece01a4/attachment-0001.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120119/1ece01a4/attachment-0002.html>
More information about the petsc-dev
mailing list