EconPapers    
Economics at your fingertips  
 

A General Approach to Creating Fortran Interface for C++ Application Libraries

Yang Wang (), Raghurama Reddy, Roberto Gomez, Junwoo Lim, Sergiu Sanielevici, Jaideep Ray, James Sutherland and Jackie Chen
Additional contact information
Yang Wang: Carnegie Mellon University, Pittsburgh Supercomputing Center
Raghurama Reddy: Carnegie Mellon University, Pittsburgh Supercomputing Center
Roberto Gomez: Carnegie Mellon University, Pittsburgh Supercomputing Center
Junwoo Lim: Carnegie Mellon University, Pittsburgh Supercomputing Center
Sergiu Sanielevici: Carnegie Mellon University, Pittsburgh Supercomputing Center
Jaideep Ray: Sandia National Laboratories
James Sutherland: Sandia National Laboratories
Jackie Chen: Sandia National Laboratories

A chapter in Current Trends in High Performance Computing and Its Applications, 2005, pp 145-154 from Springer

Abstract: Summary Incorporating various specialty libraries in different programming languages (FORTRAN and C/C++) with the main body of the source code remains a major challenge for developing scientific and engineering application software packages. The main difficulty originates from the fact that Fortran 90/95 pointers and C/C++ pointers are structurally different. In this paper, we present a technique that allows us to circumvent this difficulty without using any nonstandard features of these programming languages. This technique has helped us to develop a FORTRAN 90/95 interface for the GrACE library, which is written in C++ for facilitating spacial grid generation, adaptive mesh refinement, and load balance maintenance. The method outlined in this presentation provides a general guideline for the creation of the FORTRAN 90/95 interface for a C/C++ library. We show that this method is system independent and has low overhead cost, and can be easily extended to situations where building the C/C++ interface for a FORTRAN 90/95 application library is required.

Keywords: FORTRAN; C/C++; pointers; inter-language calling; interface (search for similar items in EconPapers)
Date: 2005
References: Add references at CitEc
Citations:

There are no downloads for this item, see the EconPapers FAQ for hints about obtaining it.

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:spr:sprchp:978-3-540-27912-9_14

Ordering information: This item can be ordered from
http://www.springer.com/9783540279129

DOI: 10.1007/3-540-27912-1_14

Access Statistics for this chapter

More chapters in Springer Books from Springer
Bibliographic data for series maintained by Sonal Shukla () and Springer Nature Abstracting and Indexing ().

 
Page updated 2026-07-12
Handle: RePEc:spr:sprchp:978-3-540-27912-9_14