[ecco-support] Extensive recomputations with bottom pressure cost function
Emma Boland
emmomp at bas.ac.uk
Fri Jan 26 05:59:34 EST 2024
Hi all,
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.
With thanks to Ralf Giering from TAF for the advice.
Emma
On 24/01/2024 10:41, Emma Boland wrote:
>
>
> You don't often get email from emmomp at bas.ac.uk. Learn why this is
> important <https://aka.ms/LearnAboutSenderIdentification>
>
>
> Hi ECCO team,
>
> 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.
>
> 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.
>
> Any help or advice would be appreciated,
>
> Thanks,
>
> Emma
>
> --
> Dr Emma Boland | Physical Oceanographer | British Antarctic Survey
> High Cross, Madingley Road, Cambridge CB3 0ET
> emmomp at bas.ac.uk | Phone: (0)1223 221276
> Web: www.bas.ac.uk/profile/emmomp <http://www.bas.ac.uk/profile/emmomp>
>
> NERC is part of UK Research and Innovation www.ukri.org
> <http://www.ukri.org/>
> Please think of the environment before printing out this message
>
>
> 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.
>
>
> _______________________________________________
> ecco-support mailing list
> ecco-support at mit.edu
> https://mailman.mit.edu/mailman/listinfo/ecco-support
--
Dr Emma Boland | Physical Oceanographer | British Antarctic Survey
High Cross, Madingley Road, Cambridge CB3 0ET
emmomp at bas.ac.uk | Phone: (0)1223 221276
Web: www.bas.ac.uk/profile/emmomp <http://www.bas.ac.uk/profile/emmomp>
NERC is part of UK Research and Innovation www.ukri.org
<http://www.ukri.org/>
Please think of the environment before printing out this message
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.mit.edu/pipermail/ecco-support/attachments/20240126/45b4ccda/attachment.htm>
More information about the ecco-support
mailing list