12.07.2015 Views

COPYRIGHT 2008, PRINCETON UNIVERSITY PRESS

COPYRIGHT 2008, PRINCETON UNIVERSITY PRESS

COPYRIGHT 2008, PRINCETON UNIVERSITY PRESS

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

an mpi tutorial 615✞/ / Code listing for MPIstring . c#include #include #include "mpi .h"#define maxt 10000 / / Number of time steps to take#define L 10000 / / Number of divisions of the string#define rho 0.01 / / Density per length (kg/m)#define ten 40.0 / / Tension (N)#define deltat 1.0e−4 // Delta t ( s )#define deltax .01 // Delta x (m)#define skip 50 / / Number of time steps to skip before printing/∗ Need sqrt (ten/rho)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!