Skip to content

Max Columns of Data Issue #2419

Answered by langevin-usgs
tjfarnum asked this question in Q&A
Jan 16, 2025 · 3 comments · 2 replies
Discussion options

You must be logged in to vote

I poked around a bit and got it to work. All seems fine if you create the simulation from scratch, but if you load an existing model, then it behaves a little differently. The following works for me:

Create a simulation and write it.

import numpy as np
import flopy
ncol = 10
nrow = 10
k = np.random.random((nrow, ncol))
ws = './mymodel'
name = 'mymodel'
sim = flopy.mf6.MFSimulation(sim_name=name, sim_ws=ws, exe_name='mf6')
tdis = flopy.mf6.ModflowTdis(sim)
ims = flopy.mf6.ModflowIms(sim)
gwf = flopy.mf6.ModflowGwf(sim, modelname=name, save_flows=True)
dis = flopy.mf6.ModflowGwfdis(gwf, nrow=10, ncol=10)
ic = flopy.mf6.ModflowGwfic(gwf)
npf = flopy.mf6.ModflowGwfnpf(gwf, k=k, save_specific_…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@tjfarnum
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@tjfarnum
Comment options

Answer selected by tjfarnum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants