-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replacing a module in Makefile doesn't always work as expected #99
Comments
Moreover, when I reverted back to the original |
this might explain why my i*8 recompilation didn’t work properly. In the end i delete all *mod files - if I can find them all - and keep trying. modules still don’t work right. — Marsha On Feb 22, 2016, at 1:16 AM, Randall J. LeVeque [email protected] wrote:
|
@malchera has been having issues with this as well but I am not sure he's using the new makefiles. |
I am currently not able to reproduce the problem but what I do as a workaround is to delete all object files and module files within $CLAW along with a make new. |
I have been exploring options to fix this today and have made the following observations regarding modules and compilation:
I am still thinking about where this leaves us. |
BTW, I noticed that there are mistakes in the |
Another problem I discovered with the new Makefile system: if you replace a module with a local version, e.g. via:
where the local version has a different value of
max1d
, for example, and then domake new
, this module will get compiled after the other modules listed inMakefile.amr_2d
whereas it is supposed to be compiled first because other modulesuse
this one.Actually I think it's worse than that -- the other modules when compiled will use
src/2d/amr_module.mod
rather than the local version unless the other modules are also copied to the local directory and also added to theMakefile
.This suggests we shouldn't allow changing library modules in the
Makefile
in this manner, although the user could still add additional local modules that aren't replacing those in the library and that can be compiled after the library versions.The text was updated successfully, but these errors were encountered: