- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I use -qintlog as one of my flags when compiling my code in Linux using ifort and still get an error (6341) of:
"A logical data type is required in this context"
I was wondering if I am using the correct flag?
Thanks,
Sarvin
"A logical data type is required in this context"
I was wondering if I am using the correct flag?
Thanks,
Sarvin
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There's no such option. What statement is giving you this error and what other options are you using? In most cases, Intel Fortran provides free mixing of integer and logical, which usually is NOT what users want. The compiler will warn about this if you ask for standards checking.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - Steve Lionel (Intel)
There's no such option. What statement is giving you this error and what other options are you using? In most cases, Intel Fortran provides free mixing of integer and logical, which usually is NOT what users want. The compiler will warn about this if you ask for standards checking.
In the code, I have:
if ((dstep).and.(mod(nsteps,dstpat).eq.0)) then
when I try to compile it using "ifort" in Linux OS, I get:
error# 6341: A logical data type is required in this context.
As I mentioned earlier, I can easily compile the code using Intel Visual Fortran in Windows OS.
Thanks,
Sarvin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You have not shown all the code necessary to see the problem, nor the compile command. Let's continue this in your other thread over in the Windows forum.

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