Changeset 8752
- Timestamp:
- Mar 12, 2013, 11:36:44 AM (12 years ago)
- Location:
- trunk/anuga_core/source/anuga
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/fit_interpolate/fitsmooth.c
r8709 r8752 879 879 #else 880 880 quad_tree * quadtree = (quad_tree*) PyCObject_AsVoidPtr(tree); 881 #endif ;881 #endif 882 882 883 883 // Return the number of elements in the tree (stored in struct) -
trunk/anuga_core/source/anuga/fit_interpolate/p_test.c
r4656 r8752 36 36 /* =========== that's all the easy stuff than can be changed ============ */ 37 37 38 #include <string.h> 38 39 #include <stdio.h> 39 40 #include <stdlib.h> -
trunk/anuga_core/source/anuga/utilities/compile.py
r8708 r8752 43 43 separation_line = '---------------------------------------' 44 44 45 def compile(FNs=None, CC=None, LD = None, SFLAG = None, verbose = 1):45 def compile(FNs=None, CC=None, LD = None, SFLAG = None, verbose = 0, all_warnings = False): 46 46 """compile(FNs=None, CC=None, LD = None, SFLAG = None): 47 47 … … 183 183 184 184 # Verify that compiler can be executed 185 print 'Compiler: %s, version ' %compiler, 186 sys.stdout.flush() 187 s = '%s -dumpversion' %(compiler) 188 err = os.system(s) 189 print 185 if verbose: 186 print 'Compiler: %s, version ' %compiler, 187 sys.stdout.flush() 188 s = '%s -dumpversion' %(compiler) 189 err = os.system(s) 190 print 191 else: 192 s = '%s -dumpversion > /dev/null' %(compiler) 193 err = os.system(s) 190 194 191 195 if err != 0: … … 276 280 # -O3 -g 277 281 if utilities_include_dir is None: 278 s = '%s -c %s -I"%s" -o "%s.o" - Wall -O3'\282 s = '%s -c %s -I"%s" -o "%s.o" -O3'\ 279 283 %(compiler, FN, python_include, root) 280 284 else: … … 284 288 elif FN == "polygon_ext.c": 285 289 # gcc 4.3.x is problematic with this file if '-O3' is used 286 s = '%s -c %s %s -I"%s" -I"%s" -o "%s.o" -Wall'\290 s = '%s -c %s %s -I"%s" -I"%s" -o "%s.o"'\ 287 291 %(compiler, FN, I_dirs, python_include, utilities_include_dir, root) 288 292 else: 289 s = '%s -c %s %s -I"%s" -I"%s" -o "%s.o" - Wall -O3'\293 s = '%s -c %s %s -I"%s" -I"%s" -o "%s.o" -O3'\ 290 294 %(compiler, FN, I_dirs, python_include, utilities_include_dir, root) 295 296 if all_warnings: 297 s += ' -Wall' 291 298 292 299 if os.name == 'posix' and os.uname()[4] in ['x86_64', 'ia64']: -
trunk/anuga_core/source/anuga/utilities/quad_tree.h
r8691 r8752 11 11 #include <stdlib.h> /* atoi, malloc */ 12 12 #include <string.h> /* strcpy */ 13 #include <math.h> 13 14 14 15 #ifndef quad_tree_H -
trunk/anuga_core/source/anuga/utilities/quad_tree_ext.c
r8710 r8752 11 11 #include "quad_tree.h" 12 12 13 // PYVERSION273 used to check python version for use of PyCapsule 14 #if PY_MAJOR_VERSION>=2 && PY_MINOR_VERSION>=7 && PY_MICRO_VERSION>=3 15 #define PYVERSION273 16 #endif 13 17 14 18 -
trunk/anuga_core/source/anuga/utilities/sparse_matrix_ext.c
r8711 r8752 78 78 79 79 val = PyFloat_AS_DOUBLE(py_val); 80 printf("val: % d\n",val);80 printf("val: %f\n",val); 81 81 82 82 i = (int) PyInt_AS_LONG(PyTuple_GET_ITEM(py_key,0));
Note: See TracChangeset
for help on using the changeset viewer.