Skip to content

lanl/flit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


FLIT: A Generic Fortran Library based on Interfaces and Templates

FLIT is a generic Fortran library mainly for

  • Single- and multi-dimensional array manipulation
  • Flexible parameter reading from text files or command-line arguments
  • Signal and image filtering and processing
  • Integral transforms
  • Interpolation
  • Statistical functions
  • etc.

We provide user-friendly interfaces for similar functionality across different data types, attempting to demonstrate the possibility of accelerating scientific application development using modern Fortran. FLIT may be useful for developing applications in computational physics, computational seismology, applied geophysics, signal and image processing, and related fields.

This work is supported by Los Alamos National Laboratory's (LANL's) Laboratory Directed Research and Development (LDRD) project 20240322ER. LANL is operated by Triad National Security, LLC, for the National Nuclear Security Administration (NNSA) of the U.S. Department of Energy (DOE) under Contract No. 89233218CNA000001. This research used high-performance computing resources provided by LANL's Institutional Computing program.

This work is approved for public release by LANL's Feynman Center for Innovation (FCI) under reference #O4767.

Requirements

  • Platform: Linux
  • Compiler: Intel's oneAPI HPC Toolkit, including ifx, mpiifx, icx, and icpx; other Fortran compilers (e.g., gfortran) are not supported at this time.
  • (Optional) HDF5

Use

The user can use test_install.sh to install FLIT and its dependencies and set the relevant environment variables. The compiled FLIT files will be in lib, including module/submodule files and a single static library file, libflit.a.

To run examples:

cd test
bash test.sh

The Makefile in the test directory can serve as an example of how to use FLIT in your code, including include paths and linking the compiled library.

Third-party code is included in third_party. Please refer to third_party/README for details.

License

© 2024-2026. Triad National Security, LLC. All rights reserved.

This program is open source under the BSD-3 License.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

  • Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Documentation

Under development. Please refer to LA-UR-24-26315 for details.

Author

Kai Gao, kaigao@lanl.gov

We welcome feedback and bug reports.

If you use this package in your research and find it useful, please cite it as:

  • Kai Gao, Ting Chen, 2024, FLIT: A Generic Fortran Library based on Interfaces and Templates, URL: github.com/lanl/flit

About

FLIT: A Generic Fortran Library based on Interfaces and Templates

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages