Solving Makefile Confusion for Fortran Code

  • Thread starter Thread starter Matterwave
  • Start date Start date
  • Tags Tags
    Confusion
Click For Summary
The discussion revolves around modifying a Fortran codebase with a complex Makefile to include a new module and a different linear algebra package. The user has successfully created a new module, "spincohere.f90," but is unsure how to properly update the Makefile to include it and ensure dependencies are correctly handled. There is confusion about the accessibility of existing modules within the new module and whether they need to be compiled separately. Participants suggest separating modules into their own files for clarity and emphasize the importance of correct syntax, particularly with whitespace in Makefiles. The conversation highlights the challenges of working with Makefiles, especially for those unfamiliar with their structure and requirements.
  • #31
Matterwave said:
Do you mean the whole code, or just the module spincohere?

The whole code is VERY long! I'd imagine it would take quite a while to actually go through. I never even went through it all in its entirety...@_@
Just spincohere.
 
Technology news on Phys.org
  • #32
DrClaude said:
Just spincohere.

I have messaged it to you. Thanks. :D
 
  • #33
Matterwave said:
I have messaged it to you. Thanks. :D
I had a look, and there is no problem there. I now realize that I misread something in the error message you posted, and it should've been clear to me that the error was not in your code.

I'll get back to you tomorrow.
 
  • #34
DrClaude said:
I had a look, and there is no problem there. I now realize that I misread something in the error message you posted, and it should've been clear to me that the error was not in your code.

I'll get back to you tomorrow.

Ok thanks!
 
  • #35
DrClaude said:
I had a look, and there is no problem there. I now realize that I misread something in the error message you posted, and it should've been clear to me that the error was not in your code.

I'll get back to you tomorrow.

I have figured it out! I needed to install liblapack-dev instead of just liblapack3 as well. Now my code runs! But now I have more questions, which, since it has nothing to do with this make file, I will now post in a separate thread.