GithubHelp home page GithubHelp logo

Comments (12)

dorchard avatar dorchard commented on September 26, 2024

I've made a separate fixture to show what should happen, and reverted the test for now to accommodate this inaccuracy so that our build will work.

from camfort.

madgen avatar madgen commented on September 26, 2024

Bugs should fail builds.

from camfort.

dorchard avatar dorchard commented on September 26, 2024

I would like Travis to generate binaries for us as I need to do a new release to fix Stackage. I don't have time to fix this bug, but we need to fix Stackage ASAP.

from camfort.

madgen avatar madgen commented on September 26, 2024

Fair

from camfort.

madgen avatar madgen commented on September 26, 2024

@dorchard do we want to ship with this bug?

from camfort.

buggymcbugfix avatar buggymcbugfix commented on September 26, 2024

I can't reproduce this.

$ camfort units-synth samples/units/stuck1.f --inplace

on the file

      PROGRAM ONE
        IMPLICIT NONE
        REAL  radius, height
        REAL  mass
        REAL  densit, volume, pi, i
        volume = pi * radius**2 * height
        mass = volume * densit

        do 10 i=1,10
           radius = i
 10     continue
      end
      function r(m,t,a)
        integer m,a(10)
        real t

        r = 0.1*t * (m**2 + 14*m + 46)
        if (r .LT. 0) r = 0.0

        return
      end

is giving the following output:

      PROGRAM ONE
        IMPLICIT NONE
        REAL  radius, height
        REAL  mass
        REAL  densit, volume, pi, i
        volume = pi * radius**2 * height
        mass = volume * densit

        do 10 i=1,10
           radius = i
 10     continue
      end
c= unit('a) :: r
      function r(m,t,a)
c= unit('b) :: a
c= unit(1) :: m
        integer m,a(10)
c= unit('a) :: t
        real t

        r = 0.1*t * (m**2 + 14*m + 46)
        if (r .LT. 0) r = 0.0

        return
      end

from camfort.

dorchard avatar dorchard commented on September 26, 2024

units-synth might be doing things correctly. How about stencils-synth?

from camfort.

buggymcbugfix avatar buggymcbugfix commented on September 26, 2024

My bad.

from camfort.

dorchard avatar dorchard commented on September 26, 2024

Not at all, I think when the bug was first posted units-synth was wrong as well (hence the bug report from @madgen says "stencils and units").

from camfort.

buggymcbugfix avatar buggymcbugfix commented on September 26, 2024

Can confirm that this is still an issue with stencils-synth.

from camfort.

mrd avatar mrd commented on September 26, 2024

from camfort.

dorchard avatar dorchard commented on September 26, 2024

You did @mrd - I think the problem is just with stencils-synth now.

from camfort.

Related Issues (20)

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.