Migration status

  • Home Page: Activity map.

intro story DELWAQ

DELWAQ

DELWAQ is the engine of the D-Water Quality and D-Ecology programmes of the Delft3D suite. It is based on a rich library from which relevant substances and processes can be selected to quickly put water and sediment quality models together.

The processes library covers many aspects of water quality and ecology, from basic tracers, dissolved oxygen, nutrients, organic matter, inorganic suspended matter, heavy metals, bacteria and organic micro-pollutants, to complex algae and macrophyte dynamics. High performance solvers enable the simulation of long periods, often required to capture the full cycles of the processes being modelled.

The finite volume approach underlying DELWAQ allows it to be coupled to both the structured grid hydrodynamics of the current Delft3D-FLOW engine and the upcoming D-Flow Flexible Mesh engine (1D-2D-3D) of the Delft3D Flexible Mesh Suite (or even other models such as TELEMAC).

'DELWAQ in open source' is our invitation to all leading experts to collaborate in further development and research in the field of water quality, ecology and morphology using Delft3D. Feel free to post your DELWAQ related questions or comments in this dedicated forum space. If you are new to DELWAQ, the tutorial (in the user manual) is a good place to start. A list of DELWAQ related publications is available here.

** PLEASE TAG YOUR POST! **

 

 

Sub groups
D-Flow Flexible Mesh
DELWAQ

Cohesive sediments & muddy systems

 


Message Boards

Stopped with error code: 1

NN
Nill Ng, modified 4 Years ago.

Stopped with error code: 1

Youngling Posts: 23 Join Date: 4/16/15 Recent Posts
Hi everyone,

I am doing a very simple decayable tracer simulation using domain decomposition method and encounter the "Stopped with error code: 1" message.
No error message is found in the corresponding .lst file.
And in the .lsp file (attached), it said, "Error: Local dimension to small for output variables / in input : 31075 maximum : 5000"

It seems the problem is associated with the settings of the boundary.
Previously I encounter the same error I managed to get away by changing the temporally-constant depth-varying boundary to temporally and depth-constant boundary. (This would not affect the results very much because the domain is massive.)
But the same trick does not work this time.
Did anyone encountered the same issue before and figure out the way to handle this?

Regards,
Nill

Attachments:

MJ
Michel Jeuken, modified 4 Years ago.

RE: Stopped with error code: 1

Jedi Knight Posts: 156 Join Date: 1/21/13 Recent Posts
Hi Nill,

You forgot to add the lsp-file, but from the lst I can see that you added a lot of statistical output to the model. That might be the reason you exceed the maximum number of parameters. For every statistical operation, delwaq adds statistical 'state variables' and 'processes' to keep track of the statistics.

I could find your exact error message, but I found max_number_parameters = 5000 in the code in run_processes, and a Local dimension to small for active processes in set_active, but that should be maximised by nbprm = 1750 ! max number of processes from dlwqp1.f. You might need to increas both of them and possibly novarm = 15000 ! max number of variables overall in dlwqp1 as well. Also expect to run into some of these hard coded number of process/parameter limits at other locations in the code.

Or you could try to reduce the amount of statistics (or switch it off), at least to see if that causes the problem.

Michel
NN
Nill Ng, modified 4 Years ago.

RE: Stopped with error code: 1

Youngling Posts: 23 Join Date: 4/16/15 Recent Posts
Michael,

Problem solved! You are so helpful.
It turns out there is something wrong with my .scn file.
Every time I saved the .scn file using the GUI, the statistics for two conservative tracers and one decayable tracer repeat.
After some tens of times of saving, the number of general statistics and depth-averages statistics grew enormous and caused this error.

Is there a general way that I could the troubleshooting myself?
Like some sort of technical manual where I can look up some parameters like those (i.e. nbprm) mentioned in your post?

Regards,
Nill
MJ
Michel Jeuken, modified 4 Years ago.

RE: Stopped with error code: 1

Jedi Knight Posts: 156 Join Date: 1/21/13 Recent Posts
Hi Nill,

Hm, that is strange behaviour I haven't see anywhere before. I guess you stt-file was expanded every time?

nbprm is one of the hard coded maxima in delwaq that no one who wrote the program in a distant past would think a normal user would run into. Only by accident, or a bug else where it seams. Some of these stem from the days that dynamic allocation of arrays was not possible in FORTRAN. So it is not actually a parameter, and not all those technical details and limitations are described in manuals. In such cases the only possible option is to do a search for the exact text of the message in the source code to have more understanding of the problem.

Michel
NN
Nill Ng, modified 4 Years ago.

RE: Stopped with error code: 1

Youngling Posts: 23 Join Date: 4/16/15 Recent Posts
Michel,

Yes the stt file expands everytime I saved in GUI.
Also I notice those conservative trace occurs two times under WAQ -> General -> Define Input -> (GUI) Output Option -> Options -> Select (Parameters to output?)
A screen capture is provided as attachment.
The substance file is also attached for your information.

Regards,
Nill
MJ
Michel Jeuken, modified 4 Years ago.

RE: Stopped with error code: 1

Jedi Knight Posts: 156 Join Date: 1/21/13 Recent Posts
Hi Nill,

This is because you included the conservative tracers as possible output in your sub file. Substances are available as output by default, so they needn't to be added to the file. It can be usefull to add parameters to the output to be able to inspect them and/or have them together in one file with your outputs.

The problem with the expanding statistics, we cannot reproduce that. Does it keep occurring? Is it with this sub-file?

Michel
NN
Nill Ng, modified 4 Years ago.

RE: Stopped with error code: 1

Youngling Posts: 23 Join Date: 4/16/15 Recent Posts
Michel,

Thanks for your information.
I removed the conservative tracers and decayable tracer from the output parameters list in both the .scn file and .sub file and then the expanding of statistics file stopped.
Problem solved.

Thanks again,
Nill