Skip to content
Snippets Groups Projects
Commit 4edf3df5 authored by Emilie Marchandise's avatar Emilie Marchandise
Browse files

No commit message

No commit message
parent d14c50e4
No related branches found
No related tags found
No related merge requests found
...@@ -25,7 +25,7 @@ end ...@@ -25,7 +25,7 @@ end
--[[ --[[
Example of a lua program driving the DG code Example of a lua program driving the DG code
--]] --]]
sv
order = 1 order = 1
print'*** Loading the mesh and the model ***' print'*** Loading the mesh and the model ***'
myModel = GModel () myModel = GModel ()
...@@ -55,14 +55,12 @@ print'*** export ***' ...@@ -55,14 +55,12 @@ print'*** export ***'
DG:exportSolution('output/solution_0') DG:exportSolution('output/solution_0')
print'*** solve ***' print'*** solve ***'
CFL = 2.0;
LC = 0.1*.1 for i=1,1000 do
dt = .3*LC/(SOUND+V); dt = CFL * DG:computeInvSpectralRadius();
print('DT=',dt)
for i=1,10 do
norm = DG:RK44_limiter(0.1*dt) norm = DG:RK44_limiter(0.1*dt)
print('*** ITER ***',i,norm) print('*** ITER ***',i,dt, norm)
if (i % 1 == 0) then if (i % 1 == 0) then
DG:exportSolution(string.format("output/solution-%06d", i)) DG:exportSolution(string.format("output/solution-%06d", i))
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment