From 8b503c8fd9bf632373372cca05dea953fea4b6f5 Mon Sep 17 00:00:00 2001 From: YingboMa Date: Mon, 25 Jul 2016 12:10:31 -0400 Subject: [PATCH] Add .gitignore and avoid deprecated warnings https://github.com/JuliaLang/julia/issues/10290 --- src/.gitignore | 6 ++++++ src/radau.jl | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 src/.gitignore diff --git a/src/.gitignore b/src/.gitignore new file mode 100644 index 000000000..b41158662 --- /dev/null +++ b/src/.gitignore @@ -0,0 +1,6 @@ +### Julia ### +*.jl.cov +*.jl.*.cov +*.jl.mem +*.ipynb_checkpoints +deps/deps.jl diff --git a/src/radau.jl b/src/radau.jl index a9d282441..de1466426 100644 --- a/src/radau.jl +++ b/src/radau.jl @@ -221,8 +221,8 @@ function trialstep!(st) ## Matrices used for one round of iteration Ginv = inv(G) - @compat Ginv_block = Array{Float64,2}[Ginv[i*dof + [1:dof], j*dof+[1:dof]] for i = 0:stageNum-1, j= 0:stageNum-1] - @compat AoplusI_block = Array{Float64,2}[btab.a[i,j]*I_N for i=1:stageNum, j=1:stageNum] + Ginv_block = Array{Float64,2}[Ginv[i*dof + [1:dof;], j*dof+[1:dof;]] for i = 0:stageNum-1, j= 0:stageNum-1] + AoplusI_block = Array{Float64,2}[btab.a[i,j]*I_N for i=1:stageNum, j=1:stageNum] iterate = true count = 0