diff --git a/Compiler/Template/CodegenCpp.tpl b/Compiler/Template/CodegenCpp.tpl index 435c1e6f78..c8550e5db7 100644 --- a/Compiler/Template/CodegenCpp.tpl +++ b/Compiler/Template/CodegenCpp.tpl @@ -12339,30 +12339,30 @@ template giveZeroFunc3(Integer index1, Exp relation, Text &varDecls /*BUFP*/,Tex case LESS(__) then << if(_conditions[<%zerocrossingIndex%>]) - f[<%index1%>]=(<%e1%> - 1e-9 - <%e2%>); + f[<%index1%>]=(<%e1%> - 1e-6 - <%e2%>); else - f[<%index1%>]=(<%e2%> - <%e1%> - 1e-9); + f[<%index1%>]=(<%e2%> - <%e1%> - 1e-6); >> case LESSEQ(__) then << if(_conditions[<%zerocrossingIndex%>]) - f[<%index1%>] = (<%e1%> - 1e-9 - <%e2%>); + f[<%index1%>] = (<%e1%> - 1e-6 - <%e2%>); else - f[<%index1%>] = (<%e2%> - <%e1%> - 1e-9); + f[<%index1%>] = (<%e2%> - <%e1%> - 1e-6); >> case GREATER(__) then << if(_conditions[<%zerocrossingIndex%>]) - f[<%index1%>] = (<%e2%> - <%e1%> - 1e-9); + f[<%index1%>] = (<%e2%> - <%e1%> - 1e-6); else - f[<%index1%>] = (<%e1%> - 1e-9 - <%e2%>); + f[<%index1%>] = (<%e1%> - 1e-6 - <%e2%>); >> case GREATEREQ(__) then << if(_conditions[<%zerocrossingIndex%>]) - f[<%index1%>] = (<%e2%> - <%e1%> - 1e-9); + f[<%index1%>] = (<%e2%> - <%e1%> - 1e-6); else - f[<%index1%>] = (<%e1%> - 1e-9 - <%e2%>); + f[<%index1%>] = (<%e1%> - 1e-6 - <%e2%>); >> else <<