<div dir="ltr"><div dir="ltr">Hi Maksim,<div><br></div></div><div class="gmail_quote"><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"><div>Many thanks, Ryan! Can I ask a couple more questions, please? I took one of the problem directories that were in the source folder, copied and renamed it. </div></div></blockquote><div> </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"><div><b>Then I started to add my own .F90 files to it. But they look different from files that were originally in this directory (please see the attached screenshot - my files are those that start with eos). Is it important or can I just ignore it?</b> </div></div></blockquote><div><br></div><div>Sorry, I don't think I understand the question (and I looked at the screenshot). It shouldn't matter what the files are named. So you should be fine but maybe I'm simply not aware of your concern.</div><div><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"><div>Also I am trying to implement tabulated EoS. It works just fine but I need to add my tables in the form of txt files to the object directory after setup. Can I somehow put them in the problem directory so that they are added to the object directory automatically during setup?<br></div><div>many thanks!</div><div>Maksim<br></div></div><br></blockquote><div>You could write a short bash script to do this. For example, my <b style="font-family:monospace">setup_new_run.bash </b><font face="arial, sans-serif">does a few things amongst the following~</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="monospace"><b>cd ${FLASH_PATH}</b></font></div><div><font face="monospace"><b>rm -rf ${OBJECT_PATH}</b></font></div><div><font face="monospace"><b>./setup ${PROB_NAME} -auto -3d</b></font></div><div><font face="monospace"><b>(make -j 4 | tee compile_stdout.txt) 3>&1 1>&2 2>&3 | tee compile_stderr.log<br></b></font></div><div><font face="monospace"><b>cp ${FLASH_PATH}/$OBJECT_PATH/{flash{4,.par},amr_runtime_parameters} ${RUN_PATH}<br><br>cp ${SCRIPTS_PATH}/{clean_run_dir,m-00.cie,run_basher.bash} ${RUN_PATH}</b></font><br></div><div><font face="arial, sans-serif"><br></font></div><div>Best,</div><div>Ryan</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 7, 2021 at 9:14 AM Ryan Farber <<a href="mailto:rjfarber@umich.edu" target="_blank">rjfarber@umich.edu</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">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"><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>
</blockquote></div>
</blockquote></div></div>