<?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>Accessing dflowfm via BMI</title>
  <link rel="self" href="https://dlt-acc.firelay.cloud/en/c/message_boards/find_thread?p_l_id=4041874&amp;threadId=5433553" />
  <subtitle>Accessing dflowfm via BMI</subtitle>
  <id>https://dlt-acc.firelay.cloud/en/c/message_boards/find_thread?p_l_id=4041874&amp;threadId=5433553</id>
  <updated>2026-05-12T16:53:28Z</updated>
  <dc:date>2026-05-12T16:53:28Z</dc:date>
  <entry>
    <title>Accessing dflowfm via BMI</title>
    <link rel="alternate" href="https://dlt-acc.firelay.cloud/en/c/message_boards/find_message?p_l_id=4041874&amp;messageId=5433552" />
    <author>
      <name>Veethahavya Kootanoor Sheshadrivasan</name>
    </author>
    <id>https://dlt-acc.firelay.cloud/en/c/message_boards/find_message?p_l_id=4041874&amp;messageId=5433552</id>
    <updated>2022-11-05T19:02:42Z</updated>
    <published>2022-11-05T19:02:41Z</published>
    <summary type="html">Hi,&lt;br /&gt;&lt;br /&gt;I am trying to use BMI to initialize the model via a fortran program.&lt;br /&gt;&lt;br /&gt;I was able to successfuly test out the bmi-python library [&lt;a href="https://github.com/openearth/bmi-python"&gt;https://github.com/openearth/bmi-python&lt;/a&gt;] with my compiled dflowfm kernel and the provided e02..._westerscheldt example.&lt;br /&gt;&lt;br /&gt;However, I would really like to access the BMI exposed routines via fortran.&lt;br /&gt;&lt;br /&gt;I was able to compile a test program as shown below and link it to the shared dflowfm library. But while running the compiled executable, I receive a  segmentation fault error that doesn&amp;#39;t tell me much. So any help on how to successfully make BMI calls to the dflowfm kernel via fortran is highly appreciated. Thanks in advance!&lt;br /&gt;&lt;br /&gt;Source code:&lt;br /&gt;program test_df_bmi&lt;br /&gt;    character(len=100) :: config_file&lt;br /&gt;    config_file = &amp;#34;/home/bmi-python/test_data/e02_f14_c040_westerscheldt/westerscheldt.mdu&amp;#34;&lt;br /&gt;    call bmi_initialize(trim(config_file))&lt;br /&gt;end program test_df_bmi&lt;br /&gt;&lt;br /&gt;compiled successfully via ifort so: ifort -o testbmifort bmi_fort-test.f90 -L/opt/dflowfm/lib/ -ldflowfm</summary>
    <dc:creator>Veethahavya Kootanoor Sheshadrivasan</dc:creator>
    <dc:date>2022-11-05T19:02:41Z</dc:date>
  </entry>
</feed>
