Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

units-synth produces rational power that units-check cannot parse #45

Closed
dorchard opened this issue Sep 13, 2016 · 0 comments
Closed

units-synth produces rational power that units-check cannot parse #45

dorchard opened this issue Sep 13, 2016 · 0 comments
Assignees

Comments

@dorchard
Copy link
Member

dorchard commented Sep 13, 2016

e.g.

program foo
  != unit X :: x 
  real :: x, y

  y = x ** 2
end program foo

then

$ camfort units-synth foo.f90 foo.f90

Synthesising units for 'foo.f90'
Writing foo.f90

foo.f90:
  3:11 unit x :: x
  3:14 unit x**2.0 :: y

$ camfort units-check foo.f90 foo.f90

Checking units for 'foo.f90'
Error (3:3)-(3:22): Not valid unit syntax at ".0) :: y"
foo.f90: Consistent. 2 variables checked.

We need to output a rational not floating point form.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants