CAMB with self-defined library
-
- Posts: 24
- Joined: January 11 2019
- Affiliation: University of Michigan
CAMB with self-defined library
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?
-
- Posts: 1943
- Joined: September 23 2004
- Affiliation: University of Sussex
- Contact:
Re: CAMB with self-defined library
just add -l{LIBNAME} to F90CRLINK, and -L{LIBPATH} if needed.
-
- Posts: 24
- Joined: January 11 2019
- Affiliation: University of Michigan
Re: CAMB with self-defined library
Thank you!