From: Stephen R. <ste...@an...> - 2011-06-29 22:14:12
|
Hi Cailan, You need to first have MPI installed. THen we use pypar as the interface between mpi and python, available from http://sourceforge.net/projects/pypar/ Should make sure the pypar examples work (and is in your python path) In the anuga_parallel directory there is a subdirectory pymetis. You can use the make file to compile. Should create a metis.so file in the directory. Test using test_all.py Now go back to the anuga_parallel and run test_all.py Hopefully that all works. Then run run_parallel_sw_merimbula.py There are some choices in the script to use a small mesh, and a somewhat larger mesh (one has a 100 triangle the other 10000) Run that script using a command like mpirun -np 4 python run_parallel_sw_merimbula.py That should run on 4 processors You should look at the code in run_parallel_sw_merimbula.py Essentially a fairly standard example, with the extra command domain= distribute(domain) which sets up all the parallel stuff. Also for efficiency reasons we only setup the original sequential mesh on processor 0, hence the statement if myid == 0: domain = create_domain_from_file(mesh_filename) domain.set_quantity('stage', Set_Stage(x0, x1, 2.0)) else: domain = None Hope that helps. The output will be an sww file associated to each processor. Somewhere someone has created a script to combine these sww files into one file. Will have to search for that. Hope this helps Steve On 30/06/2011 5:08 AM, Cailan Halliday wrote: > Hello ANUGA users, > > I am wondering if anyone has put together an installation guide for > compiling the parallel version of ANUGA for non-Ubuntu work stations? > I know my way around the Linux terminal but am no expert. Is anyone > running ANUGA on something like Red Hat? > > I did find a document created in 2006: > http://anuga.anu.edu.au/browser/trunk/anuga_core/source/anuga_parallel/documentation > It has some information on parallel, is this document current? Are > there more recent benchmarks for the parallel version of ANUGA and how > do I install ANUGA on a non-ubuntu system? Is it as simple as running > compile_all.py? The current installation guide only has quick install > instructions for Ubuntu. > > Thanks so much, > Cailan Halliday > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > > > _______________________________________________ > Anuga-user mailing list > Anu...@li... > https://lists.sourceforge.net/lists/listinfo/anuga-user -- +--------------------------------------------------------------------+ | Steve Roberts | My Office: (61)(2) 6125 4445 | | Department of Mathematics | Math Office: (61)(2) 6125 2908 | | Mathematical Sciences Institute| Fax: (61)(2) 6125 4984 | | John Dedman Building #27 |mailto:ste...@an... | | Australian National University |http://www.maths.anu.edu.au/~steve| | Canberra ACT 0200 AUSTRALIA | ANU CRICOS # 00120C | +--------------------------------------------------------------------+ |