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

delwaq1.f: Fortran runtime error on line 548 (examples 06 and 10)

Riccardo Navarra, modified 2 Years ago.

delwaq1.f: Fortran runtime error on line 548 (examples 06 and 10)

Youngling Posts: 1 Join Date: 2/10/17 Recent Posts
Hi,
I've complied "successfully" delft3d on xenial 64bit. II got errors on delwaq examples. Others work fine.

The error on 06_delwaq and 10_delwaq-part-tracer is:

At line 548 of file delwaq1.f
Fortran runtime error: Inquire statement identifies an internal file

Any help will be appreciated.

RIccardo

**update**
About 06_delwaq I commented lines 548 549 551 in delwaq1.f:

!
! Close all open LUN files
!
do i = 1, nlun
!!!! inquire (unit=lun(i), opened=unitop)
!!!! if (unitop) then
close (unit = lun(i))
!!!! endif
end do

About 10_delwaq-part-tracer, now I got this error:

At line 136 of file rdpart.f90 (unit = 902)
Fortran runtime error: File already opened in another unit
Yahia Kala, modified 2 Years ago.

RE: delwaq1.f: Fortran runtime error on line 548 (examples 06 and 10)

Youngling Posts: 12 Join Date: 7/11/13 Recent Posts
I get the same error on Example 10. Everything else runs fine. I compiled tag 7545 on Ubuntu 16.04 64bit (which was an ordeal in itself).
MB
Mariana Bruning, modified 1 Year ago.

RE: delwaq1.f: Fortran runtime error on line 548 (examples 06 and 10)

Youngling Posts: 5 Join Date: 3/28/17 Recent Posts
I get the same error too.
Please any advice to solve it, will be very helpful.

Mariana
Michelle Jeuken, modified 1 Year ago.

RE: delwaq1.f: Fortran runtime error on line 548 (examples 06 and 10)

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

Sorry for the late reply to this, it in not on the standard Delwaq forum that I follow.

Both errors stem from the fact that apparently the compiler you are using is a bit more stringent on opening files that the ones we use. The first issue with delwaq1/ 06_delwaq was resolved in revision 7205. Apparently you are not allowed to inquire internal files. I added a catch for any error situations.

I'll have to look into the rdpart issue later.

Michelle
Michelle Jeuken, modified 1 Year ago.

RE: delwaq1.f: Fortran runtime error on line 548 (examples 06 and 10)

Jedi Knight Posts: 156 Join Date: 1/21/13 Recent Posts
As for the issue with example 10, I've committed a fix to revision 8067 for the rdpart code. However, the current trunk might not be stable. If you want to use the WAQ_PART combo, you can apply the fix to the latest tagged version.
MB
Mariana Bruning, modified 1 Year ago.

RE: delwaq1.f: Fortran runtime error on line 548 (examples 06 and 10)

Youngling Posts: 5 Join Date: 3/28/17 Recent Posts
Thank you Michelle,


However I still have doubts about the implementation of this new revisions.
Do I have to re-install Delft3D? If I have to, Where are the new folders? (https://svn.oss.deltares.nl/repos/delft3d/trunk/src/)?
If I don't need to re-install, Do I have to check any files and download them to my folders? Which ones of them?


Thank you,

Mariana.



EDIT...

I succesfully compiled Delft (again).
I used Revision 8114. Tag 7545 https://svn.oss.deltares.nl/repos/delft3d/tags/7545/. Although, I had to correct the path of mpi installation at the build.sh file (I installed Delft in Linux).

Now it runs del_waq properly.


Best regards.
Mariana
Michelle Jeuken, modified 1 Year ago.

RE: delwaq1.f: Fortran runtime error on line 548 (examples 06 and 10)

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

The fix is in only one file: https://svn.oss.deltares.nl/repos/delft3d/trunk/src/engines_gpl/part/packages/io_f/src/rdpart.f90. We are still reorganizing the way the executables are put into a tree, and the menu needs to be adapted for that. To use the old file structure, but include the fix for the issue with example 10, download the latest tagged version of the code:

https://svn.oss.deltares.nl/repos/delft3d/tags/7545

Patch (overwrite) the file src/engines_gpl/part/packages/io_f/src/rdpart.f90 with the latest version from the trunk here (log into the website with your svn credentials):

https://svn.oss.deltares.nl/repos/delft3d/trunk/src/engines_gpl/part/packages/io_f/src/rdpart.f90

And then build the code again.

Michelle