PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Course

Fortran and C

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



Joined: 27 Aug 2008
Posts: 1

PostPosted: Wed Aug 27, 2008 1:44 am    Post subject: Fortran and C Reply with quote

Hi all,
I tried to write a program that uses C and Fortran code at the same time. I did everything as stated in the PGI user guide but unfortunately they don't say anything about accessing data from modules. So my question is how does the z of my example fortran module look in my c ode file (and which compiler flags do I need to use)?
Example module:

MODULE xy
INTEGER :: z
END MODULE

For ifort it works fine with int * xy_mp_z_. I also had a look at my object file with objdump but that does not give me any useful information.
I would really appreciate if someone could help me with that.
Thanks a lot
Bernhard
P.S.: I have to use pgf90 (pure fortrann 90 code)
Back to top
View user's profile
hongyon



Joined: 19 Jul 2004
Posts: 551

PostPosted: Thu Aug 28, 2008 10:08 am    Post subject: Reply with quote

Hi,

Sorry, we do not expose the data module naming convention at this time.

A work around is to use common block.

Hongyon
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