GithubHelp home page GithubHelp logo

Fortpy comparison error? about symlib HOT 4 CLOSED

wsmorgan avatar wsmorgan commented on September 15, 2024
Fortpy comparison error?

from symlib.

Comments (4)

rosenbrockc avatar rosenbrockc commented on September 15, 2024

It looks like there is a missing space between the two floats. Are you using the standard float.xml template?

from symlib.

wsmorgan avatar wsmorgan commented on September 15, 2024

Yes

from symlib.

wsmorgan avatar wsmorgan commented on September 15, 2024

This issue no longer occurs in the cross product, it would appear that the new fortpy.f90 fixed the issue. However, on a similar note in vector_matrix_utilities.f90 the volume test fails half the time with the following error:
BLOCK: index 0
0.00% (0.00% RAW)
ITEM autovar - MISMATCH (616.309005878 vs. 616.309005878)

The template being used looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<fortpy mode="template" versions="1">
<comments versions="1">#</comments>
<body stop="EOF" versions="1">
<line id="autovar" type="float" values="*" versions="1" />
</body>
<comparisons version="1" >
<compare id="autovar" operator="finite" tolerance="2E-11"/>
</comparisons>
</fortpy>

from symlib.

rosenbrockc avatar rosenbrockc commented on September 15, 2024

Fortpy was not printing out more than 9 digits in the comparison report; since the values differed in the 11th decimal, the round-off shows them as equivalent. From revision 1.6.0 onwards, we print with .12f to make sure they all show up.

from symlib.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.