intro story D-Flow FM

 

D-Flow Flexible Mesh

D-Flow Flexible Mesh (D-Flow FM) is the new software engine for hydrodynamical simulations on unstructured grids in 1D-2D-3D. Together with the familiar curvilinear meshes from Delft3D 4, the unstructured grid can consist of triangles, pentagons (etc.) and 1D channel networks, all in one single mesh. It combines proven technology from the hydrodynamic engines of Delft3D 4 and SOBEK 2 and adds flexible administration, resulting in:

  • Easier 1D-2D-3D model coupling, intuitive setup of boundary conditions and meteorological forcings (amongst others).
  • More flexible 2D gridding in delta regions, river junctions, harbours, intertidal flats and more.
  • High performance by smart use of multicore architectures, and grid computing clusters.
An overview of the current developments can be found here.
 
The D-Flow FM - team would be delighted if you would participate in discussions on the generation of meshes, the specification of boundary conditions, the running of computations, and all kinds of other relevant topics. Feel free to share your smart questions and/or brilliant solutions! 

 

=======================================================
We have launched a new website (still under construction so expect continuous improvements) and a new forum dedicated to Delft3D Flexible Mesh.

Please follow this link to the new forum: 
/web/delft3dfm/forum

Post your questions, issues, suggestions, difficulties related to our Delft3D Flexible Mesh Suite on the new forum.

=======================================================

** PLEASE TAG YOUR POST! **

 

 

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

 


Message Boards

"windows compilation- build error"

shanas pr, modified 9 Years ago.

"windows compilation- build error"

Padawan Posts: 29 Join Date: 10/20/11 Recent Posts
hi


Now am on the way to run the test case of Delft3D GUI.First of all it brings up with the error "wave.exe" missing .
With the advice and suggestion i am trying to compile by myself to create a copy of "wave.exe" .
I am using windows platform with intelfortran compiler 12 and VS2010.But ...while i am trying to buid the TRUNK version ,, instead of "wave.exe " a file with name
"wave.exe.intermediate.manifest" in ~src\engines_gpl\wave\bin\Debug/ folder of wave and "delatares_hydro.exe.intermediate.manifest" in ~src\engines_gpl\deltares_hydro\bin\Debug etc..
was that compiled properly or not? what is the error ? plz do help me to solve this????

thanks in advance

regards
shanas
Bert Jagers, modified 9 Years ago.

RE: "windows compilation- build error"

Jedi Knight Posts: 201 Join Date: 12/22/10 Recent Posts
Hi Shanas,

I'm using VS2008 and a slightly older compiler, but the compilation of the trunk version seems to work fine on my machine.
My build also results in a "wave.exe.intermediate.manifest" in ~src\engines_gpl\wave\bin\Debug but it also includes a wave.exe in that same folder.
The fact that you have a wave.exe.intermediate.manifest file suggests that your build process has reached the linking stage, so I'm surprised that you don't see a "wave.exe" in that folder. What does the build log in Visual Studio indicate? If it indicates that the build was successful, then the wave.exe should be there. If it indicates that the build is not successful, please locate the error message in the build log and if it's not clear how to solve it, please post it here.

Best regards,

Bert
shanas pr, modified 9 Years ago.

RE: "windows compilation- build error"

Padawan Posts: 29 Join Date: 10/20/11 Recent Posts
Dear Bert



this is the error log which i got from VS2010


1>------ Build started: Project: wave, Configuration: Debug Win32 ------
1>Performing Pre-Build Event...
1>Generating version number in '.\src\wave_version.F90' ...
1>..\..\..\..\scripts_lgpl\win32\update_version.cmd: Regenerating existing file '.\src\wave_version.F90'.
1>Compiling with Intel(R) Visual Fortran Compiler XE 12.1.1.258 [IA-32]...
1>wave_version.F90
1>Linking...
1>wave.obj : error LNK2019: unresolved external symbol _SWAN_FLOW_GRID_MAPS_mp_SWAN_GRIDS referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _SWAN_FLOW_GRID_MAPS_mp_FLOW_GRIDS referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _SWAN_FLOW_GRID_MAPS_mp_FLOW_OUTPUT_FIELDS referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _SWAN_INPUT_mp_SWAN_RUN referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _SMALL referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _WAVE_DATA_mp_INITIALIZE_WAVEDATA referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _WAVE_DATA_mp_SETMODE referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _WAVE_INIT referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _SWAN_INPUT_mp_READ_SWAN referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _FLOW_DATA_mp_FLOW_INIT referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _WAVE_DATA_mp_SETTSCALE referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _WAVE_DATA_mp_SETREFDATE referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _GRIDS_AND_GRIDMAPS referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _SWAN_FLOW_GRID_MAPS_mp_ALLOC_OUTPUT_FIELDS referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _METEO_mp_INITMETEO referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _CHECKMETEORESULT_WAVE referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _METEO_mp_ADDMETEOITEM referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _METEO_mp_GRIDTOMETEO referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _METEO_mp_GETMETEOTYPES referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _CHECK_INPUT referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _SYNC_FLOWWAVE_mp_WAVE_FROM_FLOW_COMMAND referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _WAVE_DATA_mp_SETTIMTSCALE referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _SWAN_TOT referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _SYNC_FLOWWAVE_mp_WAVE_TO_FLOW_STATUS referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _FLOW_DATA_mp_DEALLOCATE_FLOW_DATA referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _DEL_TEMP_FILES referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _METEO_DATA_mp_DEALLOCMETEO referenced in function _MAIN__
1>../../bin/Debug\wave.exe : fatal error LNK1120: 27 unresolved externals
1>
1>Build log written to "file://C:\Documents and Settings\db1631\Desktop\ss\src\engines_gpl\wave\packages\wave\Debug\BuildLog.htm"
1>wave - 28 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========



thanks for ur time and patience
plz do help me


regards
shanas
shanas pr, modified 9 Years ago.

RE: "windows compilation- build error"

Padawan Posts: 29 Join Date: 10/20/11 Recent Posts
can any one help me to solve my error>>>>



was that the linking error? what i am doing wrong ?


checklicense.obj : error LNK2019: unresolved external symbol _memcpy referenced in function _CHECKLICENSE
wave.obj : error LNK2001: unresolved external symbol _memcpy
wave.obj : error LNK2019: unresolved external symbol _SWAN_FLOW_GRID_MAPS_mp_SWAN_GRIDS referenced in function _MAIN__
1>libifcoremt.lib(cvtas_nan_s.obj) : error LNK2001: unresolved external symbol __fltused

lots of errors r coming like this !!!! what i have to do ? how can i get out of this errors????

thnks n advance

regards
shanas
Adri Mourits, modified 9 Years ago.

RE: "windows compilation- build error"

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

When I compile WAVE (VS2010, Intel 12) the output is:
18>------ Rebuild All started: Project: wave_vs2010, Configuration: Debug Win32 ------
18>Deleting intermediate files and output files for project 'wave_vs2010', configuration 'Debug|Win32'.
18>Performing Pre-Build Event...
18>Generating version number in '.\src\wave_version.F90' ...
18>..\..\..\..\scripts_lgpl\win32\update_version.cmd: Regenerating existing file '.\src\wave_version.F90'.
18>Compiling with Intel(R) Visual Fortran Compiler XE 12.0.2.154 [IA-32]...
18>usage.f90
18>checklicense.f90
18>wave_version.F90
18>wave.f90
18>Linking...
18>meteo.lib(f2c.obj) : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification
18>LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library
18>Embedding manifest...
18>Performing Post-Build Event...
18>
18>Build log written to  "file://d:\sources\oss\src\engines_gpl\wave\packages\wave\Debug\BuildLog.htm"
18>wave_vs2010 - 0 error(s), 2 warning(s)


I tried to reproduce your error messages and managed to get this output:
1>------ Build started: Project: wave_vs2010, Configuration: Debug Win32 ------
1>Performing Pre-Build Event...
1>Generating version number in '.\src\wave_version.F90' ...
1>..\..\..\..\scripts_lgpl\win32\update_version.cmd: Regenerating existing file '.\src\wave_version.F90'.
1>Compiling with Intel(R) Visual Fortran Compiler XE 12.0.2.154 [IA-32]...
1>wave_version.F90
1>Linking...
1>meteo.lib(f2c.obj) : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification
1>wave.obj : error LNK2019: unresolved external symbol _SWAN_FLOW_GRID_MAPS_mp_SWAN_GRIDS referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _SWAN_FLOW_GRID_MAPS_mp_FLOW_GRIDS referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _SWAN_FLOW_GRID_MAPS_mp_FLOW_OUTPUT_FIELDS referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _SWAN_INPUT_mp_SWAN_RUN referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _WAVE_DATA_mp_INITIALIZE_WAVEDATA referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _WAVE_DATA_mp_SETMODE referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _WAVE_INIT referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _SWAN_INPUT_mp_READ_SWAN referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _FLOW_DATA_mp_FLOW_INIT referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _WAVE_DATA_mp_SETTSCALE referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _WAVE_DATA_mp_SETREFDATE referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _GRIDS_AND_GRIDMAPS referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _SWAN_FLOW_GRID_MAPS_mp_ALLOC_OUTPUT_FIELDS referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _CHECKMETEORESULT_WAVE referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _CHECK_INPUT referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _SYNC_FLOWWAVE_mp_WAVE_FROM_FLOW_COMMAND referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _WAVE_DATA_mp_SETTIMTSCALE referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _SWAN_TOT referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _SYNC_FLOWWAVE_mp_WAVE_TO_FLOW_STATUS referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _FLOW_DATA_mp_DEALLOCATE_FLOW_DATA referenced in function _MAIN__
1>wave.obj : error LNK2019: unresolved external symbol _DEL_TEMP_FILES referenced in function _MAIN__
1>../../bin/Debug\wave.exe : fatal error LNK1120: 21 unresolved externals
1>
1>Build log written to  "file://d:\sources\oss\src\engines_gpl\wave\packages\wave\Debug\BuildLog.htm"
1>wave_vs2010 - 22 error(s), 1 warning(s)

I did this by removing some dependencies: Right-click on project "wave_vs2010" in the solution explorer, select "Project Dependencies...". In the "Depends on:" list, the following items must be checked/switched on:
  • data (engines_gpl\wave\data)
  • delftio (utils_lgpl\delftio\delftio)
  • inifiles (utils_lgpl\inifiles\inifiles)
  • io (engines_gpl\wave\io)
  • kernel (engines_gpl\wave\kernel)
  • manager (engines_gpl\wave\manager)
  • meteo (utils_lgpl\meteo\meteo)
  • nefis (utils_lgpl\nefis\nefis)
  • nefis_version_number
  • precision (utils_lgpl\precision\precision)
  • utils_flow (utils_lgpl\utils_flow\utils_flow)


Some general remarks:
  • Please start with trying to compile the latest tagged version.
  • I assume you did not change the dependencies on purpose. A possible cause for the dependencies (and more) being changed is that you started with "d_hydro_open_source.sln" (instead of "d_hydro_open_source_vs2010.sln") and let VS2010 convert this VS2008 solution to VS2010. In that case: start clean and use "d_hydro_open_source_vs2010.sln".
  • In case nothing helped: please post a message again and add the full contents of the output window when starting with a clean checkout and performing a full solution build. Hopefully that will give some more information.


Hope this helps.

Regards,

Adri
shanas pr, modified 9 Years ago.

RE: "windows compilation- build error"

Padawan Posts: 29 Join Date: 10/20/11 Recent Posts
thanks alot....!


I followed your steps in project dependencies i cant see

nefis (utils_lgpl\nefis\nefis)
nefis_version_number


i was ignoring some messages at the time of opening vs2010 .Now only i came to know that, its a type of .vcxproj which is not opening/loading in vs2010?


how to get out of this?

how can i load .vcxproj files?


thanks for ur time and patience

regards
shana
shanas pr, modified 9 Years ago.

RE: "windows compilation- build error"

Padawan Posts: 29 Join Date: 10/20/11 Recent Posts
emoticonemoticonThanks to bert and Adriemoticonemoticon

compilation went successful !!!!!!!

a proper "wave.exe" now can be found at ~src\engines_gpl\wave\bin\Debug
I have compiled tagged version (4.00.06.0834) with vs 2008 intel fortran 12.

It took .vcxproj file the problem was with my vs2010 which is not properly linking/loading the c++ and c files.


note:
windows users:
if anyone trying to compile delft3d plz make sure dat .vcxproj also included in vs .And dont keep ignoring the message displayed while starting and doing compilation (like what i did earlier was a mistake ).all project files have to be imported first then do compilation.


cheers

shana