Welcome to WEAP's Website WEAP
WEAP is an initiative of the Stockholm Environment Institute.


About WEAP

Home
Why WEAP?
Features
What's New?
Sample Screens
Demonstration
Publications
History and Credits

Using WEAP
Download
Licensing
User Guide
Tutorial
Videos (YouTube)

User Forum
Discussions
Members List
Edit Profile

Additional Support
Training
University Courses
Collaboration

About Us
SEI-US Water Resources Program
Please Contact Us

LEAP
Interested in Energy?
Read about LEAP: SEI's software for energy planning.

Link WEAP and LEAP for combined Water-Energy planning.
Watch a video demo!
   

User Forum

All Topics | Topic "Issue when reading MODFLOW files from WEAP"
Log in to post new messages or reply to existing messages.
 
Author Message
Mr. Esteban Veliz

Subject: Issue when reading MODFLOW files from WEAP   
Posted: 3/18/2021 Viewed: 854 times
Hi everyone,

When I try to link the MODFLOW NWT files to WEAP, I get the following error:

Error reading MODFLOW Discretization file

Bad format--not a valid integer:" "

File: %%.dis
Line: 4
Position: 51
Contents: 0 50.00000 (10E20.12) 0

So basically there's a problem when reading the .dis file (so far). What is the problem with the format? I actually looked at the .dis format in the MODFLOW guidelines for input files and there seems to be nothing wrong.

Any ideas?

Kind regards,
Esteban
Mr. Sebastián Aedo

Subject: Re: Issue when reading MODFLOW files from WEAP   
Posted: 9/7/2021 Viewed: 25 times
Hi Esteban,

I've been through the same issue when using fixed format and fixed it by erasing the space between the real number (50.0000 in your case) and the format ( (10E12.4) in your case ). The same will happen with 1D or 2D arrays when you set IPRN = -1. I would suggest using free format to manually edit the packages.

It seems to be an issue on how WEAP read and rewrite the packages.

Regards,
Sebastián Aedo Q.
Topic "Issue when reading MODFLOW files from WEAP"