PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Floating exception (core dumped)

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling
View previous topic :: View next topic  
Author Message
Ramin



Joined: 10 Feb 2006
Posts: 1

PostPosted: Fri Feb 10, 2006 8:01 am    Post subject: Floating exception (core dumped) Reply with quote

Hello everyone:

When I run my case, after the computation is over and it wants to write the output data into a file, something strength happens for very small numbers. For example when the number is 0.8363323E-211, what is written into the file is 0.8363323-211, no matter if you use free format or formatted write commend. It only happens when you have three digits after E. I wonder if you could let me know how I can fix the problem.

Thanks,
Ramin
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6141
Location: The Portland Group Inc.

PostPosted: Fri Feb 10, 2006 10:12 am    Post subject: Reply with quote

Hi Ramin,

The E edit descriptor by default prints 4 characters in the exponent field. When the exponent reaches 100, the 'E' must be removed to make room for the extra digit. To have the 'E' printed, you need to use the second form of the E descriptor, 'Ew.dEe' where you specify the number of exponent digits to print.
For example, using 'e15.7e3' will allow enough room for the 'E' to print.

Hope this helps,
Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group