- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am a new user to FORTRAN and I had a question about the MKL function vsceil. I am not getting the results I expect.
for example,
call vsceil(1,4.5,test)
print '(I)',test
returns 1084227584.
Am I doing something wrong here? I should expect to see 5 right?
Thanks,
Bob
for example,
call vsceil(1,4.5,test)
print '(I)',test
returns 1084227584.
Am I doing something wrong here? I should expect to see 5 right?
Thanks,
Bob
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Well, yes, you must show what include or USE you had to declare the variable types, before anyone can help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I declare the variable test as an integer
integer :: test
Not sure what else you need
integer :: test
Not sure what else you need
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Then, you must have failed to put
include "mkl_vml.fi"
in your source, as it should have aborted compile on the argument type mis-match.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That was interesting that the compiler did not abort on the argument type mismatch because all I did was declare 'test' as real and it worked.
Thanks for the help
Thanks for the help

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