<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>3. Compilation and running on Linux</title>
  <link rel="self" href="https://dlt-acc.firelay.cloud/c/message_boards/find_category?p_l_id=4041874&amp;mbCategoryId=4391078" />
  <subtitle>Questions/solutions related to a compilation or running the Delft3D Flexible Mesh on Linux.</subtitle>
  <id>https://dlt-acc.firelay.cloud/c/message_boards/find_category?p_l_id=4041874&amp;mbCategoryId=4391078</id>
  <updated>2026-05-12T17:43:20Z</updated>
  <dc:date>2026-05-12T17:43:20Z</dc:date>
  <entry>
    <title>Unable to compile</title>
    <link rel="alternate" href="https://dlt-acc.firelay.cloud/c/message_boards/find_message?p_l_id=4041874&amp;messageId=4391381" />
    <author>
      <name>Huy Tran Quang Pham</name>
    </author>
    <id>https://dlt-acc.firelay.cloud/c/message_boards/find_message?p_l_id=4041874&amp;messageId=4391381</id>
    <updated>2020-08-06T16:17:14Z</updated>
    <published>2020-08-06T16:17:14Z</published>
    <summary type="html">Hello everyone,&lt;br /&gt;Yesterday I just downloaded the D3DFM source code &lt;br /&gt;(the latest, with highest number). Then I followed the instructions in &lt;br /&gt;src/README to compile it. When it came to CFLAGS=&amp;#39;-O2&amp;#39; CXXFLAGS=&amp;#39;-O2&amp;#39; &lt;br /&gt;FFLAGS=&amp;#39;-O2&amp;#39; FCFLAGS=&amp;#39;-O2&amp;#39; ./configure --prefix=`pwd` --with-netcdf &lt;br /&gt;--with-mpi --with-metis --with-petsc, it failed, the final lines are:&lt;br /&gt;(&lt;br /&gt;gfortran: error: unrecognized command-line option &amp;#39;-showme:link&amp;#39;&lt;br /&gt;gfortran: fatal error: no input files&lt;br /&gt;compilation terminated.&lt;br /&gt;configure: creating ./config.lt&lt;br /&gt;config.lt: creating libtool&lt;br /&gt;checking for the extension of Delft3D plugins... .so&lt;br /&gt;./configure: line 20190: ACX_MKL: command not found&lt;br /&gt;checking if PETSc is wanted... yes&lt;br /&gt;checking for PETSc... no&lt;br /&gt;checking for PETSc... no&lt;br /&gt;configure: error: Package requirements (PETSc &amp;gt;= 3.8) were not met:&lt;br /&gt;&lt;br /&gt;Package &amp;#39;PETSc&amp;#39;, required by &amp;#39;virtual:world&amp;#39;, not found&lt;br /&gt;&lt;br /&gt;Consider adjusting the PKG_CONFIG_PATH environment variable if you&lt;br /&gt;installed software in a non-standard prefix.&lt;br /&gt;&lt;br /&gt;Alternatively, you may set the environment variables PETSc_CFLAGS&lt;br /&gt;and PETSc_LIBS to avoid the need to call pkg-config.&lt;br /&gt;See the pkg-config man page for more details.&lt;br /&gt;)&lt;br /&gt;By&lt;br /&gt; the way I&amp;#39;m using gcc &amp;amp; gfortran 10 (I know D3D ask me to use gcc &lt;br /&gt;&amp;lt;8 but I tried many ways to downgrade, just can&amp;#39;t, and I can&amp;#39;t change&lt;br /&gt; the OS, much more trouble), may be the &amp;#34;gfortran: error:&amp;#34; is because of&lt;br /&gt; this? Other things are, I installed every prerequisites except that &lt;br /&gt;gfortran version I can&amp;#39;t go lower. But the terminal showed that the &lt;br /&gt;program was unable to find mpi &amp;amp; petsc. For petsc you can see &lt;br /&gt;clearly from above, for mpi it was a whole dozens of lines, I put them &lt;br /&gt;in the attachment &amp;#34;err.txt&amp;#34;. There were something unusual because I &lt;br /&gt;compiled OpenFOAM succesfully (a software that require mpi too).&lt;br /&gt;I tried again and again these two days, &lt;br /&gt;and now I&amp;#39;m hopeless. Did search on forum, there were some questions &lt;br /&gt;quite similar as mine but I can&amp;#39;t use those solution. I really need &lt;br /&gt;Delft3D, it is as a treasure to me but, I can&amp;#39;t change the OS, how can I&lt;br /&gt; compile successfully &lt;img alt="emoticon" src="https://dlt-acc.firelay.cloud/o/deltares-theme/images/emoticons/sad.gif" &gt; help me please. &lt;br /&gt;Forgot to say, I&amp;#39;m using Fedora 32.</summary>
    <dc:creator>Huy Tran Quang Pham</dc:creator>
    <dc:date>2020-08-06T16:17:14Z</dc:date>
  </entry>
  <entry>
    <title>RE: tagged revision 65089 not compiling dfmoutput; (missing directory)</title>
    <link rel="alternate" href="https://dlt-acc.firelay.cloud/c/message_boards/find_message?p_l_id=4041874&amp;messageId=4391334" />
    <author>
      <name>Dmitry Kushnir</name>
    </author>
    <id>https://dlt-acc.firelay.cloud/c/message_boards/find_message?p_l_id=4041874&amp;messageId=4391334</id>
    <updated>2019-10-24T09:38:27Z</updated>
    <published>2019-10-24T09:37:59Z</published>
    <summary type="html">Hi Michael,&lt;br /&gt;FLAP is hosted on the external GitHub repository. Make sure that you&amp;#39;re not omitting externals while checking out the main delft3d source-code. &lt;br /&gt;Regards,&lt;br /&gt;Dmitry</summary>
    <dc:creator>Dmitry Kushnir</dc:creator>
    <dc:date>2019-10-24T09:37:59Z</dc:date>
  </entry>
  <entry>
    <title>tagged revision 65089 not compiling dfmoutput; (missing directory)</title>
    <link rel="alternate" href="https://dlt-acc.firelay.cloud/c/message_boards/find_message?p_l_id=4041874&amp;messageId=4391330" />
    <author>
      <name>Anonymous Anonymous</name>
    </author>
    <id>https://dlt-acc.firelay.cloud/c/message_boards/find_message?p_l_id=4041874&amp;messageId=4391330</id>
    <updated>2019-10-23T16:05:38Z</updated>
    <published>2019-10-23T16:02:38Z</published>
    <summary type="html">downloaded tagged revision 65089 as directed.&lt;br /&gt;&lt;br /&gt;followed src/README instructions to compile (README is identical to one found in r62441).&lt;br /&gt;&lt;br /&gt;dfmoutput does not build because there is no src/third_party_open/FLAP subdirectory in 65089 and dfmoutput depends on that:&lt;br /&gt;&lt;br /&gt;mpif90 -DHAVE_CONFIG_H -I. -I../../..     -I../../../utils_lgpl/io_netcdf/packages/io_netcdf/src -I../../../utils_lgpl/deltares_common/packages/deltares_common/src -I../../../utils_lgpl/deltares_common/packages/deltares_common_mpi/src -I../../../third_party_open/FLAP/Test_Driver/mod -DWITH_DELFTONLINE  -I/p/app/COST/netcdf-c/4.3.3.1/intel/include   -I/p/app/COST/netcdf-fortran/4.4.2/intel/include -I/p/app/COST/netcdf-c/4.3.3.1/intel/include     -O2 -fopenmp -I/p/app/COST/netcdf-fortran/4.4.2/intel/include  -fpp -recursive -traceback -c -o dfmoutput_main.o dfmoutput_main.F90dfmoutput_main.F90(44): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [IR_PRECISION]use IR_Precision                                                        ! Integers and reals precision definition.----^dfmoutput_main.F90(45): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [DATA_TYPE_COMMAND_LINE_INTERFACE]&lt;br /&gt;&lt;br /&gt;many, many errors later:compilation aborted for dfmoutput_main.F90 (code 1)make[3]: *** [dfmoutput_main.o] Error 1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;imho, it is odd that a tagged revision does not build because of missing source files.</summary>
    <dc:creator>Anonymous Anonymous</dc:creator>
    <dc:date>2019-10-23T16:02:38Z</dc:date>
  </entry>
  <entry>
    <title>Segmentation fault when running simulation</title>
    <link rel="alternate" href="https://dlt-acc.firelay.cloud/c/message_boards/find_message?p_l_id=4041874&amp;messageId=4391198" />
    <author>
      <name>Bruna Queiroz</name>
    </author>
    <id>https://dlt-acc.firelay.cloud/c/message_boards/find_message?p_l_id=4041874&amp;messageId=4391198</id>
    <updated>2018-11-23T13:06:27Z</updated>
    <published>2018-11-23T13:05:49Z</published>
    <summary type="html">&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;I'm trying to run a simulation from the validation runs with a
  pre-compiled Dellft3D FM received from Deltares. &lt;/p&gt;
&lt;p&gt;However, I get segmentation fault when executing dimr.&lt;/p&gt;
&lt;p&gt;Any idea of why is this happening or I what to do to fix it?&lt;/p&gt;
&lt;p&gt;Thanks in advance, &lt;/p&gt;
&lt;p&gt;Bruna&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Bruna Queiroz</dc:creator>
    <dc:date>2018-11-23T13:05:49Z</dc:date>
  </entry>
  <entry>
    <title>Unable to run pre-compiled cli version on Linux cluster</title>
    <link rel="alternate" href="https://dlt-acc.firelay.cloud/c/message_boards/find_message?p_l_id=4041874&amp;messageId=4391183" />
    <author>
      <name>Michelle Hummel</name>
    </author>
    <id>https://dlt-acc.firelay.cloud/c/message_boards/find_message?p_l_id=4041874&amp;messageId=4391183</id>
    <updated>2018-11-14T19:42:56Z</updated>
    <published>2018-11-14T19:42:56Z</published>
    <summary type="html">&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am attempting to install a pre-compiled cli version
  (delft3d-fm-cli-1.0.3-lnx64.tar.gz) that I obtained from Deltares on a
  Linux cluster. I have run into the following error:&lt;/p&gt;
&lt;p&gt;All of the shared libraries required to run the software can be found
  except the &lt;b&gt;libmpi_cxx.so.1&lt;/b&gt; library, even after setting the
  LD_LIBRARY_PATH and PATH variables as suggested in the Installation
  Manual. Please see attached for the ldd command line output. I am
  using gcc version 6.3.0 and openmpi version 2.0.2, which only contains
  libmpi_cxx.so.20.0.1, libmpi_cxx.so.20, libmpi_cxx.so, and libmpi_cxx.la.&lt;/p&gt;
&lt;p&gt;I assume this problem arises from using a different version of
  openmpi than was used to compile the program, but I'm not sure how to
  fix this without compiling from scratch using the source code.&lt;/p&gt;
&lt;p&gt;I appreciate any help.&lt;/p&gt;
&lt;p&gt;Michelle&lt;/p&gt;</summary>
    <dc:creator>Michelle Hummel</dc:creator>
    <dc:date>2018-11-14T19:42:56Z</dc:date>
  </entry>
  <entry>
    <title>RE: Simulation gets stuck in December</title>
    <link rel="alternate" href="https://dlt-acc.firelay.cloud/c/message_boards/find_message?p_l_id=4041874&amp;messageId=4393428" />
    <author>
      <name>Jing Zhao</name>
    </author>
    <id>https://dlt-acc.firelay.cloud/c/message_boards/find_message?p_l_id=4041874&amp;messageId=4393428</id>
    <updated>2017-04-18T15:21:30Z</updated>
    <published>2017-04-18T15:21:30Z</published>
    <summary type="html">Dear Rusty, &lt;br /&gt;&lt;br /&gt;Thank you very much for reporting this bug. It is correct to exchange the two lines as you mentioned. We have also corrected the bug in codes of DFlow FM. &lt;br /&gt;&lt;br /&gt;With kind regards,&lt;br /&gt;&lt;br /&gt;Jing Zhao&lt;br /&gt;Deltares</summary>
    <dc:creator>Jing Zhao</dc:creator>
    <dc:date>2017-04-18T15:21:30Z</dc:date>
  </entry>
  <entry>
    <title>Simulation gets stuck in December</title>
    <link rel="alternate" href="https://dlt-acc.firelay.cloud/c/message_boards/find_message?p_l_id=4041874&amp;messageId=4393424" />
    <author>
      <name>Rusty Holleman</name>
    </author>
    <id>https://dlt-acc.firelay.cloud/c/message_boards/find_message?p_l_id=4041874&amp;messageId=4393424</id>
    <updated>2017-04-17T20:44:43Z</updated>
    <published>2017-04-17T20:44:19Z</published>
    <summary type="html">We have been running annual simulations roughly August-to-August, and with a new model setup the runs get stuck around Dec 1.  I believe this is due to this snippet of unstruc.F90, line 12184 in unstruc.F90, rev50237, part of inctime_split.  As far as I can tell, newer versions of unstruc.F90 have the same code here.&lt;br /&gt;&lt;br /&gt;&lt;div class="lfr-code"&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="line-numbers"&gt;1&lt;/td&gt;&lt;td class="lines"&gt;&lt;div class="line"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="line-numbers"&gt;2&lt;/td&gt;&lt;td class="lines"&gt;&lt;div class="line"&gt;&amp;nbsp; &amp;nbsp; case (&amp;#39;M&amp;#39;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="line-numbers"&gt;3&lt;/td&gt;&lt;td class="lines"&gt;&lt;div class="line"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; imonth = imonth + ti_split&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="line-numbers"&gt;4&lt;/td&gt;&lt;td class="lines"&gt;&lt;div class="line"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; if (imonth &amp;gt; 12) then&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="line-numbers"&gt;5&lt;/td&gt;&lt;td class="lines"&gt;&lt;div class="line"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;imonth = mod(imonth, 12)&amp;nbsp; &amp;nbsp;; SWAP&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="line-numbers"&gt;6&lt;/td&gt;&lt;td class="lines"&gt;&lt;div class="line"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;iyear = iyear + floor(real(imonth)/12.0) ; SWAP&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="line-numbers"&gt;7&lt;/td&gt;&lt;td class="lines"&gt;&lt;div class="line"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; end if&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Switching the order of the &amp;#39;SWAP&amp;#39; lines allows the runs to continue, at least in our limited testing so far.  Please let me know if I&amp;#39;m missing something.  If this is not the correct fix, then perhaps we can post more details of our simulations for some help on figuring out the source of them getting stuck.&lt;br /&gt;&lt;br /&gt;Best,&lt;br /&gt;Rusty</summary>
    <dc:creator>Rusty Holleman</dc:creator>
    <dc:date>2017-04-17T20:44:19Z</dc:date>
  </entry>
</feed>
