CAMB with self-defined library

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Angela Chen
Posts: 24
Joined: January 11 2019
Affiliation: University of Michigan

CAMB with self-defined library

Post by Angela Chen » January 11 2019

Hi all, I'm modifying camb, and was confused by the makefile editing problems here (I'm not very familiar with makefiles). The background is that I need to use a special function in equations.f90. I found this function written in fortran77 and put into a self-defined library now (if there's any better way to link f77 to f90 please teach me). My question is, how do I edit makefile to let camb compile with my library?

Antony Lewis
Posts: 1941
Joined: September 23 2004
Affiliation: University of Sussex
Contact:

Re: CAMB with self-defined library

Post by Antony Lewis » January 11 2019

just add -l{LIBNAME} to F90CRLINK, and -L{LIBPATH} if needed.

Angela Chen
Posts: 24
Joined: January 11 2019
Affiliation: University of Michigan

Re: CAMB with self-defined library

Post by Angela Chen » January 12 2019

Antony Lewis wrote:
January 11 2019
just add -l{LIBNAME} to F90CRLINK, and -L{LIBPATH} if needed.
Thank you!

Post Reply