<div dir="ltr"><div>Thanks, this seems to work (at least, build, and the testbed files run).<br><br></div><div>Hopefully this 5-year old code replaces the 10-year old code in master at some point!<br></div><div><br></div><div>Andrew<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 20 March 2018 at 19:37, Matthew Mazloff <span dir="ltr"><<a href="mailto:mmazloff@ucsd.edu" target="_blank">mmazloff@ucsd.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word;line-break:after-white-space">
Hello
<div><br>
</div>
<div>Lately I have been using:</div>
<div><a href="http://wwwcvs.mitgcm.org/viewvc/MITgcm/MITgcm_contrib/mlosch/optim_m1qn3/?pathrev=HEAD" target="_blank">http://wwwcvs.mitgcm.org/viewv<wbr>c/MITgcm/MITgcm_contrib/mlosch<wbr>/optim_m1qn3/?pathrev=HEAD</a></div>
<div><br>
</div>
<div>This is an alternative search algorithm code that I find easier to use (Thanks again Martin!). You may want to give it a try</div>
<div><br>
</div>
<div>-Matt</div>
<div><br>
</div>
<div>
<div><br>
<blockquote type="cite"><div><div class="m_1695860332011635034h5">
<div>On Mar 20, 2018, at 11:46 AM, Andrew McRae <<a href="mailto:andrew.mcrae@physics.ox.ac.uk" target="_blank">andrew.mcrae@physics.ox.ac.uk</a><wbr>> wrote:</div>
<br class="m_1695860332011635034m_6005631553758179827Apple-interchange-newline">
</div></div><div><div><div class="m_1695860332011635034h5">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div></div>
Are these run as part of the daily builds?  I can't get it to build.<br>
<br>
Following part 3.18.4.2 of the .pdf manual (I don't think this section has been ported online yet)...<br>
<br>
</div>
In lsopt/, the supplied blas libraries are 10+ years old and my compiler says the Pentium 4 blas1 library is incompatible.<br>
<br>
</div>
<div>In optim/, "make depend" doesn't work (makedepend undefined).<br>
<br>
"make" obviously causes the compiler to complain about -lblas1 not existing.<br>
<br>
After changing the makefile to use -lblas instead of -lblas1, "make" gives the output<br>
<br>
f77 -o optim.x  optim_main.o optim_sub.o optim_numbmod.o optim_initmod.o optim_readdata.o optim_writedata.o optim_write_control.o xerbla.o simul.o -L. -L../lsopt/ -llsopt_ecco -lblas<br>
/usr/lib/gcc/x86_64-linux-gnu/<wbr>4.9/../../../x86_64-linux-gnu/<wbr>crt1.o: In function `_start':<br>
(.text+0x20): undefined reference to `main'<br>
optim_numbmod.o: In function `optim_numbmod_':<br>
optim_numbmod.f:(.text+0x1ff1)<wbr>: undefined reference to `ilnblnk_'<br>
optim_numbmod.f:(.text+0x2478)<wbr>: undefined reference to `ilnblnk_'<br>
collect2: error: ld returned 1 exit status<br>
Makefile:78: recipe for target 'optim.x' failed<br>
make: *** [optim.x] Error 1<br>
<br>
</div>
<div>And this just looks like broken code rather than anything BLAS-related.  An undefined reference to main, and two undefined references to ilnblnk.<br>
</div>
<br>
ilnblnk is defined with<br>
c     == external ==<br>
      integer  ilnblnk<br>
<br>
</div>
Then used twice as<br>
il = max(ilnblnk(record),1)<br>
<br>
</div>
Any ideas?<br>
</div>
</div></div></div>
______________________________<wbr>_________________<br>
MITgcm-support mailing list<br>
<a href="mailto:MITgcm-support@mitgcm.org" target="_blank">MITgcm-support@mitgcm.org</a><br>
<a href="http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support" target="_blank">http://mailman.mitgcm.org/mail<wbr>man/listinfo/mitgcm-support</a><br>
</div>
</blockquote>
</div>
<br>
</div>
</div>

</blockquote></div><br></div></div>