/* Commandline execution: * civl verify laplace.cvl */ int TIME_BOUND = 2; #define nx 3 // number of x coordinates (including boundary) #define ny 3 // number of rows including boundary double epsilon = 0.01; // total error tolerance $input double initialValues[ny][nx]; // initial values $output int t; $output double out[ny][nx]; double grid[ny][nx]; // holds values of current iteration double square(double x) { return x * x; } void init() { for (int row=0; row=0; row--) for (int col=0; col= epsilon && time < TIME_BOUND) { error = 0.0; for (int row=1; row