Created
June 9, 2015 10:31
-
-
Save nushio3/3b5aa2902dd6c6b689e9 to your computer and use it in GitHub Desktop.
camfort-trace
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nushio@nuwheezy:tutorial$ cat test.f90 | |
program test | |
implicit none | |
integer :: n | |
read *, n | |
! This is nushio's comment | |
if (n < 3) then | |
print *, "n is small" | |
end if | |
if (mod(n, 2) == 0) then | |
print *, "n is even" | |
else | |
print *, "n is odd" | |
end if | |
end program test | |
nushio@nuwheezy:tutorial$ ../../bin/linux/camfort units . out | |
CamFort 0.615 - Cambridge Fortran Infrastructure. | |
Inferring units for "." | |
./out/out/test.f90 | |
./out/test.f90 | |
./test.f90 | |
./out/out/test.f90: Added 0 non-unitless annotation: | |
./out/out/test.f90: checked/inferred 1 user variables | |
./out/test.f90: Added 0 non-unitless annotation: | |
./out/test.f90: checked/inferred 1 user variables | |
./test.f90: Added 0 non-unitless annotation: | |
./test.f90: checked/inferred 1 user variables | |
Writing refactored files to directory: out/ | |
Writing out/out/out/test.f90 | |
Writing out/out/test.f90 | |
Writing out/test.f90 | |
nushio@nuwheezy:tutorial$ cat out/test.f90 | |
program test | |
implicit none | |
integer, unit() :: n | |
read *, n | |
! This is nushio's comment | |
if (n < 3) then | |
print *, "n is small" | |
end if | |
if (mod(n, 2) == 0) then | |
print *, "n is even" | |
else | |
print *, "n is odd" | |
end if | |
end program testnushio@nuwheezy:tutorial$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment