nekStab / LightKrylov

Lightweight implementation of Krylov subspace techniques in Fortran.
BSD 3-Clause "New" or "Revised" License
18 stars 0 forks source link

Prefix module names with lightkrylov_ to avoid clash when used as deps for other packages. #40

Closed loiseaujc closed 8 months ago

loiseaujc commented 8 months ago

LightKrylov has a module named Utils. I've just started to work on LightROM and planned to have a module Utils as well but it leads to a clash when trying compile because all modules in Fortran are public. We need to conform to some Fortran standards of prefixing the "child" module name with the library name, e.g.

lightkrylov_utils

and

lightrom_utils

would not cause a collision when compiling. And fpm is very strict about that. Here are some examples of good practices we need to conform with.