Skip to content

getting error while running my modflow model #1550

Answered by jlarsen-usgs
zargol7419 asked this question in Q&A
Discussion options

You must be logged in to vote

The reason that it is crashing is that your call signiture is incorrect. From the run_model documentation:

exe_name : str
        Executable name (with path, if necessary) to run.
namefile : str
        Namefile of model to run. The namefile must be the
        filename of the namefile without the path. Namefile can be None
        to allow programs that do not require a control file (name file)
        to be passed as a command line argument.
model_ws : str
        Path to the location of the namefile. (default is the
        current working directory - './')

psuedocode example:

success, buff = flopy.run_model(
    namefile="mynamefile.nam", 
    exe_name="path/to/my/modflow.exe", 
    m…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zargol7419
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