I am going to run delwaq1 on one node of our cluster. In block-7 it
hase a problem and says that the size of .par file is not the
specified size. However, when I control the size of .par file,it is
exactly the required size. Could anybody tell me how can I solve this
error?Is it possible that delwaq1 reads the rounded size of .par file
and therefore shows this error?
The check is there to prevent a wrong parameters file to be
specified. As these files contain very little information, the only
check we can make is that the number of parameters together with the
number of segments matches the file size. The formula is:
number of bytes in the file must equal 4 * (number of parameters *
number of segments + 1)
The extra 1 is for the (dummy) time value. Could you show as:
- the number of parameters you use
- the number of segments in your model
- the actual size of the .par file (down to bytes, not something like
1.2 kB or the like)
- the version number (the whole bunch) of the program - that appears
in the screen if you run it.
Unless the file exceeds a size of 2 GB, there should be no problem at
all. And I think we made sure that even larger files are no particular
Hi Arjen, I think I send my questions in wrong Position:), then I
send them one time more.
1-The Delwaq Version is: - Deltares, DELWAQ Version 5.06.00.7936, Dec
19 2017, 16:26:09
2-The size of .par file is exactly the same as requested size in .lst
file (photos are attached)
3-I did delwaq1 also by GUI and run Delwaq2 using Cluster. It is
running but I got exotic Errors, the run-results of Delwaq2 using
Cluster is attached.
Hm, you write that you are running on a cluster. I suspect that the
program has difficulty retrieving the right file size from the
cluster. On ordinary disks it works fine, but I can imagine that this
fails with a set-up like yours. I have not encountered that problem
before. Unfortunately delwaq1 does not report what size it does see ...
The only way I can see this to work - or at least get beyond the
immediate problem - is to turn the error into a warning (and perhaps
report the perceived size as well). An alternative would be to try and
read the file as it would be done by delwaq2, as I guess reading is
less of a problem.
Do you compile the programs yourself from the open-source repository?
Hi Arjen, thanks much for your answer. Yes, I compile it from the
open-source repository. You mean that I modify the source-code in such
a way that this error changes to warning? or in an otherway I can
change the error to warning?
No, the only thing you need to do is update your source repository
and rebuild the programs. I already took care of the changes. DELWAQ1
will now also print the reported size of the file, so that we can see
how things are going wrong. As it is now merely a warning, the program
will continue to read everything and produce the work files required
for the actual calculation. (I would be interested in knowing that
Hi Arjen, thanks so much for the new version. Now Delwaq1 works fine :).
If you only want to remove the checking from your current version,
you can also comment out the call to check_file_size
in src/engines_gpl/waq/packages/waq_io/src/waq_io/read_block.f near