You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ok, some further test show that also makefiles in the tests directory must be modified in the same way. I can do that if there is consensus.
Alternatively, we can modify the command line with a different name for the variable. This way we only change the top directory makefile.manual but the instructions must be modified accordingly. The change to the makefile is small:
And in the README.md we must change the name of the variable:
modified README.md
@@ -176,15 +176,15 @@ Alternatively, you can build using provided Makefiles:
make -f Makefile.manual
-You can limit the maximum rank by setting -DMAXRANK=<num> in the FYPPFLAGS environment variable (which can reduce the compilation time):
+You can limit the maximum rank by setting -DMAXRANK=<num> in the ADD_FYPPFLAGS environment variable (which can reduce the compilation time):
You can also specify the compiler and compiler-flags by setting the FC and FFLAGS environmental variables. Among other things, this facilitates use of compiler optimizations that are not specified in the Makefile.manual defaults.
When using a recent version of make: GNU Make 4.3 in linux.
Using the instructions:
make -f Makefile.manual FYPPFLAGS=-DMAXRANK=4
compilation fails because the variable FYPPFLAGS may not be modified after being set in the command line.
Details are given in override directive
A possible solution is to use a different variable name. I've solved it by making the following changes:
The text was updated successfully, but these errors were encountered: