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

 


« Back to Compilation on Windows

RE: Compilation on win10

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Compilation on win10
general
Answer (Unmark)
6/13/17 2:02 PM
Dear all,

I have beed trying to compile Delft3D on win10 with visual studio 2015 and Intel fortran compiler 2016. I followed the steps,

-generating solution file by running python script according to my version of visual studio and Intel Fortran compiler.
-clean solution in visual studio
-build solution in visual studio with setting 'Release/x64'(My Window10 is x64)

During my compilation, the errors occurred that the application cannot be started with the error code 0*c0000142 and 0*c000012d. Please find the attached error log and the complete log.

Thanks in advance
Minfei He
Attachments: Complete log.txt (261.9k), Error log.txt (85.0k)
RE: Compilation on win10
Answer (Unmark)
6/13/17 3:35 PMas a reply to MINFEI HE.
Hi Minfei He,

For VisualStudio 2015 and up you have to do some additional preparations.
The prerequisites on the source code pages contain the line "VS2015: check this post." with a link to a post on our Forum.

Regards,

Adri
RE: Compilation on win10
general
Answer (Unmark)
6/13/17 4:44 PMas a reply to Adri Mourits.
Hi Adri,

I updated the visual studio 2015 with tools of
- "Common Tools for Visual C++ 2015"
- "Microsoft Foundation Classes for C++"

It helps to compile a step further. Thank you for your advice. However, the full compilation still was not completed and same errors still occurred.

Best regards,
Minfei
Attachments: Complete log.txt (264.0k), Error log.txt (85.2k)
RE: Compilation on win10
Answer (Unmark)
6/14/17 9:53 AMas a reply to Adri Mourits.
Hi everyone

After a few days, I got this good result (attached), my configuration is: (in windows 10) VS 2013 and Intel XE 2015.

I do not understand what I'm wrong about compiling.

Grazie
Attachments: ultima_compilazione.txt (281.0k)
RE: Compilation on win10
Answer (Unmark)
6/14/17 11:05 AMas a reply to Pasqualino Littera.
Hi Pasqualino,

Please have a look at the FAQ.

Regards,

Adri
RE: Compilation on win10
Answer (Unmark)
6/14/17 11:17 AMas a reply to MINFEI HE.
Hi Minfei,

Following the suggestion in this post:
Can you add the following line:
#define HAVE_STRUCT_TIMESPEC
somewhere at the top of the following 4 files:
C:\Users\Roger\Desktop\STUDY\Thesis\SANTOSS model\src\utils_lgpl\esmfsm\include\win32\pthread.h
C:\Users\Roger\Desktop\STUDY\Thesis\SANTOSS model\src\utils_lgpl\deltares_common\packages\deltares_common_c\include\win32\pthread.h
C:\Users\Roger\Desktop\STUDY\Thesis\SANTOSS model\src\third_party_open\pthreads\include\x64\pthread.h
C:\Users\Roger\Desktop\STUDY\Thesis\SANTOSS model\src\third_party_open\pthreads\include\win32\pthread.h
And then try again?

Background:
Windows 10 defines the structure TIMESPEC without setting the flag HAVE_STRUCT_TIMESPEC. The pthreads library defines TIMESPEC if the flag HAVE_STRUCT_TIMESPEC is not defined, causing an error. By adding the line "#define HAVE_STRUCT_TIMESPEC", the pthreads library will skip the definition of TIMESPEC.

I will think about a solution that works both on Windows 10 and Windows 7.
I'm sorry that this has to be changed in 4 files; I'll try to solve that too.

Regards,

Adri
RE: Compilation on win10
Answer (Unmark)
6/14/17 1:10 PMas a reply to Adri Mourits.
Hi Adri,

Thanks for the helping. I added the line '#define HAVE_STRUCT_TIMESPEC' at the top of those four files. It took a step forward. However, the compilation still failed with the same error prompted. I attached my error log and complete log again.

Best regards,
Minfei
Attachments: Complete log.txt (247.2k), Error log.txt (71.2k)
RE: Compilation on win10
Answer (Unmark)
6/14/17 1:50 PMas a reply to MINFEI HE.
Hi Minfei,

Can you attache file "C:\Users\Roger\Desktop\STUDY\Thesis\SANTOSS model\src\utils_lgpl\d_hydro_lib\packages\d_hydro_lib\include\d_hydro_lib_version.h" to a post here on the forum?

Thanks.

Regards,

Adri
RE: Compilation on win10
Answer (Unmark)
6/14/17 3:24 PMas a reply to Adri Mourits.
Hi Adri,

Here it's the 'd_hydro_lib_version.h'. Thanks a lot!!

Best regards,
Minfei
Attachments: d_hydro_lib_version.h (0.9k)
RE: Compilation on win10
Answer (Unmark)
6/14/17 3:46 PMas a reply to Adri Mourits.
Hi Adri,

It seems like I don't have static library files in my SVN check-out folder as listed.

Error error #11018: Cannot open C:\Users\Roger\Desktop\STUDY\Thesis\SANTOSS model\src\utils_lgpl\nefis\lib\x64\Release\static\nefis.lib ipo
Error error #11018: Cannot open C:\Users\Roger\Desktop\STUDY\Thesis\SANTOSS model\src\engines_gpl\waq\bin\x64\Release\delwaq2_lib_intel14.lib ipo
Error error #11018: Cannot open C:\Users\Roger\Desktop\STUDY\Thesis\SANTOSS model\src\utils_lgpl\nefis\lib\x64\Release\static\nefis.lib ipo
Error error #11018: Cannot open C:\Users\Roger\Desktop\STUDY\Thesis\SANTOSS model\src\engines_gpl\waq\bin\x64\Release\delwaq1_lib.lib ipo
Error error #11018: Cannot open C:\Users\Roger\Desktop\STUDY\Thesis\SANTOSS model\src\utils_lgpl\nefis\lib\x64\Release\static\nefis.lib ipo
Error error #11018: Cannot open C:\Users\Roger\Desktop\STUDY\Thesis\SANTOSS model\src\engines_gpl\waq\bin\x64\Release\delwaq1_lib.lib ipo
Error error #11018: Cannot open C:\Users\Roger\Desktop\STUDY\Thesis\SANTOSS model\src\utils_lgpl\nefis\lib\x64\Release\static\nefis.lib ipo
Error fatal error LNK1181: cannot open input file 'C:\Users\Roger\Desktop\STUDY\Thesis\SANTOSS model\src\engines_gpl\waq\bin\x64\Release\delwaq2_lib_intel14.lib' LINK
Error fatal error LNK1181: cannot open input file 'C:\Users\Roger\Desktop\STUDY\Thesis\SANTOSS model\src\utils_lgpl\nefis\lib\x64\Release\static\nefis.lib' LINK
Error fatal error LNK1181: cannot open input file 'C:\Users\Roger\Desktop\STUDY\Thesis\SANTOSS model\src\engines_gpl\waq\bin\x64\Release\delwaq1_lib.lib' LINK
Error fatal error LNK1181: cannot open input file 'C:\Users\Roger\Desktop\STUDY\Thesis\SANTOSS model\src\engines_gpl\waq\bin\x64\Release\delwaq1_lib.lib' LINK
Error fatal error LNK1181: cannot open input file 'C:\Users\Roger\Desktop\STUDY\Thesis\SANTOSS model\src\utils_lgpl\nefis\lib\x64\Release\static\nefis.lib' LINK
Error fatal error LNK1181: cannot open input file 'C:\Users\Roger\Desktop\STUDY\Thesis\SANTOSS model\src\utils_lgpl\nefis\lib\x64\Release\static\nefis.lib' LINK

I indeed updated the SVN check-out folder correctly. Perhaps that helps.

Best regards,
Minfei
RE: Compilation on win10
Answer (Unmark)
6/14/17 5:09 PMas a reply to MINFEI HE.
Hi Minfei,

Can you try with the trunk version, revision 7062?

The problem you are hitting is solved in revision 6879. There is no tagged version yet containing this revision, but revision 7062 is tested and stable.
I expect you don't need to change the pthread.h files in this version, but you know what to do in case it is needed.

The error messages about missing lib-files is consequential damage.

Regards,

Adri
RE: Compilation on win10
Answer (Unmark)
6/14/17 8:27 PMas a reply to Adri Mourits.
Hi Adri,

I noticed the revision 7062 has no Python script which is used to generated the solution file accordingly to my version of visual studio and Intel Fortran Compiler. Does that mean I need to compile it with Visual Studio 2010 and Intel 15 compiler?

Best regards,
Minfei
RE: Compilation on win10
Answer (Unmark)
6/15/17 10:11 AMas a reply to MINFEI HE.
Hi Minfei,

prepare_sln.py is just there. Did you use the correct version number?

In case you use TortoiseSVN, attached is a screenshot of the related download window.

Regards,

Adri
Attachment

Attachments: 2017-06-15_100726.png (68.0k)
RE: Compilation on win10
general
Answer (Unmark)
6/19/17 4:16 PMas a reply to Adri Mourits.
Hi Adri,

Many thanks to you for your help. I tried revision 7062 in the trunk and it indeed generates d_hydro.exe which I need. However, errors still occurred and the build is failed with or without '#define HAVE_STRUCT_TIMESPEC'. The model couldn't run with uncompleted executable file. I attached the error log and complete log and hope you can find something.

Best regards,
Minfei
Attachments: Complete log.txt (416.6k), Error log.txt (127.0k)
RE: Compilation on win10
Answer (Unmark)
6/20/17 9:28 AMas a reply to MINFEI HE.
Hi Minfei,

I'm surprised by the errors you run into.

I'll try to compile it myself with VS2015 and Intel16, but that needs some preparations. I've planned to work on this on Thursday June 22nd.

Regards,

Adri