Skip to content

Commit

Permalink
bugfixes in plotscheck
Browse files Browse the repository at this point in the history
  • Loading branch information
hydrocoast committed Jul 20, 2020
1 parent b0e0b4c commit 0db748d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/plotscheck.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ function plotscheck(simdir::String, AMRlevel::AbstractVector{Int64}=empI; vartyp
# xlims, ylims
xlims, kwdict = VisClaw.parse_xlims(kwdict)
ylims, kwdict = VisClaw.parse_ylims(kwdict)
if xlims == nothing; xlims_load = (-Inf,Inf); end
if ylims == nothing; ylims_load = (-Inf,Inf); end

## make a list
isdir(simdir) || error("Not found: directory $simdir")
Expand Down Expand Up @@ -64,7 +62,7 @@ function plotscheck(simdir::String, AMRlevel::AbstractVector{Int64}=empI; vartyp
if ( (i>nfile) || (i<1) ); println("Invalid number"); ex=1; continue; end

# load data
amrs = loadfunction(simdir, i; xlims=xlims_load, ylims=ylims_load, kwargs_load...)
amrs = loadfunction(simdir, i; xlims=xlims, ylims=ylims, kwargs_load...)

# draw figure
plt = VisClaw.plotsamr2d(amrs.amr[1], AMRlevel; xlims=xlims, ylims=ylims, kwdict...)
Expand Down

0 comments on commit 0db748d

Please sign in to comment.