diff --git a/camb/symbolic.py b/camb/symbolic.py index 9261e521..8e7b6181 100644 --- a/camb/symbolic.py +++ b/camb/symbolic.py @@ -690,7 +690,8 @@ def camb_fortran(expr, name='camb_function', frame='CDM', expand=False): res = res.expand() res = res.collect([Symbol(str(x.func)) for x in [k, sigma, opacity, visibility, dopacity, dvisibility, ddvisibility]]) - res = sympy.fcode(res, source_format='free', standard=95, assign_to=name, contract=False) + res = sympy.fcode(res, source_format='free', standard=95, assign_to=name, contract=False, + allow_unknown_functions=True) import textwrap if 'if ' not in res: