<div dir="ltr">Hi Maksim,<div><br></div><div>Add your *.F90 file to your problem directory, e.g.,</div><div><font face="monospace"><b>~FLASH_NAME/source/Simulation/SimulationMain/AwesomeStuff</b></font></div><div><br></div><div>Then, add your *.F90 file to your problem directory's <font face="monospace"><b>Makefile</b></font>.</div><div><br></div><div>For example, I added the following line to mine:</div><div><br></div><div><font face="monospace"><b>Cool += Cool_exact_integrate.o compute_tcool.o compute_Lambda.o compute_index.o</b></font><br></div><div><br></div><div>You'll also need to add an interface. In my case, I added an interface for the Cool_exact_integrate subroutine in <font face="monospace"><b>Cool_interface.F90</b></font></div><div><br></div><div>And then make sure to have the appropriate use, ONLY line in files calling your subroutine. For example, in <font face="monospace"><b>Cool.F90</b></font> I have</div><div><br></div><div>...</div><div><font face="monospace"><b>use Cool_interface, ONLY : Cool_exact_integrate</b></font></div><div>...</div><div><font face="monospace"><b>call Cool_exact_integrate(...)</b></font></div><div>==================================================</div><div>Hope that helps!</div><div><br></div><div>Best,</div><div><div><div dir="ltr" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr">--------<div>Ryan</div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 6, 2021 at 8:37 PM Maksim Kozlov <<a href="mailto:maksim.kozlov@nu.edu.kz" target="_blank">maksim.kozlov@nu.edu.kz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Dear FLASH users,<div>I would really appreciate it if you help me to resolveĀ the following issue. I developed my own fortran subroutine and added corresponding *.F90 file to the object directory. But the call to this subroutine is not recognised: I receive undefined reference error. Do I need to explicitly list this new subroutine somewhere?</div><div>Thank you very much!</div><font color="#888888"><div>Maksim Kozlov</div></font></div>
</blockquote></div>