From 937fdff2790f06e18f5fd28939b679a640833060 Mon Sep 17 00:00:00 2001 From: Jean-Francois Remacle <jean-francois.remacle@uclouvain.be> Date: Mon, 22 Mar 2010 14:41:20 +0000 Subject: [PATCH] --- Solver/TESTCASES/CylinderEddies.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Solver/TESTCASES/CylinderEddies.lua b/Solver/TESTCASES/CylinderEddies.lua index bd15cbcc7a..1d0eecb70c 100644 --- a/Solver/TESTCASES/CylinderEddies.lua +++ b/Solver/TESTCASES/CylinderEddies.lua @@ -20,7 +20,7 @@ end Example of a lua program driving the DG code --]] -order = 5 +order = 4 xyz = functionCoordinates.get() FS = functionLua(4, 'free_stream', {xyz}) @@ -54,19 +54,20 @@ DG:exportSolution('output/cyl_0') print'*** solve ***' -CFL = 5.1; +CFL = 4.2; dt = CFL * DG:computeInvSpectralRadius(); print('DT = ',dt) T = 0; +x = os.clock() for i=1,100000 do dt = CFL * DG:computeInvSpectralRadius(); norm = DG:RK44(dt) T = T + dt if (i % 10 == 0) then - print('*** ITER ***',i,norm,dt,T) + print('*** ITER ***',i,norm,dt,T,os.clock() - x) end if (i % 100 == 0) then - DG:exportSolution(string.format("output/cyl-%06d", i)) +-- DG:exportSolution(string.format("output/cyl-%06d", i)) -- DG:saveSolution(string.format("output/cyl-%06d.bin", i)) end end -- GitLab