- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi everyone,
I'ma writing a code about diffusion. It is veru sensible to fortran precision. I men negative value (taht I do not want) star from -1.e-60 and than rise ud to 1.e2.
I compile in double precision. Hos is possible that the program can handle so negative errors, Can I set them to zero when I compile.
Really really thanks
Link Copied
6 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The option, -fpe1 will turn on underflow to zero rather than allowing gradual underflow. Any value that is too small to be represented precisely in double precision will be rounded down to 0. Is something like this what you are looking for?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yes is that the things that I want to know. However I got the same error.
Do you know a forum where to talk about numerical scheme problem?
thanks a lot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We do not have a forum specifically for numerical scheme problems.
This white paper may be useful to you though.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There are several articles on the -fp-model and related articles: I've attached a white paper to this post. Also see:
https://secure-software.intel.com/sites/default/files/article/326703/fp-control-2012-08.pdf
http://software.intel.com/en-us/articles/consistency-of-floating-point-results-using-the-intel-compiler/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
diedro wrote:Try changing your parameters and literals from "e" to "d". Example, change -1.e-60 to -1.d-60 "e" defaults to REAL(4) Jim Dempseyhi everyone,
I'ma writing a code about diffusion. It is veru sensible to fortran precision. I men negative value (taht I do not want) star from -1.e-60 and than rise ud to 1.e2.
I compile in double precision. Hos is possible that the program can handle so negative errors, Can I set them to zero when I compile.
Really really thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In case the implication of changing from a single to a double precision constant isn't evident, the smallest magnitude non-zero single precision numbers are TINY(1.)*EPSILON(1.) when gradual underflow is enabled, and TINY(1.) in the case of abrupt underflow (ifort option -ftz). In either case, 1.e-60 is the same as 0. (except possibly in some contexts of -mia32)

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