Giter Club home page Giter Club logo

pico_fortran's Introduction

Contributors Commits Stargazers Issues Apache-2.0 License

PICO_Fortran

This is a Fortran implementation of the Potsdam Ice-shelf Cavity mOdel (PICO) from Reese et al. 2018.

Dependencies

The implementation is dependent on a NetCDF library to be installed with a Fortran compiler, with the Fortran bindings for NetCDF. PICO_Fortran also depends on the ncio library that is resolved automatically with FPM (see below).

Test case

Currently implemented with a test case from the ISOMIP data.

Original data found in: https://gmd.copernicus.org/articles/9/2471/2016/gmd-9-2471-2016.html and included from https://doi.org/10.5880/PIK.2016.002 into the data directory of PICO_Fortran. Please refer to the original source when using. License of the dataset: CC BY-SA 4.0

FPM

PICO_Fortran is packaged for the Fortran Package Manager, using a toml description file. Currently the build and app/run are functional.

Since there are external dependencies, you need to specify where they lies if they are not in your standard path. For example, setting the following environnement variables for the NetCDF libraries:

export NETCDF_CFLAGS=""
export NETCDF_FFLAGS="-I/usr/include"
export FPM_FFLAGS="${NETCDF_CFLAGS} ${NETCDF_FFLAGS}"

export NETCDF_CLIBS="" 
export NETCDF_FLIBS="-L/usr/lib/x86_64-linux-gnu"
export FPM_LDFLAGS="${NETCDF_CLIBS} ${NETCDF_FLIBS}"

Then you can run the build with fpm:

fpm build

With successful built, you can run the standard example:

fpm run

pico_fortran's People

Contributors

dmr-dj 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.