- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Getting:
error #6413: This global name is invalid in this context. [FINDLOC]
After running this:
program findloc implicit none integer :: i,res real*8 :: j = 5.0D+00 real*8,dimension(5) :: A do i=1,5 A(i) = dble(i)/j end do write(6,*) findloc(A,1/5) end
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You named the program FINDLOC - you can't then try calling it as a function.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm an idiot, thanks.
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