-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
14 changed files
with
765 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
##*****************************************************************// | ||
## Albany 3.0: Copyright 2016 Sandia Corporation // | ||
## This Software is released under the BSD license detailed // | ||
## in the file "license.txt" in the top-level Albany directory // | ||
##*****************************************************************// | ||
|
||
# Copy Input file from source to binary dir | ||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cuboid.g | ||
${CMAKE_CURRENT_BINARY_DIR}/cuboid.g COPYONLY) | ||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cuboid.xml | ||
${CMAKE_CURRENT_BINARY_DIR}/cuboid.xml COPYONLY) | ||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cuboid.yaml | ||
${CMAKE_CURRENT_BINARY_DIR}/cuboid.yaml COPYONLY) | ||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/materials.xml | ||
${CMAKE_CURRENT_BINARY_DIR}/materials.xml COPYONLY) | ||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/materials.yaml | ||
${CMAKE_CURRENT_BINARY_DIR}/materials.yaml COPYONLY) | ||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/runtest.py | ||
${CMAKE_CURRENT_BINARY_DIR}/runtest.py COPYONLY) | ||
|
||
# Create symlink to AlbanyT | ||
execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink | ||
${AlbanyTPath} ${CMAKE_CURRENT_BINARY_DIR}/AlbanyT) | ||
get_filename_component(testName ${CMAKE_CURRENT_SOURCE_DIR} NAME) | ||
# Create the test with this name and standard executable | ||
add_test(NAME ${testName} COMMAND "python" "runtest.py") |
Binary file not shown.
Oops, something went wrong.