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

Error Compiling Source Code 7545 on Windows

SB
Shantanu Vidyadhar Bhide, modified 1 Year ago.

Error Compiling Source Code 7545 on Windows

Youngling Posts: 10 Join Date: 8/31/18 Recent Posts

Dear All,

I am a student using Delft3D for the first time. I downloaded the source code package 7545, MS Visual Studio 2017 and Intel Parallel Studio XE 2018 which has the FORTRAN compiler IFORT 18. When I execute the python script prepare_sln.py, it pops up a window that lets me select the Visual Studio and IFORT version. I am unable to view IFORT18 as an option over there. Also when I select IFORT 17 or lower (i have tried all), it gives me an error (I am attaching a screenshot of what it actually says). Can someone help me figure out how to compile the source code? Thanks!

Adri Mourits, modified 1 Year ago.

RE: Error Compiling Source Code 7545 on Windows

Yoda Posts: 1224 Join Date: 1/3/11 Recent Posts

Hi Shantanu,

Try this version: https://svn.oss.deltares.nl/repos/delft3d/tags/delft3dfm/9180/

prepare_sln.py will have the IFORT18 option.

When you use this version for Delft3D4 computations (structured grids):

- This version did not pass all our tests. We are close to releasing a new version.

- The directory structure of the binaries differ compared to 7545 and older, and so do the example scripts to run computations. Do not try to add these kernels to Delft3D 4.03.99 or older. But you can prepare input with that old GUI and run it (outside the GUI) with the new kernels. We are close to releasing a new GUI version.

Regards,

Adri

SB
Shantanu Vidyadhar Bhide, modified 1 Year ago.

RE: Error Compiling Source Code 7545 on Windows

Youngling Posts: 10 Join Date: 8/31/18 Recent Posts

Hi Adri,

I tried the new version 9180 and it didn't give me an error after I run the prepare_sln.py file. I am attaching the screenshot of my window after I execute the file. After this, I followed instructions in the file 'README' wherein i built 'delft3d_open.sln' using Visual Studio 2017. That still gives me some errors. It'd be great if you can tell me the exact procedure on compiling/building the source code. Also, do I install files I received from the GUI package after I have successfully compiled the source code or before? Thanks!

Best,

Shantanu

Adri Mourits, modified 12 Months ago.

RE: Error Compiling Source Code 7545 on Windows

Yoda Posts: 1224 Join Date: 1/3/11 Recent Posts

Hi Shantanu,

When you have compiled the source code in VisualStudio, can you select the full contents of the window "output" in VisualStudio and attach that to a post on this forum?

I'm trying to get arranged that you receive a pre-release of the new version Delft3D4 4.04 as soon as possible.

Thanks.

Regards,

Adri

SB
Shantanu Vidyadhar Bhide, modified 12 Months ago.

RE: Error Compiling Source Code 7545 on Windows

Youngling Posts: 10 Join Date: 8/31/18 Recent Posts

Hi Adri,

Thank you for your reply. I am attaching a text file containing the full contents of the window "output" in VisualStudio when I rebuilt the solution. I am also attaching a snapshot of the errors that pop up on the screen. I hope this helps. Waiting for your feedback on the same. I was wondering if I should try compiling the software from the repository number 61839 instead of 9180? Do you think that would make a difference? 

Thanks!

Best Regards,

Shantanu   

Adri Mourits, modified 12 Months ago.

RE: Error Compiling Source Code 7545 on Windows

Yoda Posts: 1224 Join Date: 1/3/11 Recent Posts

Hi Shantanu,

I expect that the errors are solved when you start with a clean checkout of the code, or when you delete the destination directory "C:\delft3d_repository\9180\src\bin".

Even if they don't appear, I expect that you succeeded in compiling the code and that you can run the examples.

Regards,

Adri

SB
Shantanu Vidyadhar Bhide, modified 12 Months ago.

RE: Error Compiling Source Code 7545 on Windows

Youngling Posts: 10 Join Date: 8/31/18 Recent Posts

Hi Adri,

Thanks for your inputs. After I rebuilt the code, I was able to run all the examples. I created a test case for a flow model using the GUI available. When I start the Flow computation, I am getting an error message. I am attaching the snapshot below. When I checked, it does have the file "flow2d3d.dll" in the destination directory. Can you help me with this? Is this error because of the GUI version that I am using currently?

Best Regards,

Shantanu

Adri Mourits, modified 12 Months ago.

RE: Error Compiling Source Code 7545 on Windows

Yoda Posts: 1224 Join Date: 1/3/11 Recent Posts

Hi Shantanu,

 

Yes, you really need Delft3D GUI version 4.04, not released yet. I'll ask again to send you a pre-release.

You can run your computation using a run script: copy script "run.bat" from one of the examples to your own working directory. Open it in an editor. It calls a prepared runscript, available when you finished the compilation. Be sure that the path to that script is correct. The execute "run.bat".

Regards,

Adri

SB
Shantanu Vidyadhar Bhide, modified 12 Months ago.

RE: Error Compiling Source Code 7545 on Windows

Youngling Posts: 10 Join Date: 8/31/18 Recent Posts

Hi Adri,

Thank you for your help. I'll try executing my test cases using the script "run.bat". Waiting for the Delft3D GUI version 4.04. Is it possible for you to arrange so that I have it by next week or as early as possible. This would be a huge help and I'll be grateful if this happens. Thanks again!

Best Regards,

Shantanu

Adri Mourits, modified 12 Months ago.

RE: Error Compiling Source Code 7545 on Windows

Yoda Posts: 1224 Join Date: 1/3/11 Recent Posts

Hi Shantanu,

I'll forward your request, but it's outside my influence sphere.

Regards,

Adri

SB
Shantanu Vidyadhar Bhide, modified 11 Months ago.

RE: Error Compiling Source Code 7545 on Windows

Youngling Posts: 10 Join Date: 8/31/18 Recent Posts

Hi Adri, 

I would like to thank you for the new version of the GUI. I installed the new version and I am getting this error after I execute the test case. I also tried started with a new GUI and I got an error that says ''pcvthread2.dll'' is missing. I had also got this message but I downloaded the missing file from the internet and was able to fix that. Is that the reason I am not able to integrate the source code with the GUI? Because all the examples seem to run pretty well.

Thanks!

Best,

Shantanu

Adri Mourits, modified 11 Months ago.

RE: Error Compiling Source Code 7545 on Windows

Yoda Posts: 1224 Join Date: 1/3/11 Recent Posts

Hi Shantanu,

Library "pthreadVC2.dll" is located in another directory "c:\Program Files\Deltares\Delft3D 4.04.00\x64\share\bin". The GUI should be able to find it. I'll take care to have this bug fixed.

There seems to be an error in the set of input files that you prepared. That working folder should now contain a diagnosis file named "tri-diag.test", containing information about the error. Does that help you further?

Regards,

Adri

SB
Shantanu Vidyadhar Bhide, modified 11 Months ago.

RE: Error Compiling Source Code 7545 on Windows

Youngling Posts: 10 Join Date: 8/31/18 Recent Posts

Hi Adri,

The library "pthreadVC2.dll" is there in "c:\Program Files\Deltares\Delft3D 4.04.00\x64\share\bin". However I need to copy them into "C:\Program Files\Deltares\Delft3D 4.04.00\x64\dflow2d3d\bin" for ''d_hydro.exe" to locate them, otherwise it says the file is missing. 

To be honest this is my first time using delft3D and I agree I might have some errors in my input files. I do have the diagnosis file "tri-diag.test". I did copy the files into the GUI directory and now I think the source code seems to be integrated with the GUI. I will try running some simulations over the next couple of days. I just wanted to know is there any way to make sure whether the error with file "d_hydro.exe" is taken care of? 

Thank you!

Best,

Shantanu

Adri Mourits, modified 11 Months ago.

RE: Error Compiling Source Code 7545 on Windows

Yoda Posts: 1224 Join Date: 1/3/11 Recent Posts

Hi Shantanu,

That subdirectory "share/bin" is produced when compiling the kernels. Did you copy that into the GUI directory?

Regards,

Adri

Adri Mourits, modified 11 Months ago.

RE: Error Compiling Source Code 7545 on Windows

Yoda Posts: 1224 Join Date: 1/3/11 Recent Posts

Hi Shantanu,

That sounds like a bug in the GUI. Thanks for reporting, we'll fix it. You "solved" it by copying "pthreadVC2.dll"; the executable "d_hydro.exe" starts without problems so you can focus on the computational model.

The tri-diag-file indicates that you switched on astronomical boundary conditions but the input is not complete/valid. Did you use the Delft3D4-FLOW GUI to create the input? The GUI should detect these kind of errors. If the GUI does not help you further, please have a look at section "4.5.6.1 Flow boundary conditions" in the "Delft3D-FLOW_User_Manual.pdf".

Regards,

Adri