- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I use the compiler ifc8.1 with the -O2 -c -ttp7 -r8 options
and it seems that it is not able to detect some errors in my
code. For example writing a function k_0(a,b) as k_0 or making an array too small, i.e. declaring an array of dimension 2 while
calling the value of array(3) somewhere else doesnt invoke
an error? Do I have to set more options or is it something else ?
and it seems that it is not able to detect some errors in my
code. For example writing a function k_0(a,b) as k_0 or making an array too small, i.e. declaring an array of dimension 2 while
calling the value of array(3) somewhere else doesnt invoke
an error? Do I have to set more options or is it something else ?
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you had k_0(a,b) and k_0 in the same subroutine, there should be an error. Otherwise, you might get checking by defining k_0 as a CONTAINS or MODULE function, or providing an INTERFACE block.
There are possibilities going way back in Fortran about accessing a multiple dimension array with a single subscript, which might give your mistake a standard meaning.
There are possibilities going way back in Fortran about accessing a multiple dimension array with a single subscript, which might give your mistake a standard meaning.

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