/* prog3e.c -- Burgers Equation using Lax Wendroff Method Written May 7, 2003 by Eric Olson for Mathematics 484 For information about the Lax Wendroff scheme used here see 6.7 in Hyperbolic Systems of Conservation Laws and the Mathematical Theory of Shock Waves by Peter Lax and chapter 8 in Numerical Analysis for Applied Mathematics Science and Engineering by Greenspan and Casulli. Information about Burgers equations may be found in chapter 14 in A First Course in the Numerical Analysis of Differential Equations by Iserles. */ #define N 256 #include #include double u[N],f[N],dx,dt; init(double u[N]){ int i; for(i=0;i1e7){ fprintf(stderr,"Blowup!\n"); exit(1); } } } return; } vectwr(double u[N],double t){ int i; printf("\n\n#At time %g...\n",t); for(i=0;i