[galib] GALIB: calling from Fortran

Christian Samuel Perone christian_perone at yahoo.com.br
Tue Oct 4 07:07:26 EDT 2005


Hello Gabriel, take a look on
http://www.llnl.gov/CASC/components/babel.html,
I never used this interoperability tool, but may
help your interest, here is a compare with this
tool and swig (the most know interop. tool):
http://mailman.cs.uchicago.edu/pipermail/swig/2002-December/006429.html
--- Gabriel Oksa <Gabriel.Oksa at savba.sk> escreveu:

> Hello,
> 
> I have written my GA algorithm using GALIB and my
> functions MyInitializer,
> MyMutator, etc. Now I wish to call this C++ group of
> functions from the older
> program written Fortran, which uses also MPI and
> ScaLAPACK for parallel
> computation. The GA library was produce in the Linux
> environment using g++,
> v.3.5.
> 
> I am using GNU Fortran compiler gcc, v.3.5. The
> Fortran part uses g77 with the
> switch -ff90, the C++ part is compiled using gcc.
> Compilation and linking goes
> smoothly, but the executable code "hangs".
> Separately, both Fortran and C++
> oarts behave as expected, there seems to be no bug
> in them (although one never
> knows ...).
> 
> I suspect there might be some problems in the
> alignment of structures,
> enumerations, etc. between Fortran and C++. Maybe I
> need some switches and also
> re-built the GA library. 
> 
> Please, can anyone help? I need it URGENTLY!
> 
> Thank you in advance for your help.
> 
> Best regards,
> 
> Gabriel
> 
> -- 
> Dipl-Ing. Gabriel Oksa, PhD.
> Slovak Academy of Sciences
> Institute of Mathematics
> Department of Informatics
> Dubravska cesta 9
> Bratislava
> Slovakia
> 
> www.bsd.ifi.savba.sk/~gabo
> 
> _______________________________________________
> galib mailing list
> galib at mit.edu
> http://mailman.mit.edu/mailman/listinfo/galib
> 


--------------------------------------------------------
Christian S. Perone - christian_perone at yahoo.com.br
"Time is the substance from which I am made. Time is a
river which carries me along, but I am the river; it
is a tiger that devours me, but I am the tiger; it is
a fire that consumes me, but I am the fire."
- Jorge Luis Borges


	



	
		
_______________________________________________________ 
Novo Yahoo! Messenger com voz: ligações, Yahoo! Avatars, novos emoticons e muito mais. Instale agora! 
www.yahoo.com.br/messenger/


More information about the galib mailing list