Gas changes generated by Xdeep can contain mix information with decimal comma instead of decimal point. Thus we need to convert the comma to point before performing mathematical operations on it.
Fixes #612 Signed-off-by: Miika Turkia <[email protected]> --- Note that the bug report wants also to ignore gas change events when the mix is not actually changed. That part is not touched by this patch, and it is not really related to UDDF import either...thus I suggest to close the bug report, even though the other part is not touched. --- xslt/uddf.xslt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xslt/uddf.xslt b/xslt/uddf.xslt index bdcdf80..618c080 100644 --- a/xslt/uddf.xslt +++ b/xslt/uddf.xslt @@ -313,7 +313,7 @@ <xsl:attribute name="value"> <xsl:call-template name="gasConvert"> <xsl:with-param name="mix"> - <xsl:value-of select="//gas_def/gas_mix[@id=$idx]/o2"/> + <xsl:value-of select="translate(//gas_def/gas_mix[@id=$idx]/o2, ',', '.')"/> </xsl:with-param> </xsl:call-template> </xsl:attribute> @@ -339,7 +339,7 @@ <xsl:attribute name="value"> <xsl:call-template name="gasConvert"> <xsl:with-param name="mix"> - <xsl:value-of select="//gasdefinitions/mix[@id=$idx]/o2|//u:gasdefinitions/u:mix[@id=$idx]/u:o2|//u1:gasdefinitions/u1:mix[@id=$idx]/u1:o2"/> + <xsl:value-of select="translate(//gasdefinitions/mix[@id=$idx]/o2|//u:gasdefinitions/u:mix[@id=$idx]/u:o2|//u1:gasdefinitions/u1:mix[@id=$idx]/u1:o2, ',', '.')"/> </xsl:with-param> </xsl:call-template> </xsl:attribute> -- 1.9.1 _______________________________________________ subsurface mailing list [email protected] http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface
