File tree 4 files changed +18
-10
lines changed
4 files changed +18
-10
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ index 6e8d822..af9cedc 100644
7
7
SFFLAGS = -shared -fPIC
8
8
9
9
- FFLAGS = -O3 -fopenmp -ffast-math -fmax-errors=4
10
- + FFLAGS = -O3 -fopenmp -fmax-errors=4
10
+ + FFLAGS = -O3 -fopenmp -fmax-errors=4 ${EXTRA_FFLAGS}
11
11
DEBUGFLAGS = -cpp -g -fbounds-check -fbacktrace -ffree-line-length-none -fmax-errors=4 -ffpe-trap=invalid,overflow,zero
12
12
MODOUT = -J$(OUTPUT_DIR)
13
13
SMODOUT = -J$(DLL_DIR)
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- make camb
3
+ EXTRA_FFLAGS=-ffast-math make camb
4
+
5
+ make clean
4
6
5
7
cd pycamb
6
8
python setup.py build
Original file line number Diff line number Diff line change 24
24
requirements :
25
25
build :
26
26
- {{ compiler('c') }}
27
- - {{ compiler('cxx') }}
28
27
- {{ compiler('fortran') }}
29
28
- git
30
29
- make
@@ -37,11 +36,9 @@ outputs:
37
36
script : install-pycamb.sh
38
37
requirements :
39
38
build :
39
+ # these are needed to convince conda-build to pin the requirements
40
40
- {{ compiler('c') }}
41
- - {{ compiler('cxx') }}
42
41
- {{ compiler('fortran') }}
43
- - git
44
- - make
45
42
host :
46
43
- python
47
44
- pip
@@ -67,11 +64,9 @@ outputs:
67
64
script : install-camb.sh
68
65
requirements :
69
66
build :
67
+ # these are needed to convince conda-build to pin the requirements
70
68
- {{ compiler('c') }}
71
- - {{ compiler('cxx') }}
72
69
- {{ compiler('fortran') }}
73
- - git
74
- - make
75
70
test :
76
71
files :
77
72
- params.ini
@@ -80,7 +75,8 @@ outputs:
80
75
81
76
about :
82
77
home : https://camb.info/
83
- license : LGPL
78
+ license : modified LGPL
79
+ license_family : LGPL
84
80
license_file : {{ RECIPE_DIR }}/LICENSE
85
81
summary : Code for Anisotropies in the Microwave Background
86
82
description : |
Original file line number Diff line number Diff line change 1
1
#!/use/bin/env python
2
+
3
+ # check that we are not linking fast-math from fortran
4
+ str_num_before = str (1e-323 )
5
+ print ("before import:" , str_num_before )
6
+
2
7
import camb
3
8
9
+ str_num_after = str (1e-323 )
10
+ print ("after import:" , str_num_after )
11
+
12
+ assert str_num_before == str_num_after
13
+
4
14
# run the code
5
15
pars = camb .CAMBparams ()
6
16
pars .set_cosmology (
You can’t perform that action at this time.
0 commit comments