Fpm: Candidate packages to get working

Created on 15 Jan 2020  路  6Comments  路  Source: fortran-lang/fpm

Most helpful comment

I recall reading a comment once (might have been from @jacobwilliams) that "Netlib is where Fortran codes go to die".

Well I just resurrected the y12m package for sparse linear systems published all the way back in 1981!

In the documentation the library claims to use only standard Fortran features (at the time), and indeed - it builds with both gfortran (warnings about deprecated syntax) and Intel Fortran (no errors) straight out of the box! I thinks it's a great showcase of the strength of Fortran and also fpm. :+1:

One of the authors - Zahari Zlatev - is an established scientist in environmental modelling and sparse linear algebra. I presume the code was used in the Unified Danish Eulerian Model - an atmospheric model used to study transport of air pollutants.

Several more netlib packages are interesting candidates: http://www.netlib.org/liblist.html

Someone teaching a Fortran programming class (@awvwgk) chould give this as a homework assignment: each student who wants to pass should create the manifest and interface module for one Netlib package. The Intel Fortran compiler already knows how to automatically generate interface blocks. Then it is just a matter of aggregating them in a single interface module.

Maybe the maintainers of Netlib from University of Tennessee and Oak Ridge National Laboratory would also be willing to support such a modernization effort.

All 6 comments

I added nc4fortran and netcdf-fortran to the list.

I recall reading a comment once (might have been from @jacobwilliams) that "Netlib is where Fortran codes go to die".

Well I just resurrected the y12m package for sparse linear systems published all the way back in 1981!

In the documentation the library claims to use only standard Fortran features (at the time), and indeed - it builds with both gfortran (warnings about deprecated syntax) and Intel Fortran (no errors) straight out of the box! I thinks it's a great showcase of the strength of Fortran and also fpm. :+1:

One of the authors - Zahari Zlatev - is an established scientist in environmental modelling and sparse linear algebra. I presume the code was used in the Unified Danish Eulerian Model - an atmospheric model used to study transport of air pollutants.

Several more netlib packages are interesting candidates: http://www.netlib.org/liblist.html

Someone teaching a Fortran programming class (@awvwgk) chould give this as a homework assignment: each student who wants to pass should create the manifest and interface module for one Netlib package. The Intel Fortran compiler already knows how to automatically generate interface blocks. Then it is just a matter of aggregating them in a single interface module.

Maybe the maintainers of Netlib from University of Tennessee and Oak Ridge National Laboratory would also be willing to support such a modernization effort.

LINPACK now also works with fpm, even if superceded by LAPACK for modern usage.

Some of the available Netlib packages (still) depend on LINPACK, so an fpm package is the best way to fulfill these dependencies.

I think I might create a table to track which Netlib codes are already fpm-compatible. What do you think?

@ivan-pi yes!

We should setup some automatic tests to ensure things keep working when we upgrade fpm, such as after treating .f as free form, which would require to add a flag to fpm.toml.

This is exciting, I might actually start using some of these Fortran packages!

I think I might create a table to track which Netlib codes are already fpm-compatible. What do you think?

We already have a keywords and categories entry for the package manifest, netlib might qualify as category, if not then at least as keyword. The fpm registry could certainly help with indexing those projects.

I just created an issue #365 where we should discuss where to host such packages.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

everythingfunctional picture everythingfunctional  路  8Comments

awvwgk picture awvwgk  路  5Comments

certik picture certik  路  3Comments

epagone picture epagone  路  3Comments

awvwgk picture awvwgk  路  6Comments