Search NASASearch

DOE OSTI · code-134689

FLIT: A Generic Fortran Library based on Interfaces and Templates

Abstract

This Fortran code consists of multiple modules with a focus on simplifying array operations, image processing, and numerical computation especially for computational geophysics applications. We intend to use this code to demonstrate the application and usefulness of Fortran interface and templates for generic programming, especially for computational geophysics and seismology applications. The code has several notable features. Firstly, it is based on a modularized structure, where each module contains multiple functions but with a focus of functionality. Secondly, it heavily uses interfaces and templates for improving the genericness and convenience of the resulting code, where a same function interface can enclose a group of functions that perform the same functionality but with inputs/output variables of different data types. Thirdly, it includes a variety of generic functions with an emphasis on array operations, such as rotation, flipping, cropping, padding, fast Fourier transform, Gaussian blurring, interpolation, and so on. We name this package FLIP – a generic Fortran Library based on Interfaces and Templates.

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Gao, Kai. 2024-06-27. FLIT: A Generic Fortran Library based on Interfaces and Templates. https://doi.org/10.11578/dc.20240712.14

Cite the original work for its findings. Save a collection to share your selection of sources.