CESR-lab / ucla-roms

GNU General Public License v3.0
3 stars 8 forks source link

Flexible makefiles #18

Open dafyddstephenson opened 2 months ago

dafyddstephenson commented 2 months ago

Hi again! This PR comes from our use of ROMS on multiple machines (I think I'm up to 6 now...), each with their own idiosyncrasies. I've overhauled Makedefs.inc and made changes to the other Makefiles so that they are more flexible, without losing any of the existing functionality. The makefiles should now be machine-independent, and options can now be directly invoked without modifying the files, e.g. make COMPILER=gnu BUILD_MODE=debug.

As always, happy to incorporate any feedback.

Here's a list of what I've done:

In Makedefs.inc :

I've tested it on a few machines and it works as expected, let me know your thoughts! Thanks Dafydd

matt-long commented 1 month ago

Is this moving forward?

nmolem commented 1 month ago

I prefer a minimalist approach here with for instance different makedef.inc files for different machines. In general, I would like more communication ahead of time before pull requests are made for the ucla-roms repo.