- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I think I have a very simple question. I am trying to use a few intrinsic procedures in my
program (such as sin, cos, abs, etc.) and am wondering how to tell the compiler to include
these functions in my program?
So, for example, if I wanted to use the ABS function (Class: Elemental function; Generic) how
do I include this in my program?
Thanks in advance.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - seniorrojo
I am trying to use a few intrinsic procedures in my
program (such as sin, cos, abs, etc.) and am wondering how to tell the compiler to include
these functions in my program?
So, for example, if I wanted to use the ABS function (Class: Elemental function; Generic) how
do I include this in my program?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
To expand on Tim's reply - if the procedure is listed as an "intrinsic procedure", it's built in to the compiler and you need not do anything special to use it. Fortran also has "intrinsic modules", some of which contain procedures. These are documented separately (and actually, at this time, aren't documented at all in the Intel manuals - you'd have to read the F2003 standard for those.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - Steve Lionel (Intel)
To expand on Tim's reply - if the procedure is listed as an "intrinsic procedure", it's built in to the compiler and you need not do anything special to use it. Fortran also has "intrinsic modules", some of which contain procedures. These are documented separately (and actually, at this time, aren't documented at all in the Intel manuals - you'd have to read the F2003 standard for those.)
Hi Tim and Steve,
Thank you for your responses. In my haste to try a simple function in Fortran, I forgot
to assign it to a value. So instead of typing x=sin(3.14), I was simply typing sin(3.14) and
was receiving an error message. Sometimes it pays not to think in "Matlab" :-)
Thanks again for your assistance!
![](/skins/images/8B5EA638CA3587CA763EE9EF53643DD4/responsive_peak/images/icon_anonymous_message.png)
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