[petsc-dev] proposed patch: YAML parser

Blaise Bourdin bourdin at lsu.edu
Mon Jul 23 23:39:48 CDT 2012


Hi,

After trying to get the current yaml parser in petsc to work, I finally gave up and rewrote a very basic one. It supports only a subset of the standard and lacks support or sequences and aliases , for instance (would that be JSON?). Would you consider applying this patch (yaml-1.patch) to 3.3 and dev? The fortran binding also does not work, I think that I am still missing the proper headers in include/finclude, but I am getting a bit lost.

I also tried to modify options.c in order to add a global flag -yaml_file (this is probably a bad name, I agree), but I can't figure out why it doesn't work (I can't even get a stack trace). The changes are in yaml-2.patch
(gdb) run -yaml_file petsc.yaml
Starting program: /opt/HPC/petsc-3.3/src/sys/examples/tutorials/ex79 -yaml_file petsc.yaml
Reading symbols for shared libraries ++++++++++++++++++++++............................ done
PETSC ERROR: Logging has not been enabled.
You might have forgotten to call PetscInitialize().
application called MPI_Abort(MPI_COMM_WORLD, 56) - process 0
[unset]: aborting job:
application called MPI_Abort(MPI_COMM_WORLD, 56) - process 0

Program exited with code 070.
(gdb) where
No stack.

Would anybody be willing to have a look at the second patch?

Regards,

Blaise
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yaml-1.patch
Type: application/octet-stream
Size: 46167 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120723/b34b2222/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yaml-2.patch
Type: application/octet-stream
Size: 4222 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120723/b34b2222/attachment-0001.obj>
-------------- next part --------------

-- 
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









More information about the petsc-dev mailing list