Page 1 of 1

compiling new version in fortran

Posted: February 28 2019
by Jochen Weller
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).

Re: compiling new version in fortran

Posted: February 28 2019
by Antony Lewis
It should only overwrite the library with the just-compiled library - was there a problem?

Re: compiling new version in fortran

Posted: March 06 2019
by Jochen Weller
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.

Re: compiling new version in fortran

Posted: March 06 2019
by Antony Lewis
Looks right, thanks!