From a0f031f727b2c88f97f555b4ec450ba2abb5c816 Mon Sep 17 00:00:00 2001 From: Isaac Shoebottom Date: Mon, 3 Feb 2025 20:14:32 -0400 Subject: [PATCH] Finish up A1 --- Assignment/1/eikonal.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Assignment/1/eikonal.jl b/Assignment/1/eikonal.jl index 1ef7444..d52ccda 100644 --- a/Assignment/1/eikonal.jl +++ b/Assignment/1/eikonal.jl @@ -20,7 +20,7 @@ function solveEikonal(ni, nj, h, source, tol = 1E-6) maxerr = sweep!(U, 2, ni+1, 2, nj+1, F, h, maxerr) # South-East iters += 1 end - # U[2:ni+1, 2:nj+1] + println("$iters iterations, maxerr = $(Float64(maxerr))") U end @@ -97,7 +97,7 @@ function initialize!(F, U, ni, nj, source) end # Call on file "ex1.txt" with the following format: -display(solveEikonal(7, 7, 1, "ex1.txt")) +display(view(solveEikonal(7, 7, 1, "ex1.txt"), 2:8, 2:8)) # Call on file "test100.txt" with the following format: -heatmap(1:100, 1:100, solveEikonal(100, 100, 1, "test100.txt"), color=:gist_yarg) \ No newline at end of file +heatmap(solveEikonal(100, 100, 1, "test100.txt"), color=:gist_yarg) \ No newline at end of file