GithubHelp home page GithubHelp logo

skphy / fortranutilities Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ecasglez/fortranutilities

0.0 0.0 0.0 1.89 MB

Useful functions for Fortran programs

Home Page: https://ecasglez.github.io/FortranUtilities/

License: MIT License

CMake 2.88% Fortran 93.45% C++ 3.67%

fortranutilities's Introduction

ecasglez's FortranUtilities is a collection of simple functions for Fortran programs I used during my PhD studies, organized in a library for easy use. It does not intend to be a replacement of the Fortran Standard Library (stdlib), because the stdlib has a much wider scope, but at the time I was at University stdlib did not exist.

Functions for strings, numbers, precision, statistics and files are included. See the specifications of the different functions here. More functions for different tasks will be included in the future.

This is a BETA version. All functions work properly on Linux using gfortran 7.5 or newer, and all functions except symlink functions work on Windows using gfortran 7.5 (MSYS2-Mingw-w64) or newer. More compilers will be tested in the future.

Download

The latest version of this library can be obtained from the GitHub repository located here.

Compilation

Compilation instructions are here.

A static and a shared library are created. Test programs for both libraries are created too.

Documentation

Documentation of the different functions is here.

Usage example

To use the library in your programs you first need to use the module of interest, as in the following example:

PROGRAM test
USE FU_Strings
WRITE(*,*) int2str(5)
END PROGRAM test

Then you have to link to the library when compiling. For example:

  1. To use the static library:

    gfortran program.f90 -o program -lFortranUtilitiesStatic -L/path/to/the/library/folder -I/path/to/include/folder -lstdc++
    
  2. To use the shared library:

    gfortran program.f90 -lFortranUtilities -L/path/to/the/library/folder -I/path/to/include/folder
    

Advanced examples are here.

Contact

Developed by Emilio Castro.

Create a Issue in GitHub if you have any suggestion, comment, enhancement, bug, etc.

License

These files are distributed under a MIT license. See LICENSE file for more information on using and distributing these files.

fortranutilities's People

Contributors

ecasglez avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.