intro story Coast / Estuary

Coast / Estuary

Coastal systems are among the most dynamic physical systems on earth and are subject to a large variety of forces. The morphodynamic changes occurring to coastlines worldwide are of great interest and importance. These changes occur as a result of the erosion of sediments, its subsequent transport as bed load or suspended load, and eventual deposition. 
 
Estuaries are partly enclosed water bodies that have an open connection to the coast. Estuaries generally have one or more branching channels, intertidal mudflats and/or salt marshes. Intertidal areas are of high ecological importance and trap sediments (sands, silts, clays and organic matter).
Within the Delft3D modelling package a large variation of coastal and estuarine physical and chemical processes can be simulated. These include waves, tidal propagation, wind- or wave-induced water level setup, flow induced by salinity or temperature gradients, sand and mud transport, water quality and changing bathymetry (morphology). Delft3D can also be used operationally e.g. storm, surge and algal bloom forecasting. 
 
On this discussion page you can post questions, research discussions or just share your experience about modelling coastal and/or estuarine systems with Delft3D FM. 
 

** PLEASE TAG YOUR POST! **

 

 

Sub groups
D-Flow Flexible Mesh
DELWAQ
Cohesive sediments & muddy systems

 

 

Message Boards

RE: Problems compiling with Visual Studio 2015 and Fortran Compiler 2016?

SW
Susan Wherry, modified 3 Years ago.

Problems compiling with Visual Studio 2015 and Fortran Compiler 2016?

Youngling Posts: 2 Join Date: 12/23/15 Recent Posts
Hi! I recently downloaded the source code for model versions 6.02.04.5656 and am having trouble compiling using Visual Studio 2015 and Intel Fortran compiler 2016, also I'm running Windows 7. I am aware that these versions are listed as "untested" in the Python script but I'm wondering if anyone else has successfully used those versions of software to compile or not, or if my problem is something else. Also, this is my first time working with Visual Studio, so I apologize if my questions or descriptions are naive. Basically, I download the source code and all my folders and projects showed a green check mark over the project file icons. When I run the Python script to prepare the solution file, I get red exclamation points over items that are .vcxproj files. When I try to build my solution, I'm getting error messages (error #11018) that several .lib object library files are missing and I can see that those folders are empty, so it seems there's a problem when processing the model project files with the Python script. A coworker who's more familiar with Visual Studio tried doing a little debug and was able to generate an object file library for one of the projects but I'm having some trouble getting that to work with all project files and don't know if I should even be trying that. So, if anyone has some helpful tips or guidance I would appreciate them.
Adri Mourits, modified 3 Years ago.

RE: Problems compiling with Visual Studio 2015 and Fortran Compiler 2016? (Answer)

Yoda Posts: 1221 Join Date: 1/3/11 Recent Posts
Hi Susan,

Someone else also tried to compile the source code with VS2015 and Ifort2016 and ran into problems. Unfortunately I'm not able to solve this now. But I did have a look at the build log as echoed in the output window of the other trial:
error #11018 is follow-up-damage. The problems start with:
src\utils_lgpl\deltares_common\packages\deltares_common_c\include\win32\pthread.h(307): error C2011: "timespec": "struct" NewTypeDefenition
If your coworker was able to solve this:
- Please post his changes that solved this. Then I will add that to the trunk (if it doesn't harm compilation using older versions).
- Please copy/paste the full contents of your ouput window inside VisualStudio into a text file and attach it to a post on this forum. Then I can have a look at the next problem you are running into.

Thanks in advance.

Regards,

Adri
SW
Susan Wherry, modified 3 Years ago.

RE: Problems compiling with Visual Studio 2015 and Fortran Compiler 2016?

Youngling Posts: 2 Join Date: 12/23/15 Recent Posts
Hi Adri,

Thank you for your response. With respect to the error output you included below, I was able to make a change that reduced the number of 11018 errors by adding 'HAVE_STRUCT_TIMESPEC' to the Preprocessor Definitions for all of the VC++ project files that are used in the deflt3d_open solution. This allowed the build to get farther along, however it did eventually fail. I'm attaching the output log from that latest run.

Thanks,
Susan
Adri Mourits, modified 3 Years ago.

RE: Problems compiling with Visual Studio 2015 and Fortran Compiler 2016? (Answer)

Yoda Posts: 1221 Join Date: 1/3/11 Recent Posts
Hi Susan,

Solving this is on my ToDo list, but will take at least two weeks. If you cannot wait, you have two options:
1. Switch to an older VisualStudio/Intel compiler. VS2013+Intel15.0 is known to work well.
2. Try to solve the compilation problem

In case you are willing to try to solve the problem, here are two tips from colleagues:
The problems occur in all version_number.cpp routines. The first one is: "...\src\utils_lgpl\nefis\packages\nefis\src\nefis_version.cpp"
It contains the line (for different configurations):
static char nefis_version [] = {nefis_major"."nefis_minor"."nefis_revision"."nefis_build" (Win64)"};


The first tip is to add spaces in the correct places:
static char nefis_version [] = {nefis_major "." nefis_minor "." nefis_revision "." nefis_build " (Win64)"};


The second tip is to use the std string module. Then this single line should be replaced by something like:
#include <string>
std::string nefis_version;
nefis_version.append(nefis_major);
nefis_version.append(".");
nefis_version.append(nefis_minor);
nefis_version.append(".");
nefis_version.append(nefis_revision);
nefis_version.append(".");
nefis_version.append(nefis_build);
nefis_version.append(" (Win64)");


Please let me know if you found a solution for this problem.

Thanks in advance.

Regards,

Adri
DB
Daniel Barone, modified 3 Years ago.

RE: Problems compiling with Visual Studio 2015 and Fortran Compiler 2016?

Youngling Posts: 4 Join Date: 12/2/15 Recent Posts
Hi Adri - Have you had a chance to look into this? I'm running into the same problem as Susan.

Thanks!

Dan
Adri Mourits, modified 3 Years ago.

RE: Problems compiling with Visual Studio 2015 and Fortran Compiler 2016?

Yoda Posts: 1221 Join Date: 1/3/11 Recent Posts
Hi Daniel,

No, I'm sorry.

I raised the priority and reserved February 11th to tackle this.

Regards,

Adri
Adri Mourits, modified 3 Years ago.

RE: Problems compiling with Visual Studio 2015 and Fortran Compiler 2016? (Answer)

Yoda Posts: 1221 Join Date: 1/3/11 Recent Posts
Hi Susan and Daniel,

Delft3D revision 5838 (and higher) compiles and runs using VisualStudio 2015 and Intel 16.0. This revision is currently only available in the trunk.

Be sure that the following two modules are installed in your VisualStudio (by default, they are not installed):
- "Common Tools for Visual C++ 2015"
- "Microsoft Foundation Classes for C++"

To install them after VisualStudio has been installed:
1. Windows Start
2. Control Panel
3. Programs (and Features)
4. Right-click on "Microsoft VisualStudio 2015" and select "change" or "modify"
5. A Window will pop-up in which you can select the specified modules and perform an update.

Regards,

Adri
DB
Daniel Barone, modified 3 Years ago.

RE: Problems compiling with Visual Studio 2015 and Fortran Compiler 2016?

Youngling Posts: 4 Join Date: 12/2/15 Recent Posts
Thank you Adri. I will download the latest trunk and try to compile. I will let you know if I run into any problems.
JU
Juan Urrego, modified 3 Years ago.

RE: Problems compiling with Visual Studio 2015 and Fortran Compiler 2016?

Youngling Posts: 6 Join Date: 2/19/16 Recent Posts
Dear Adri Mourits,

I was trying to download the version you mentioned (5838 version or a higher), but only came up to version 5740 (https://svn.oss.deltares.nl/repos/delft3d/tags/5740/). Would you mind post the url of the 5838 version or a higher one?

Thank you,
Juan Gabriel Urrego
Adri Mourits, modified 3 Years ago.

RE: Problems compiling with Visual Studio 2015 and Fortran Compiler 2016? (Answer)

Yoda Posts: 1221 Join Date: 1/3/11 Recent Posts
Hi Juan,

There is no fully tested version yet based on revision 5838 or higher, so you must use the trunk: https://svn.oss.deltares.nl/repos/delft3d/trunk/
If you "pin" the SVN checkout on revision 5838, it should compile and run. For serious calculations, I advice you to wait until the next fully tested version is available.

Regards,

Adri
JU
Juan Urrego, modified 3 Years ago.

RE: Problems compiling with Visual Studio 2015 and Fortran Compiler 2016?

Youngling Posts: 6 Join Date: 2/19/16 Recent Posts
Thank you for your consideration. I am going to take your advise.
Zhina Mohammed, modified 3 Years ago.

RE: Problems compiling with Visual Studio 2015 and Fortran Compiler 2016?

Youngling Posts: 23 Join Date: 12/14/15 Recent Posts
Hello Adri
I was trying to compile using visual studio 2015, and Fortran Compiler 2016, I tried tag version(5368, 5169, 4168), till I saw this post,
now,is there any tag version that can be compiled by visual studio 2015, and Fortran Compiler 2016? or I have to use the older version of Fortran and visual studio.

I just have this errors and I attached them.
when I first open the code , it said that the following projects should be changed to the higher version, or it will need the older version, I attached it.

Question2
I have another question, before, I was using old version 4.00.02,and I compiled a tag version that does not contain water quality, but now I upgraded it to "delft3d_ohmw_4.01.01.rc.03" and I copied win32 inside this file from the tag version I compiled , it gives me this error, is there is a way to fix this error, or I have to compile another one?
I saw in the pdf(install_ohmw_4.01.01.rc.03) this note which I think it may have relation with the error I have, but I did not know how to change this directory

"
Now you can start Delft3D-MENU by launching the file d3d_menu.bat. Delft3D uses the environment
variables D3D_HOME and ARCH, these two environment variable are set in the sub-shell
where Delft3D is running in when launching d3d_menu.bat.
If you need batch processing set manually the environment variable
D3D_HOME to c:\Deltares\Delft3D 4.01.01.rc.03 and ARCH to win32 "





Thank you so much for your help
Zhina
KL
K Liu, modified 3 Years ago.

RE: Problems compiling with Visual Studio 2015 and Fortran Compiler 2016?

Padawan Posts: 48 Join Date: 10/23/13 Recent Posts
Hi, Adri and Zhina,

Thank you for your information. I encountered errors similar to Zhina's, and I am using:

-- Microsoft Visual Studio Community 2015, with "Common Tools for Visual C++ 2015" and the "Microsoft Foundation Classes for C++"
-- IntelĀ® Parallel Studio XE 2016 Composer Edition for Fortran Windows
-- Delft3D version (tagged): 5740.

The errors are complaining about "can't find file", and most of them are about the libraries such as "\src\utils_lgpl\deltares_common\lib\Release\static\deltares_common.lib'" and "\D3D_src\src\utils_lgpl\nefis\lib\Release\static\nefis.lib".

I find some hint from the FAQ (http://oss.deltares.nl/web/delft3d/faq). However, the environment variables for the FORTRAN compiler have been "IFORT_COMPILER16" in the project files.
NETCDF could be an issue, since in \src\third_party_open\netcdf\lib\win32\Release\, the pre-compiled NETCDF libraries are only available for IFORT10 TO IFORT15.

Could you give any suggestions?

Thank you!

Ke