<div dir="ltr">Ian<div><br></div><div>It&#39;s likely that Cactus does not contain a generic type-safe wrapper for syev. In this case, you need to call the original Lapack routine directly, e.g. dsyev if you are using double precision. (You need to add one character depending on the type, either s, d, c, or z.)</div><div><br></div><div>-erik</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 14, 2016 at 10:21 AM, Ian Hinder <span dir="ltr">&lt;<a href="mailto:ian.hinder@aei.mpg.de" target="_blank">ian.hinder@aei.mpg.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
What is the correct way to call a BLAS routine from a Fortran Cactus thorn? I am trying to compile the LlamaWaveToy, and it does this:<br>
<br>
subroutine LWT_min_spacing (CCTK_ARGUMENTS)<br>
  use lapack<br>
...<br>
           call syev (&#39;N&#39;, &#39;U&#39;, 3, gg, 3, ev, work, lwork, info)<br>
<br>
and at link time, I get<br>
<br>
/home/ianhin/Cactus/<wbr>EinsteinToolkitGit/configs/<wbr>etllama/lib/libthorn_<wbr>LlamaWaveToy.a(min_spacing.<wbr>F90.o): In function `lwt_min_spacing&#39;:<br>
/home/ianhin/Cactus/<wbr>EinsteinToolkitGit/<wbr>arrangements/Llama/<wbr>LlamaWaveToy/src/min_spacing.<wbr>F90:38: undefined reference to `syev_&#39;<br>
<br>
Do I need to do something special to make the symbol found, or to convert Fortran to C names, etc?<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Ian Hinder<br>
<a href="http://members.aei.mpg.de/ianhin" rel="noreferrer" target="_blank">http://members.aei.mpg.de/<wbr>ianhin</a><br>
<br>
______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@einsteintoolkit.org">Users@einsteintoolkit.org</a><br>
<a href="http://lists.einsteintoolkit.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.einsteintoolkit.<wbr>org/mailman/listinfo/users</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Erik Schnetter &lt;<a href="mailto:schnetter@cct.lsu.edu" target="_blank">schnetter@cct.lsu.edu</a>&gt;<br><a href="http://www.perimeterinstitute.ca/personal/eschnetter/" target="_blank">http://www.perimeterinstitute.ca/personal/eschnetter/</a></div>
</div>