Skip to main content
U.S. Department of Energy
Office of Scientific and Technical Information

Documenting automated Fortran-C++ bindings with SWIG

Technical Report ·
DOI:https://doi.org/10.2172/1557490· OSTI ID:1557490
 [1];  [2];  [1];  [1]
  1. Oak Ridge National Laboratory (ORNL), Oak Ridge, TN (United States)
  2. Oak Ridge National Laboratory (ORNL), Oak Ridge, TN (United States); Los Alamos National Laboratory (LANL), Los Alamos, NM (United States)

A new SWIG/Fortran tool introduced in Johnson et al. [to appear] automatically generates native Fortran2003 interfaces to C and C++ libraries. This allows a seamless integration of existing C++ libraries intothe Fortran applications. However, using the generated interfaces is complicated by the lack of appropriatedocumentation. In this report, we document a way to automatically port the existing Doxygendocumentation of the C++ libraries to Fortran. We use ForTrilinos library as our target application, anddiscuss the scope and limitations of this approach.

Research Organization:
Oak Ridge National Laboratory (ORNL), Oak Ridge, TN (United States)
Sponsoring Organization:
USDOE Office of Science (SC)
DOE Contract Number:
AC05-00OR22725
OSTI ID:
1557490
Report Number(s):
ORNL/TM--2019/1225
Country of Publication:
United States
Language:
English

Similar Records

Five years of ForTrilinos ECP
Technical Report · Mon Aug 01 00:00:00 EDT 2022 · OSTI ID:1909128

Automated Fortran–C++ Bindings for Large-Scale Scientific Applications
Journal Article · Tue Jun 25 00:00:00 EDT 2019 · Computing in Science and Engineering · OSTI ID:1649607

SWIG+Fortran User Manual
Technical Report · Wed Sep 01 00:00:00 EDT 2021 · OSTI ID:1833959

Related Subjects