Fortran-Package-Manager compatiblity #41
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello!
I've restructured the structure (it's a minimal change) to add compatibility with the Fortran-Package-Manager (fpm: https://fpm.fortran-lang.org/en/index.html)
With the package manager installed in the system, an user can now install packmol with just
fpm install --profile release
And this will automatically check dependencies order, compile and move the executable into ~/.local/bin, to make it accessible everywhere.
Optionally one could run:
fpm build
Compilers flag can be set with:
fpm build --flags "--flags-here"
And this will do the same thing, but move the executable (and compiled objects) into a
build
folder.I thought in adding this build instructions into the README but all the build instructions are on the website so I'm not sure if that would be correct.
All the metadata (authors, license, maintainer, etc) is set on the
fpm.toml
file, I've left those fields empty since I wasn't sure what to put there.I've tested against the original executable with the water example in the repo and I got the same results :)
Only bad side-effect: I had to delete the "data_types.f90" file since it can be compiled, but I didn't saw anywhere that it's contents were used.