-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
APREPRO: Add option to output floating point data at full precision
Add optional support (enabled if the lib::fmt library is linked in) for printing floating point data using the number of digits required for full precision of the value. The output for {1/4} would be '0.25' The output for {1/3} would be '1.333333..' with enough '3' to fully represent the value. Another way of describing is that if VAL is the internal value of an aprepro variable, then printing VAL and then assigning the variable to VALs printed output would result in no change. This behavior can either be enabled using the `--full_precision` or `-p` option, or by setting the value of the aprepro varible `_FORMAT` to the empty string: {_FORMAT=""} Since this capability is only enabled if the optional lib::fmt library is linked to aprepro, a warning/informational/error message is printed if you try to use the option when it is not supported.
- Loading branch information
1 parent
c583b52
commit 3a258ce
Showing
5 changed files
with
40 additions
and
140 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
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
TRIBITS_PACKAGE_DEFINE_DEPENDENCIES( | ||
LIB_OPTIONAL_PACKAGES SEACASExodus | ||
LIB_OPTIONAL_TPLS fmt | ||
TEST_OPTIONAL_TPLS Pthread | ||
) |