Skip to content

slow flopy.plot.PlotMapView.plot_array #1117

@wkitlasten

Description

@wkitlasten

Updated to flopy version 3.3.4 and existing calls that took seconds are now taking minutes. Admittedly my grid is large, and the method works find for smaller grids, but thought it might be worth mentioning.

A quick example with 10 million cells that takes over 10 minutes to generate the plot (which is longer than the model run and only took a couple seconds with 3.3.3):

sim = flopy.mf6.MFSimulation(sim_name='big_grid',exe_name="mf6",
                             version="mf6",sim_ws='big_grid')
tdis = flopy.mf6.ModflowTdis(sim,pname="tdis",time_units="DAYS",
                             nper=1,perioddata=[1.0,1,1.0])

gwf = flopy.mf6.ModflowGwf(sim, modelname='big_grid')
dis = flopy.mf6.ModflowGwfdis(gwf,nlay=1,nrow=1000,ncol=10000,delr=1,delc=1,top=10,botm=0)
pmv=flopy.plot.PlotMapView(modelgrid=gwf.modelgrid)
pmv.plot_array(dis.top.array)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions