- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Untill last week we used CVF, but now we try to port our applications to IVF.
We are having problems with the next piece of code.
In CVF it runs and says at the end itra=1.
In IVF it crashes because i(0) is going to be evaluated in the WHILE statement.
Is there an option in the IVF compiler to handle this problem.
This kind of syntax is often used in our code, so I don't want to rewrite it.
Thanks in advance,
Wilco de Vries
program test
implicit none
integer itra
real*4 i(4)
itra = 4
i=4
! Original code
DO WHILE (itra.GT.1 .AND. 3 .LE. i(itra-1))
itra = itra - 1
ENDDO
write(6,*) itra
end program test
Untill last week we used CVF, but now we try to port our applications to IVF.
We are having problems with the next piece of code.
In CVF it runs and says at the end itra=1.
In IVF it crashes because i(0) is going to be evaluated in the WHILE statement.
Is there an option in the IVF compiler to handle this problem.
This kind of syntax is often used in our code, so I don't want to rewrite it.
Thanks in advance,
Wilco de Vries
program test
implicit none
integer itra
real*4 i(4)
itra = 4
i=4
! Original code
DO WHILE (itra.GT.1 .AND. 3 .LE. i(itra-1))
itra = itra - 1
ENDDO
write(6,*) itra
end program test
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is an error in your code which you will have to fix. Read this article, which I wrote while working on CVF. As you'll see, CVF could behave this way too for many applications.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page