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 compiling

MS
Marcelo Somos Valenzuela, modified 9 Years ago.

Windows compiling

Youngling Posts: 11 Join Date: 1/13/12 Recent Posts
I am starting with this model but I haven't been able to compile it in Windows. I have installed the softwares mentioned (Intel fortran 11, visual studio 8, and tortoiseSVN) but when I do CTRL+Shift+B I get so many messages of error and warning. Then I don't get any installation done. Could someone give some extra information about what I should get after the compilation and some examples please?

Thank you so much

Marcelo Somos
Bert Jagers, modified 9 Years ago.

RE: Windows compiling

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

There are always some warning messages, especially if compiling a debug version. Please indicate which version of Delft3D you downloaded (trunk, tag or branch) and which revision; most versions should compile fine, but it helps to know better which you're working with exactly. If you post the build log or at least the first couple of error messages then other people on the forum may be able to help. Without such details, it's very difficult to determine what may have gone wrong.

There will be webinar on compiling on Windows on February 8, 2012 as announced on the webinar page, but I hope that we can get you up and running before that date.

Bert
MS
Marcelo Somos Valenzuela, modified 9 Years ago.

RE: Windows compiling

Youngling Posts: 11 Join Date: 1/13/12 Recent Posts
Hi Bert thank you for your quick answer

There were so many at first that I was overwhelmed with all of them. I updated intel fortran 11 so now the errors were reduced from thousands to 3, those are the messages I got today. I used the last two tag revision 4.00.07.0892/ and 4.00.06.0834/

Also I am using MVS 2010 pro, therefore I am compiling "deltares_hydro_open_source_vs2010.sln"

Error 116 error LNK1104: no se puede abrir el archivo 'ifconsol.lib' C:\Marcelo\Delft3D_0834\src\tools_gpl\lint\packages\lint\LINK lint (tools_gpl\lint\lint)

Error 117 error LNK1104: no se puede abrir el archivo 'ifconsol.lib' C:\Marcelo\Delft3D_0834\src\tools_gpl\kubint\packages\kubint\LINK kubint (tools_gpl\kubint\kubint)

Error 124 error LNK1104: no se puede abrir el archivo 'ifconsol.lib' C:\Marcelo\Delft3D_0834\src\tools_gpl\datsel\packages\datsel\LINK datsel (tools_gpl\datsel\datsel)

I found another question exactly like this in this blog but the answerwasnt clear to me. I hope you or someone else could give me another explanation of how I can get to rid of this errors

PS: I already signed for that webinar emoticon

Kind regards!


Marcelo
MS
Marcelo Somos Valenzuela, modified 9 Years ago.

RE: Windows compiling

Youngling Posts: 11 Join Date: 1/13/12 Recent Posts
I just realized that the first messages I get are:

Error 96: error LNK1181: no se puede abrir el archivo de entrada '..\lint_f\Release\lint_f.lib' D:\delft3d_compiled\src\tools_gpl\lint\packages\lint\LINK lint (tools_gpl\lint\lint).
Error 97: error LNK1181: no se puede abrir el archivo de entrada '..\kubint_f\Release\kubint_f.lib' D:\delft3d_compiled\src\tools_gpl\kubint\packages\kubint\LINK kubint (tools_gpl\kubint\kubint).
Error 98 error LNK1181: no se puede abrir el archivo de entrada '..\datsel_f\Release\datsel_f.lib' D:\delft3d_compiled\src\tools_gpl\datsel\packages\datsel\LINK datsel (tools_gpl\datsel\datsel).
Error 72 error MSB3073: El comando "call ..\..\..\..\scripts_lgpl\win32\update_version.cmd .\include\semaphore_version.h .\ .\include\version_number.ini

then, when the process finishes and I press CTRL+SHIFT+B again and I get the message described before..

After read some of the question I realized that you recommend to someone else with the same problem work with the trunk. I did that but now I have this message

Error 354 error LNK1104: no se puede abrir el archivo 'ifmodintr.lib' C:\Marcelo\Trunk\src\engines_gpl\flow2d3d\packages\flow2d3d_openda\LINK flow2d3d_openda


Thank you

Marcelo
Adri Mourits, modified 9 Years ago.

RE: Windows compiling (Answer)

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

Looking to your last two posts, you have three types of errors. The good news is: These errors are all related to additional tools/programs. That means that you must have compiled Delft3D-FLOW and Delft3D-WAVE. You should be able to run the example testcases.

Problems with "ifconsol.lib":
The datsel/kubint/lint projects are the only projects with a main routine written in C/C++ (in the current tagged versions, not in the trunk). That means they are linked using the C-compiler instead of the Fortran compiler. That means that some standard Fortran libraries must be added.
Right click on project "datsel" in the solution explorer, select properties -> Configuration Properties -> Linker -> General -> Additional Library Directories. This property contains something like:
$(IFORT_COMPILER11)\compiler\lib\ia32
You can try two things:
  • Replace "IFORT_COMPILER11" with "IFORT_COMPILER12". This is also done in the trunk.
  • Look on your machine where ifconsol.lib is and add this hard coded path. On my machine it is in "c:\Program Files (x86)\Intel\ComposerXE-2011\compiler\lib\ia32".


Problems with "datsel_f.lib/lint_f.lib/kubint_f.lib":
Try compiling project datsel_f/lint_f/kubint_f first. It seems that they are missing. You can check if they exist by looking in, for example, directory "C:\Marcelo\Delft3D_0834\src\tools_gpl\datsel\packages\datsel_f\Release".
It seems that some dependencies are missing: right-click on project "datsel" in the solution explorer, select "Project Dependencies". The following projects must be checked/switched on in the "Depends on" list:
  • datsel_f
  • datsel_version_number
  • nefis (utils_lgpl\nefis\nefis)
  • utils_flow (utils_lgpl\utils_flow\utils_flow)
  • utils_flow_c


Problems with "ifmodintr.lib":
I think this is the same problem as "ifconsol.lib", but now related to project "flow2d3d_openda". Directory "c:\Program Files (x86)\Intel\ComposerXE-2011\compiler\lib\ia32" contains "ifmodintr.lib".

In case this information does not help, please attach the full content of the output window (when doing a complete build, starting with a clean checkout) to a post on this forum.

Hope this helps.

Regards,

Adri
TV
thanh vo, modified 9 Years ago.

RE: Windows compiling

Youngling Posts: 2 Join Date: 2/9/12 Recent Posts
Hi everybody,

I am trying to compile Delft3D-FLOW on Windows, but I have a lot of errors. I have solved some errors according to Adri's solution (post above).
I can solve the following errors (from BuildLog).

Link /OUT:"..\bin\win32\test_dll_noise.exe" /INCREMENTAL:NO /NOLOGO /LIBPATH:"C:\Program Files (x86)\Intel\Composer XE 2011 SP1\mkl\lib\ia32" /MANIFEST /MANIFESTFILE:"e:\Software\Delft3D\src\third_party_open\openda\tests\bin\win32\test_dll_noise.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /SUBSYSTEM:CONSOLE /IMPLIB:"e:\Software\Delft3D\src\third_party_open\openda\tests\bin\win32\test_dll_noise.lib" mkl_intel_c.lib mkl_intel_thread.lib "Release\test_dll_noise.obj" "e:\Software\Delft3D\src\engines_gpl\flow2d3d\bin\Release\flow2d3d_openda.lib"
Link: executing 'link'
test_dll_noise.obj : error LNK2019: unresolved external symbol _for_set_reentrancy referenced in function _MAIN__
test_dll_noise.obj : error LNK2019: unresolved external symbol _for_getarg referenced in function _MAIN__
test_dll_noise.obj : error LNK2019: unresolved external symbol _for_write_seq_lis referenced in function _MAIN__
test_dll_noise.obj : error LNK2019: unresolved external symbol _for_write_seq_lis_xmit referenced in function _MAIN__
test_dll_noise.obj : error LNK2019: unresolved external symbol _for_check_mult_overflow referenced in function _MAIN__
test_dll_noise.obj : error LNK2019: unresolved external symbol _for_alloc_allocatable referenced in function _MAIN__
test_dll_noise.obj : error LNK2019: unresolved external symbol _for_dealloc_allocatable referenced in function _MAIN__
test_dll_noise.obj : error LNK2019: unresolved external symbol _for_stop_core referenced in function _MAIN__
LIBCMT.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
..\bin\win32\test_dll_noise.exe : fatal error LNK1120: 9 unresolved externals


May everyone help me?
Please let me know the errors and solution.

Many thanks in advance.

Best regards,

Thanh.