Comments (12)
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.
from camfort.
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.
Fair
from camfort.
@dorchard do we want to ship with this bug?
from camfort.
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.
units-synth
might be doing things correctly. How about stencils-synth
?
from camfort.
My bad.
from camfort.
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.
Can confirm that this is still an issue with stencils-synth
.
from camfort.
from camfort.
You did @mrd - I think the problem is just with stencils-synth
now.
from camfort.
Related Issues (20)
- Brew fails HOT 5
- Windows install of 1.1.1 - "The code execution cannot proceed because libbas.dll was not found" HOT 12
- Any projection when post f95 will be supported? HOT 3
- lack of documentation on how to refactor HOT 5
- Lack of command usage, example invocation documentation
- issues with building on macOS HOT 4
- New basic check: conditional in for loop
- [Possible change] Don't make units all lowercase when parsing. HOT 1
- Short-circuiting logic analysis
- Suppress warnings option HOT 1
- Update pre-built binaries
- Provide OCI/Docker-compatible container HOT 2
- fp-check reports equalities even if they involve the `nint` intrinsic (cast)
- COMMON blocks refactoring ignores implicit rules
- Missing Hollerith constants support HOT 1
- DOUBLE COMPLEX is not understood, COMPLEX*16 works HOT 1
- It's not valid to remove EQUIVALENCE from BLOCKDATA
- Always backup your files! Camfort erases the source file, if interrupted HOT 2
- EQUIVALENCE is not handled properly, if both arguments are array HOT 4
- Declaring the unit of multiple variables at once does not work HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from camfort.