                velocity=.20;
                viscosity=.15;

   public final void calcValues() {
                
               int i,j; 

                for(i=0;i<width ;i++){
                for(j=0;j<height;j++){
                        sum[i][j]=now[i][j]-viscosity * old[i][j];
                }
                }
                for(i=1;i<width-1 ;i++){
                for(j=1;j<height-1;j++){
                        laplacian[i][j]=  sum[i-1][j]-2*sum[i][j  ] +
                                          sum[i+1][j]+  sum[i][j-1] -
                                        2*sum[i  ][j]+  sum[i][j+1];
                }
                }
                for(i=1;i<width-1 ;i++){
                for(j=1;j<height-1;j++){
                        neww[i][j]=-old[i][j]+2*now[i][j]+velocity*
                                          laplacian[i][j];
                }
                }
        }


        public final void resetArrays(){                

                int i,j;

                for(i=0;i<width;i++){
                for(j=0;j<height;j++){
                        old[i][j]=now[i][j];
                }
                }
                
                for(i=0;i<width;i++){
                for(j=0;j<height;j++){
                        now[i][j]=neww[i][j];
                }
                }
                for(i=0;i<width;i++){
                for(j=0;j<height;j++){
                        neww[i][j]=0;
                }
                }
