PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

FORTRAN MERGE WORKAROUND

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
TerryC



Joined: 08 Oct 2004
Posts: 4

PostPosted: Mon Aug 06, 2007 8:29 am    Post subject: FORTRAN MERGE WORKAROUND Reply with quote

The executable built by the PGI version 6.2-3 FORTRAN 90 compiler for Windows XP64 fails to work correctly [even for the -g option] if the array argument is of type "character". It's probably an incorrect alignment of the character array. If other users need a temporary workaround, they can use "ichar()" to upcast the input character array. This increases dynamically the memory required by a factor of four, but corrects the merge trouble.

Before: mask = merge( mask, char(0), y_array.gt.-9500.)
After: mask = char( merge( ichar(mask), 0, y_array.gt.-9500.))

-Terry
Back to top
View user's profile
mkcolg



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

PostPosted: Mon Aug 06, 2007 4:15 pm    Post subject: Reply with quote

Hi Terry,

Have you reported this problem to PGI Customer Support? trs@pgroup.com

- Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling 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