Ignore:
Timestamp:
Nov 5, 2008, 4:19:05 PM (16 years ago)
Author:
rwilson
Message:

Converted to full numpy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/utilities/compile.py

    r5138 r5891  
    1010   Ole Nielsen, Duncan Gray Oct 2001     
    1111"""     
     12
     13#NumPy ------------------------------------
     14# Something like these lines recommended in "Converting from NUMARRAY to NUMPY"
     15import numpy
     16numpyincludedirs = numpy.get_include()
     17I_dirs = '-I"%s" ' % numpyincludedirs
     18#NumPy ------------------------------------
    1219
    1320# FIXME (Ole): Although this script says it works with a range of compilers,
     
    255262    else:
    256263      if FN == "triangle.c" or FN == "mesh_engine_c_layer.c":
    257         s = '%s -c %s -I"%s" -I"%s" -o "%s.o" -O3 -DTRILIBRARY=1 -DNO_TIMER=1'\
    258             %(compiler, FN, python_include, utilities_include_dir, root)
     264#NumPy        s = '%s -c %s -I"%s" -I"%s" -o "%s.o" -O3 -DTRILIBRARY=1 -DNO_TIMER=1'\
     265        s = '%s -c %s %s -I"%s" -I"%s" -o "%s.o" -O3 -DTRILIBRARY=1 -DNO_TIMER=1'\
     266            %(compiler, FN, I_dirs, python_include, utilities_include_dir, root)
    259267      else:
    260         s = '%s -c %s -I"%s" -I"%s" -o "%s.o" -Wall -O3'\
    261             %(compiler, FN, python_include, utilities_include_dir, root)
     268#NumPy        s = '%s -c %s -I"%s" -I"%s" -o "%s.o" -Wall -O3'\
     269        s = '%s -c %s %s -I"%s" -I"%s" -o "%s.o" -Wall -O3'\
     270            %(compiler, FN, I_dirs, python_include, utilities_include_dir, root)
    262271
    263272    if os.name == 'posix' and os.uname()[4] == 'x86_64':
Note: See TracChangeset for help on using the changeset viewer.