[mpich-discuss] Compiling shared libraries with Fortran	77	compiler and unexpected option
    Thomas Jahns 
    jahns at dkrz.de
       
    Wed Sep  7 12:09:14 CDT 2011
    
    
  
Hello Dave,
On 09/07/2011 04:47 PM, Dave Goodell wrote:
> The call to the fortran init routine happens in MPIR_Init_thread, which is a
> function that is called by both MPI_Init and MPI_Init_thread to actually do
> the work of initializing the MPI library.
> 
> I don't think you can separate the setbotf object from the main MPI library
> as you are attempting to do.  The MPI library must be able to obtain the
> addresses of the fortran common block variables or the Fortran bindings
> simply will not work correctly.
but obtaining the addresses can be emulated from C, cfortran.h[1] has this.
Regards, Thomas
[1] http://www-zeus.desy.de/~burow/cfortran/
iii) Using C to manipulate FORTRAN COMMON BLOCKS
-- 
Thomas Jahns
DKRZ GmbH, Department: Application software
Deutsches Klimarechenzentrum
Bundesstraße 45a
D-20146 Hamburg
Phone: +49-40-460094-151
Fax: +49-40-460094-270
Email: Thomas Jahns <jahns at dkrz.de>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5884 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20110907/fb9e3187/attachment.bin>
    
    
More information about the mpich-discuss
mailing list