40 likes | 172 Views
LA-UR-07-6793 Approved for public release; distribution is unlimited. Modeling the Shallow Water Equations with C and MPI. Bob Robey. Setup. The software is already setup on the computers
E N D
LA-UR-07-6793 Approved for public release; distribution is unlimited Modeling the Shallow Water Equations with C and MPI Bob Robey
Setup • The software is already setup on the computers • For setup on home computers, there are two parts. First download the files from the Supercomputing Challenge website for the lab in C/MPI if you haven’t already done that. • Untar the lab files with “tar –xzvf C_MPI_Wave_Lab.tgz”
Setting up System Software Need Java, OpenMPI and MPE package from MPICH Download and install according to instructions in openmpi_setup.sh Can install in user’s directory with some modifications Setting up User’s workspace Download eclipse software including eclipse, PTP and PLDT Install according to instructions in eclipse_setup.sh Import wave source files and setup eclipse according to instructions in eclipse_setup.sh Setting up Software
Lab Exercises • Change initial conditions to two colliding waves with a height of 4 at each end declining to 2 at the quarter points. • Change the number of cells in the x direction and observe the impact on the solution • Try running 1, 2, or 4 processes and time the runs. Note that you can run 4 processes even if you are on a one processor system. • Switch to PTP debug perspective and try stepping through the program