Replies: 4 comments 7 replies
-
Apologies for the spam, I was wondering if anyone has any input on this? The project is meant, among other things, to introduce FPM as a tool to research groups across Imperial College London and ideally I would like it to demo the full strength of FPM. |
Beta Was this translation helpful? Give feedback.
-
The module duplicate check is global at the moment, any module file name currently has to be unique. This constraint is however only required when dealing with libraries, but not when dealing with separate executables or tests. Lines 221 to 222 in 3045817 Since we store source files with their packages we currently lack the resolution to identify whether a module is provided as part of a program or the library itself. |
Beta Was this translation helpful? Give feedback.
-
An alternative approach might be to structure your project using local dependencies: name = "ex"
[dependencies]
solutions.path = "Solutions/1a" And provide in the respective subdirectores manifest files like name = "solutions"
library.source-dir = "." |
Beta Was this translation helpful? Give feedback.
-
For our teaching course here we provide first only online resources which should be copied (https://qc2-teaching.readthedocs.io/en/latest/programming.html) and later a single source archive which cleanly builds for the students to add source to (https://qc2-teaching.readthedocs.io/en/latest/scf.html). We have of course solutions, for the first part of the course even checked into the repo, but we don't explicitly share any of those with the students. |
Beta Was this translation helpful? Give feedback.
-
I have a project geared towards teaching computational neutronics and ideally I would like to use fpm across the entire project.
The project follows mostly the traditional
fpm
dir structure, with the exception of thesolutions
directory which contains solutionsto a series of exercises. The "solutions" are modified versions of certain files under
src
and/or themain.F90
The way that this works is that during compilation we include the .mod files under the solution instead of the ones under
src
. In CMake this looks something like thisWhich leads me to my question, any ideas on how to do this with
fpm
?Full
fpm.toml
can be found below in case it helpsClick to view fpm.toml
Beta Was this translation helpful? Give feedback.
All reactions