Changeset 9665


Ignore:
Timestamp:
Feb 11, 2015, 3:26:44 PM (10 years ago)
Author:
steve
Message:

Checkedtha that anuga works on linux

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/anuga/__init__.py

    r9664 r9665  
    7979    import os
    8080    if sys.platform == 'win32':
    81                 MinGW = False
    82                 import subprocess
    83                 try:
    84                         output = subprocess.check_output('gcc -dumpmachine', shell=True)
    85                         MinGW = 'mingw' in output
    86                 except Exception as e:
    87                         pass           
    88                
     81        MinGW = False
     82        import subprocess
     83        try:
     84            output = subprocess.check_output('gcc -dumpmachine', shell=True)
     85            MinGW = 'mingw' in output
     86        except Exception as e:
     87            pass
     88       
    8989        if not MinGW:
    9090            (folder, tail) = os.path.split(__file__)
  • trunk/anuga_core/anuga/setup.py

    r9664 r9665  
    3434    config.add_subpackage('validation_utilities')
    3535   
    36     config.add_data_dir('runtime_libs')
     36    if sys.platform == 'win32':
     37        config.add_data_dir('runtime_libs')
    3738   
    3839    try:
  • trunk/anuga_core/setup.cfg

    r9664 r9665  
    1212
    1313
    14 [pip]
    15 compiler=mingw32
     14#[pip]
     15#compiler=mingw32
    1616
    17 [build]
    18 compiler=mingw32
     17#[build]
     18#compiler=mingw32
    1919
  • trunk/anuga_core/setup.py

    r9664 r9665  
    167167    # monkey patch distutils to use Microsoft VC++ for Python on win32
    168168    if sys.platform == 'win32':
    169                 print('win32')
    170                 import setuptools
     169        print('win32')
     170        import setuptools
    171171
    172172    setup_package()
  • trunk/anuga_user_manual/source/anuga_user_manual.tex

    r9405 r9665  
    287287
    288288What follows is a discussion of the structure and operation of a
    289 script called \file{runup.py} (which is available in the \file{demos} directory
    290 of \file{anuga_core}.
     289script called \file{runup.py} (which is available in the \file{examples}
     290directory of \file{anuga_core}.
    291291
    292292This example carries out the solution of the shallow-water wave
     
    344344
    345345\label{ref:runup_py_code}
    346 \verbatiminputunderscore{../../anuga_core/demos/runup.py}
     346\verbatiminputunderscore{../../anuga_core/examples/runup.py}
    347347
    348348
     
    731731Here is the code for the first version of the channel flow \file{channel1.py}:
    732732
    733 \verbatiminputunderscore{demos/channel1.py}
     733\verbatiminputunderscore{../../anuga_core/examples/channel1.py}
    734734
    735735In discussing the details of this example, we follow the outline
     
    738738\subsection{Establishing the Mesh}\index{mesh, establishing}
    739739
    740 In this example we use a similar simple structured triangular mesh as in \file{runup.py}
     740In this example we use a similar simple structured triangular mesh
     741as in \file{runup.py}
    741742for simplicity, but this time we will use a symmetric one and also
    742743change the physical extent of the domain. The assignment:
     
    848849Here is the code for the third version of the channel flow \file{channel3.py}:
    849850
    850 \verbatiminputunderscore{demos/channel3.py}
     851\verbatiminputunderscore{../../anuga_core/examples/channel3.py}
    851852
    852853This example differs from the first two versions in that the topography
     
    933934Here is the code for \file{runcairns.py}:
    934935
    935 \verbatiminputunderscore{../../anuga_core/demos/cairns/runcairns.py}
     936\verbatiminputunderscore{../../anuga_core/examples/cairns/runcairns.py}
    936937
    937938In discussing the details of this example, we follow the outline
     
    994995\file{project.py}:
    995996
    996 \verbatiminputunderscore{../../anuga_core/demos/cairns/project.py}
     997\verbatiminputunderscore{../../anuga_core/examples/cairns/project.py}
    997998
    998999Figure \ref{fig:cairns3d} illustrates the landscape of the region
     
    12571258\file{ExportResults.py} demonstrates how this function can be used:
    12581259
    1259 \verbatiminputunderscore{demos/cairns/ExportResults.py}
     1260\verbatiminputunderscore{../../anuga_core/examples/cairns/ExportResults.py}
    12601261
    12611262The script generates a maximum water depth ASCII grid at a defined
     
    13121313the gauges shown in Figure \ref{fig:cairnsgauges} is \file{gauges.csv}:
    13131314
    1314 \verbatiminputunderscore{demos/cairns/gauges.csv}
     1315\verbatiminputunderscore{../../anuga_core/examples/cairns/gauges.csv}
    13151316
    13161317Header information has been included to identify the location in terms of eastings and
     
    13221323of the standard \code{anuga} release, however it can be downloaded and installed from \code{http://matplotlib.sourceforge.net/}
    13231324
    1324 \verbatiminputunderscore{demos/cairns/GetTimeseries.py}
     1325\verbatiminputunderscore{../../anuga_core/examples/cairns/GetTimeseries.py}
    13251326
    13261327Here, the time series for the quantities stage, depth and speed will be generated for
  • trunk/anuga_user_manual/source/update_anuga_user_manual.py

    r9402 r9665  
    115115
    116116system('cp *.pdf ../')
    117 system('mv *.pdf ../anuga_core/user_manual')
     117system('mv *.pdf ../../anuga_core/user_manual')
    118118
    119119print 'Cleanup aux tex files'
Note: See TracChangeset for help on using the changeset viewer.