tallies.xml parse error

126 views
Skip to first unread message

Ronald Rahaman

unread,
Jul 23, 2014, 2:10:25 PM7/23/14
to openmc...@googlegroups.com
Hi all,

I'm working with a tallies.xml file that produces a parse error with OpenMC v0.5.4 and v0.6.0.  However, the tallies.xml file works fine with OpenMC v0.5.3, and it seems to be compliant with the format specified in the most recent OpenMC manual.  

The tallies.xml file (as well as the rest of the model) are from one of the MIT CRPG workshops.  I'm working with the tallying demo, from here:

The demo works fine with v0.5.3, but more recent versions fail to read the tallies.xml.  This is the error I get with OpenMC v0.6.0, after compiling with gfortran:

 ===========================================================================
 ========================>     INITIALIZATION     <=========================
 ===========================================================================
 Reading settings XML file...
 Reading cross sections XML file...
 Reading geometry XML file...
 Reading materials XML file...
 Reading tallies XML file...
PARSE_ERR                  
81 runParser
forrtl: severe (174): SIGSEGV, segmentation fault occurred
Image              PC                Routine            Line        Source             
libintlc.so.5      00007FEBC7CE92C9  Unknown               Unknown  Unknown
libintlc.so.5      00007FEBC7CE7B9E  Unknown               Unknown  Unknown
libifcoremt.so.5   00007FEBC96DD79F  Unknown               Unknown  Unknown
libifcoremt.so.5   00007FEBC9642279  Unknown               Unknown  Unknown
libifcoremt.so.5   00007FEBC96538D3  Unknown               Unknown  Unknown
libpthread.so.0    00007FEBC7ACFCB0  Unknown               Unknown  Unknown
openmc             00000000009CCF59  Unknown               Unknown  Unknown
openmc             0000000000931867  Unknown               Unknown  Unknown
openmc             0000000000934BBB  Unknown               Unknown  Unknown
openmc             00000000006AB986  xml_interface_mp_          52  xml_interface.F90
openmc             00000000008578ED  input_xml_mp_read        1788  input_xml.F90
openmc             0000000000826D32  input_xml_mp_read          39  input_xml.F90
openmc             000000000058E1D7  initialize_mp_ini          75  initialize.F90
openmc             0000000000741095  MAIN__                     15  main.F90
openmc             0000000000402B46  Unknown               Unknown  Unknown
libc.so.6          00007FEBC772176D  Unknown               Unknown  Unknown
openmc             0000000000402A19  Unknown               Unknown  Unknown

Thanks,
Ron Rahaman

Bryan Herman

unread,
Jul 23, 2014, 3:31:32 PM7/23/14
to Ronald Rahaman, openmc...@googlegroups.com
Hey Ron,

For release 0.5.4 we put in a better XML parser that follows the DOM standard. This also means that if there is and XML problem it will just error out with that runParser. I wish FoX put a better error handler into their code so we could get more information. Anyway, if you see that runParser error, that means you have an XML issue which has nothing to do with OpenMC. If you paste your code into an online XML validator you will see the error:

     <bins>0.0 0.625e-6 20.0<bins/>

You have <bins/> instead of </bins>.  Maybe I will edit the FoX source code to suggest user's to go and paste their XML into an online validator.

-Bryan



--
You received this message because you are subscribed to the Google Groups "OpenMC Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openmc-users...@googlegroups.com.
To post to this group, send email to openmc...@googlegroups.com.
Visit this group at http://groups.google.com/group/openmc-users.
For more options, visit https://groups.google.com/d/optout.

Ronald Rahaman

unread,
Jul 23, 2014, 3:43:08 PM7/23/14
to openmc...@googlegroups.com
Thanks a lot, Bryan!
Reply all
Reply to author
Forward
0 new messages