[Trilinos-Users] error reading xml ParameterList
Hoang Giang Bui
hgbk2008 at gmail.com
Thu Mar 7 02:16:27 MST 2013
Hi
Please help to look in an error when reading the ParameterList from xml
file. In the test file "test-write_parameterlist.cpp", the xml file is
generated by exporting a ParameterList obtain from Teko. The
"test-read_parameterlist.cpp" try to read it back, however the error is
generated:
hbui at hbui-Aspire-5553G:~/workspace/trilinos1/cmake_build$
./test-read_parameterlist
terminate called after throwing an instance of
'Teuchos::CantFindValidatorConverterException'
what():
/home/hbui/sw/trilinos-public1/packages/teuchos/parameterlist/src/Teuchos_ValidatorXMLConverterDB.cpp:87:
Throw number = 1
Throw test that evaluated to true: it == getConverterMap().end()
Could not find a ValidatorXMLConverter for type
StringIntegralValidator(Thyra::EBelosSolverType)
Try adding an appropriate converter to the ValidatorXMLConverterDB in
order solve this problem.
Aborted (core dumped)
I think the error is caused by a validatorId field assert to
ParameterList entries. Remove the validatorId, it can read normally.
However, I think a clean solution is better.
BR
Bui
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test-read_parameterlist.cpp
Url: https://software.sandia.gov/pipermail/trilinos-users/attachments/20130307/1a893e01/attachment.pl
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test-write_parameterlist.cpp
Url: https://software.sandia.gov/pipermail/trilinos-users/attachments/20130307/1a893e01/attachment-0001.pl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stratimikos.xml
Type: text/xml
Size: 57981 bytes
Desc: not available
Url : https://software.sandia.gov/pipermail/trilinos-users/attachments/20130307/1a893e01/attachment.xml
More information about the Trilinos-Users
mailing list