Ignore:
Timestamp:
Jul 7, 2011, 10:23:57 AM (13 years ago)
Author:
steve
Message:

Just adding an install readme for anuga_parallel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga_parallel/INSTALL-README

    r8190 r8191  
    11
    2 
     2=========================
    33INSTALLING anuga_parallel
     4=========================
    45
    56MPI
     7===
    68
    7 First thing is to install MPI on your system. OPENMPI and MPICH2 are supported.
     9First thing, you need to install MPI on your system. OPENMPI and MPICH2
     10are supported by pypar (see below) so both should be ok.
    811
    912Make sure mpi works. You should be able to run a program in parallel.
     
    1619
    1720PYPAR
     21======
    1822
    19 We use pypar as the interface between mpi and python. THe most recent
     23We use pypar as the interface between mpi and python. The most recent
    2024version of PYPAR is available from
    2125
    2226http://code.google.com/p/pypar/
    2327
    24 There is an old version on sourceforge
    25 http://sourceforge.net/projects/pypar/
     28(There is an old version on sourceforge
     29http://sourceforge.net/projects/pypar/)
    2630
    27 Should make sure the pypar examples work (and that it is in your python path)
     31Install pypar following the instructions in hte download. Should be able
     32use standard python setup.py install
     33
     34Make sure the pypar examples work
    2835
    2936
    30 In the anuga_parallel directory there is a subdirectory pymetis. You can
    31 use the make file to compile. This should create a metis.so file in that
    32 directory. From the pymetis directory, test using test_all.py
     37PYMETIS
     38=======
    3339
    34 Now go back to the anuga_parallel directory and run test_all.py
     40In the anuga_parallel directory there is a subdirectory pymetis.
     41
     42Follow the instructions in README to install. Essentially just run make.
     43
     44From the pymetis directory, test using test_all.py
     45
     46ANUGA_PARALLEL
     47==============
     48
     49Should now be ready to run some parallel anuga code.
     50
     51Go back to the anuga_parallel directory and run test_all.py
    3552
    3653Hopefully that all works.
    3754
    38 Then run run_parallel_sw_merimbula.py
     55Run run_parallel_sw_merimbula.py
    3956
    40 There are some choices in the script to use a small mesh, and a somewhat
    41 larger mesh (the small one has 100 triangles the other 10000)
     57First just run it a sequential program.
    4258
    43 Run that script using a command like
     59Then try a parallel run using a command like
    4460
    4561mpirun -np 4 python run_parallel_sw_merimbula.py
     
    4965You should look at the code in  run_parallel_sw_merimbula.py
    5066
    51 Essentially a fairly standard example, with the extra command domain=
    52 distribute(domain)
     67Essentially a fairly standard example, with the extra command
     68
     69domain = distribute(domain)
    5370
    5471which sets up all the parallel stuff.
    5572
    56 Also for efficiency reasons we only setup the original sequential mesh
     73Also for efficiency reasons we only setup the original full sequential mesh
    5774on processor 0, hence the statement
    5875
     
    6481
    6582The output will be an sww file associated to each
    66 processor. Somewhere someone has created a script to combine these sww
    67 files into one file. Will have to search for that.
     83processor.
    6884
    69 Hope this helps
     85There is a script anuga/utilities/sww_merge.py which provides
     86a function to merge sww files into one sww file for viewing
     87with the anuga viewer.
Note: See TracChangeset for help on using the changeset viewer.