compiling new version in fortran
-
Jochen Weller
- Posts: 45
- Joined: September 24 2004
- Affiliation: Ludwig-Maximilians-University Munich
-
Contact:
Post
by Jochen Weller » February 28 2019
In the fortran version in the Makefile_main
it says:
Code: Select all
cp "$(DLL_DIR)/camblib.so "$(PYCAMB_OUTPUT_DIR)
This actually overwrites the camb executable with the camblib. Of course there are easy changes to be made to avoid this. (the quotes should not be there, but otherwise the Dollars are interpreted as commands here).
-
Antony Lewis
- Posts: 1944
- Joined: September 23 2004
- Affiliation: University of Sussex
-
Contact:
Post
by Antony Lewis » February 28 2019
It should only overwrite the library with the just-compiled library - was there a problem?
-
Jochen Weller
- Posts: 45
- Joined: September 24 2004
- Affiliation: Ludwig-Maximilians-University Munich
-
Contact:
Post
by Jochen Weller » March 06 2019
Yes there is a problem. When I do "make all" in the fortran directory there is no camblib.so file. Actually the "camb" executable is overwritten
by the "camblib.so" file.
This has to do with this line in the Make_main:
cp $(DLL_DIR)/camblib.so $(PYCAMB_OUTPUT_DIR)
which is above just set to
PYCAMB_OUTPUT_DIR ?= camb
and should possibly be
PYCAMB_OUTPUT_DIR ?= ../camb/
Does this make sense? This worked at least, when I tested it.