Changeset 9614


Ignore:
Timestamp:
Feb 5, 2015, 4:17:25 PM (10 years ago)
Author:
steve
Message:

Changed setup.py to compile fortran okada code and moved test file to tests folder

Location:
trunk/anuga_core/anuga/tsunami_source
Files:
1 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/anuga/tsunami_source/setup.py

    r9569 r9614  
    1616    config.add_data_dir(join('tests','data'))
    1717
     18
     19    config.add_extension('okada_tsunami_fortran',
     20                         sources=['okada_tsunami_fortran.f'])
     21
    1822   
    1923    return config
  • trunk/anuga_core/anuga/tsunami_source/tests/test_okada_tsunami.py

    r9612 r9614  
    1010
    1111import anuga
    12 import okada_tsunami
     12import anuga.tsunami_source.okada_tsunami as okada_tsunami
    1313import numpy
    1414from anuga.utilities.system_tools import get_pathname_from_package
     
    378378        ## Now read the same event from an octave code, which is completely
    379379        ## independent of this one (i.e. they don't call okada's fortran)
    380         path=get_pathname_from_package('anuga.shallow_water')
     380        path=get_pathname_from_package('anuga.tsunami_source')
    381381        octave=numpy.genfromtxt(path+sep+'okada_tsunami_octave_95.txt')
    382382        octave_asvec=numpy.transpose(octave).reshape((1,101*101))
Note: See TracChangeset for help on using the changeset viewer.