intro story 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.




Sub groups
D-Flow Flexible Mesh

Cohesive sediments & muddy systems


Message Boards

Compiling Delft3d on OS X Yosemite successful but...

Yitping Kok, modified 3 Years ago.

Compiling Delft3d on OS X Yosemite successful but...

Youngling Posts: 2 Join Date: 11/6/17 Recent Posts
Hi all,

I followed this post and managed to successfully compile Delft3d on my OS X Yosemite (10.10.5) using necessary libraries I installed from MacPorts.

But when I test run the examples I have some runtime errors associated with date and time.

For example, when I run an example in example/01_standard (after modifying the paths in run_flow2d3d.sh), I got the following:

Deltares, FLOW2D3D Version, Nov 14 2017, 23:11:10
libflow2d3d.so entry Flow2D3D::Run

Part I - Initialisation Time Dep. Data module...
runid : f34
At line 92 of file vermdf.f90
Fortran runtime error: Bad value during integer read

The run generated 2 files before terminating,
td-diag.f34 and

The date and time in td-diag.f34 was bad (has unprintable ^@ characters, see below).

*** Deltares, FLOW2D3D Version, Nov 14 2017, 23:11:10
*** built from : https://svn.oss.deltares.nl/repos/delft3d/tags/7545
*** runid : f34
*** date,time : 2017-1^@-^@1,^@^@^@:21:07

I suspect this has to do with some differences in c/c++ time structures between Linux and OS X.
This is not surprising when I look again in the config.log file. In OS X, the -lrt library is not available and hence produced an error in the configuration stage.

Here's a snippet from my config.log.
configure:25486: checking for clock_gettime in -lrt
configure:25519: gcc-mp-7 -o conftest -O2 -I/opt/local/include -L/opt/local/li
ld: library not found for -lrt
collect2: error: ld returned 1 exit status

Can someone point me to some suspected parts of the code where this can be fixed?

Thanks very much for your attention and help.