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

ISO_Fortran_binding_m v0.1.0

Software ·
DOI:https://doi.org/10.11578/dc.20240806.1· OSTI ID:code-139199 · Code ID:139199
 [1];  [1]
  1. Lawrence Berkeley National Laboratory (LBNL), Berkeley, CA (United States)
The Fortran programming language standard defines a broad feature set supporting the interoperability of Fortran programs with program written according to the C programming language standard. Among Fortran's C-interoperability features is a a C header file "ISO_Fortran_binding.h" This header file defines the interface to various C data structures and functions that C programs may use to access Fortran data entities. The ISO_Fortran_binding_m software defines a native Fortran module that presents an interface to these same data structures and functions. ISO_Fortran_bind_m thus enables Fortran programs to access and manipulate Fortran entities in ways that precisely mirror what C programs can do using ISO_Fortran_binding.h. ISO_Fortran_binding_m facilitates writing portable standard-conforming Fortran programs that emulate non-interoperable features, e.g., dynamic polymorphism, in a standard-conforming interoperable way similar but broader than what is demonstrated in Berkeley Lab's Caffeine software [1]. ISO_Fortran_binding_m also enables a Fortran programmer to extend Fortran's capabilities to emulate certain C functionality such as memory address arithmetic or computing C's "sizeof" function. [1] https://github.com/BerkeleyLab/caffeine/blob/213e3df1c319f0663306354414f352acda42a24f/src/caffeine/collective_subroutines/co_reduce_s.f90#L88 [2] https://github.com/BerkeleyLab/ISO_Fortran_binding_m/blob/0c585362bb4f2c72cf9049c800a7115b529ec533/src/iso_fortran_binding_m.F90#L196
Site Accession Number:
2024-140
Software Type:
Scientific
License(s):
BSD 3-clause "New" or "Revised" License
Research Organization:
Lawrence Berkeley National Laboratory (LBNL), Berkeley, CA (United States)
Sponsoring Organization:
USDOE

Primary Award/Contract Number:
AC02-05CH11231
DOE Contract Number:
AC02-05CH11231
Code ID:
139199
OSTI ID:
code-139199
Country of Origin:
United States

Similar Records

Inference-Engine v0.1.0
Software · Wed Nov 02 20:00:00 EDT 2022 · OSTI ID:code-109794

CHASM : Static Analysis and Automatic Code Generation for Improved Fortran 90 and C++ Interoperability /
Conference · Sun Dec 31 23:00:00 EST 2000 · OSTI ID:975726

Caffeine v0.1.0
Software · Tue Dec 21 19:00:00 EST 2021 · OSTI ID:code-110782

Related Subjects