<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p>Hi all,</p>
<p>In case anyone runs into a similar problem, this was resolved by
adding a store statement for 'phiHydLow', which is the state
variable that m_bp depends on, to forward_step.F before the cost
and ecco_phys packages are called, in the same place as some other
store statements. This resolved all the 'extensive recomputation'
compilation warnings and simulations now run as expected.</p>
<p>With thanks to Ralf Giering from TAF for the advice.</p>
<p>Emma<br>
</p>
<div class="moz-cite-prefix">On 24/01/2024 10:41, Emma Boland wrote:<br>
</div>
<blockquote type="cite" cite="mid:f3e993b6-4ee1-47a4-b7bb-80a996e7aaed@bas.ac.uk">
<table style="cellpadding:0;border:0;cellspacing:0;display:table;width:100%;table-layout:fixed;border-collapse:seperate;float:none;" width="100%" cellspacing="0" cellpadding="0" border="0" align="left">
<tbody style="display:block;">
<tr>
<td cellpadding="7px 2px 7px 2px" style="padding:7px 2px 7px 2px;background-color:#A6A6A6;valign:middle" width="1px" valign="middle" bgcolor="#A6A6A6">
<br>
</td>
<td cellpadding="7px 5px 7px 15px" color="#212121" style="width:100%;background-color:#EAEAEA;padding:7px 5px 7px 15px;font-family:wf_segoe-ui_normal,Segoe UI,Segoe WP,Tahoma,Arial, sans-serif;font-size:12px;font-weight:normal;color:#212121;text-align:left;word-wrap:break-word;" width="100%" valign="middle" bgcolor="#EAEAEA">
<div>You don't often get email from <a class="moz-txt-link-abbreviated" href="mailto:emmomp@bas.ac.uk">emmomp@bas.ac.uk</a>. <a href="https://aka.ms/LearnAboutSenderIdentification" moz-do-not-send="true">
Learn why this is important</a></div>
</td>
<td cellpadding="7px 5px 7px 5px" color="#212121" style="width:75px;background-color:#EAEAEA;padding:7px 5px 7px 5px;font-family:wf_segoe-ui_normal,Segoe UI,Segoe WP,Tahoma,Arial, sans-serif;font-size:12px;font-weight:normal;color:#212121;text-align:left;word-wrap:break-word;align:left" width="75px" valign="middle" bgcolor="#EAEAEA" align="left">
<br>
</td>
</tr>
</tbody>
</table>
<div>
<p>Hi ECCO team,</p>
<p>My colleague and I are interested in running adjoint
sensitivity studies of bottom pressures in ECCOv4. We've added
a custom cost function to ecco_phys.F (m_boxmean_bp) that is
modelled on m_boxmean_eta, and is defined in terms of m_bp.
Compiling with TAF gives lots of 'extensive recomputation'
warnings for m_bp. When running, the forward part completes
normally, generating a m_boxmean_bp file with values as
expected, but the start of the adjoint component hangs for
many hours before generating any sensitivities. </p>
<p>I expect that what is needed is some store statements to
avoid the recomputations, but I'm not experienced enough to
understand what they should look like and where they might be
needed.
<br>
</p>
<p>Any help or advice would be appreciated, </p>
<p>Thanks,</p>
<p>Emma<br>
</p>
<div class="moz-signature">-- <br>
Dr Emma Boland | Physical Oceanographer | British Antarctic
Survey <br>
High Cross, Madingley Road, Cambridge CB3 0ET<br>
<a href="mailto:emmomp@bas.ac.uk" class="moz-txt-link-freetext" moz-do-not-send="true">emmomp@bas.ac.uk</a>
| Phone: (0)1223 221276<br>
Web: <a href="http://www.bas.ac.uk/profile/emmomp" moz-do-not-send="true">www.bas.ac.uk/profile/emmomp </a>
<br>
<br>
NERC is part of UK Research and Innovation <a href="http://www.ukri.org/" moz-do-not-send="true">www.ukri.org</a><br>
Please think of the environment before printing out this
message<br>
</div>
<br>
<br>
This email and any attachments are intended solely for the use
of the named recipients. If you are not the intended recipient
you must not use, disclose, copy or distribute this email or any
of its attachments and should notify the sender immediately and
delete this email from your system. UK Research and Innovation
(UKRI) has taken every reasonable precaution to minimise risk of
this email or any attachments containing viruses or malware but
the recipient should carry out its own virus and malware checks
before opening the attachments. UKRI does not accept any
liability for any losses or damages which the recipient may
sustain due to presence of any viruses.<br>
<br>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
ecco-support mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ecco-support@mit.edu">ecco-support@mit.edu</a>
<a class="moz-txt-link-freetext" href="https://mailman.mit.edu/mailman/listinfo/ecco-support">https://mailman.mit.edu/mailman/listinfo/ecco-support</a>
</pre>
</blockquote>
<div class="moz-signature">-- <br>
Dr Emma Boland | Physical Oceanographer | British Antarctic Survey
<br>
High Cross, Madingley Road, Cambridge CB3 0ET<br>
<a href="mailto:emmomp@bas.ac.uk" class="moz-txt-link-freetext">emmomp@bas.ac.uk</a>
| Phone: (0)1223 221276<br>
Web: <a href="http://www.bas.ac.uk/profile/emmomp">www.bas.ac.uk/profile/emmomp
</a><br>
<br>
NERC is part of UK Research and Innovation <a href="http://www.ukri.org/">www.ukri.org</a><br>
Please think of the environment before printing out this message<br>
</div>
</body>
</html>