1 Modeling the Shallow Water Equations with C and MPI LA-UR-07-6793 Approved for public release;...
-
Upload
amie-osborne -
Category
Documents
-
view
214 -
download
1
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.](https://reader036.fdocuments.in/reader036/viewer/2022083006/56649f355503460f94c53d8d/html5/thumbnails/1.jpg)
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.](https://reader036.fdocuments.in/reader036/viewer/2022083006/56649f355503460f94c53d8d/html5/thumbnails/2.jpg)
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.](https://reader036.fdocuments.in/reader036/viewer/2022083006/56649f355503460f94c53d8d/html5/thumbnails/3.jpg)
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.](https://reader036.fdocuments.in/reader036/viewer/2022083006/56649f355503460f94c53d8d/html5/thumbnails/4.jpg)
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