1 Modeling the Shallow Water Equations with C and MPI LA-UR-07-6793 Approved for public release;...

4
1 Modeling the Shallow Modeling the Shallow Water Equations with C Water Equations with C and MPI and MPI LA-UR-07-6793 Approved for public release; distribution is unlimited Bob Robey Bob Robey

Transcript of 1 Modeling the Shallow Water Equations with C and MPI LA-UR-07-6793 Approved for public release;...

Page 1: 1 Modeling the Shallow Water Equations with C and MPI LA-UR-07-6793 Approved for public release; distribution is unlimited Bob Robey.

11

Modeling the Shallow Water Modeling the Shallow Water Equations with C and MPIEquations with C and MPI

LA-UR-07-6793Approved for public release;distribution is unlimited

Bob RobeyBob Robey

Page 2: 1 Modeling the Shallow Water Equations with C and MPI LA-UR-07-6793 Approved for public release; distribution is unlimited Bob Robey.

22

SetupSetup

• 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”

Page 3: 1 Modeling the Shallow Water Equations with C and MPI LA-UR-07-6793 Approved for public release; distribution is unlimited Bob Robey.

33

Setting up SoftwareSetting up Software

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

Page 4: 1 Modeling the Shallow Water Equations with C and MPI LA-UR-07-6793 Approved for public release; distribution is unlimited Bob Robey.

44

Lab ExercisesLab 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