-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable Yaml input #74
Comments
If Teuchos is compiled with Yaml support, Albany's solver factory and LCM's material database can optionally be read as Yaml files. This is determined by the file extension. If the extension is .xml, the XMl parser for Teuchos ParameterList is invoked. If the extension is .yaml, the Yaml parser is invoked. Add small example (test) specifying the same problem with XML and Yaml formats. The readability of the input using Yaml is significantly improved. Only LCM is tested for this. A cursory search finds that ATO and QCAD call the XML parser for their own purposes. Adding support for the Yaml parser is not difficult, following the example of the LCM material database. Enable Yaml support by default on Fedora.
Added support for Yaml input for LCM. Other applications can easily use this. See commit message above. Leaving issue open for the time being just in case. |
Part of #74 Unfortuntaly, TeuchosCore_config.h does not handle the YAML parameter in the standard way, meaning that the variable is defined to either 1 or 0 instead of being defined or not defined. As an added safety measure, check for the presence of the YAML header file.
@lxmota thank you for doing this ! http://my.cdash.org/index.php?project=Albany&date=2017-02-25 I think I have fixed this in 5be9b58. |
my last commit broke the case when YAML is present part of #74
Thanks for fixing the YAML detection code. |
The list of coupled input files was specified as: Model XML Files To accommodate YAML files as well this changed to: Model Input Files Propage change through tests. (#74) Also fix a compiler error due to const correctness in AAdapt_RC_Field.
This enhancement supports gahansen/Albany#74. Albany uses TwoDArray type ParameterLists, and getting these supported in the YAML parser would streamline our migration from XML to YAML. There should be no compatibility issue, as I don't think the current parser can handle nested Sequences. A unit test is included.
This enhancement supports gahansen/Albany#74. Albany uses TwoDArray type ParameterLists, and getting these supported in the YAML parser would streamline our migration from XML to YAML. There should be no compatibility issue, as I don't think the current parser can handle nested Sequences. A unit test is included.
I'm closing this one as duplicate of #21. The discussion should continue there. |
This enhancement supports gahansen/Albany#74. Albany uses TwoDArray type ParameterLists, and getting these supported in the YAML parser would streamline our migration from XML to YAML. There should be no compatibility issue, as I don't think the current parser can handle nested Sequences. A unit test is included.
Enabling Yaml input in Albany will significantly improve the readability of input files.
All input in Albany is done through Teuchos ParameterLists, which already support Yaml parsing provided that Trilinos is compiled with TeuchosCore_ENABLE_yaml-cpp:BOOL=ON.
The text was updated successfully, but these errors were encountered: