# Sudden "NaNs in error term in BiCGstab" after model running smoothly

**URL:** <https://cms-helpdesk.ncas.ac.uk/t/sudden-nans-in-error-term-in-bicgstab-after-model-running-smoothly/1355>\
**Category:** Unified Model\
**Tags:** ARCHER2\
**Created:** [28 February 2024 21:21 UTC](https://cms-helpdesk.ncas.ac.uk/t/sudden-nans-in-error-term-in-bicgstab-after-model-running-smoothly/1355 "2024-02-28T21:21:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajw1g19](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@ajw1g19](https://cms-helpdesk.ncas.ac.uk/u/ajw1g19)\
**Post date:** [28 February 2024 21:21 UTC](https://cms-helpdesk.ncas.ac.uk/t/sudden-nans-in-error-term-in-bicgstab-after-model-running-smoothly/1355/1 "2024-02-28T21:21:55Z")

</div>

Hi CMS Helpdesk,

I’m running a 3-month simulation of u-dd727 which is a UKESM1.1 piClim-control (AMIP) suite with TRIFFID enabled and I’ve run into the infamous “NaNs in error term in BiCGstab” failure after 1 iteration in the atmos\_main task. The error appears to occur on every processor and I can’t identify where the NaN terms are coming from, even after enabling extra diagnostic messages in the task output for atmosphere and recon.

The model was running without any errors on shorter 10-day runs. I made a couple of changes to the model output streams and adjusted the model dump frequency and the run length before running the suite again. I have also tried rebuilding the UM from scratch but this had no impact.

Can you advise where to identify the source of the error and possibly explain why this happened all of a sudden?

Thanks,  
Alfred

---

<div class="post-metadata">

**Author:** ![ajw1g19](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@ajw1g19](https://cms-helpdesk.ncas.ac.uk/u/ajw1g19)\
**Post date:** [29 February 2024 20:40 UTC](https://cms-helpdesk.ncas.ac.uk/t/sudden-nans-in-error-term-in-bicgstab-after-model-running-smoothly/1355/2 "2024-02-29T20:40:39Z")

</div>

Hi CMS,

After some digging, the error is connected to Fast physics terms from atmos\_physics2:

 ![Screenshot 2024-02-29 at 19.58.53](https://europe1.discourse-cdn.com/flex013/uploads/cms_support/original/1X/fd51b5a000685bce6c3e5d3f5036881669c740e5.png)

This was from a new run with u-de067, a copy of the above suite but configured from its original source: u-cw506. I’ve had a look through the recon but can’t spot anything unusual.

Can you advise?

Alfred

---

<div class="post-metadata">

**Author:** ![ajw1g19](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@ajw1g19](https://cms-helpdesk.ncas.ac.uk/u/ajw1g19)\
**Post date:** [29 February 2024 23:39 UTC](https://cms-helpdesk.ncas.ac.uk/t/sudden-nans-in-error-term-in-bicgstab-after-model-running-smoothly/1355/3 "2024-02-29T23:39:50Z")

</div>

Hi CMS,

I’m pleased to say I’ve corrected the issue which was a corrupted initial dump file. I’ve no earthly idea how it became corrupted but after copying a fresh version of the dump the model ran smoothly with full functionality.

Thank you for your time,  
Alfred

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/cms_support/original/1X/1fd2411499ffcbc299fe756cd5cdf26e44956558.png) [@system](https://cms-helpdesk.ncas.ac.uk/u/system)\
**Post date:** [30 March 2024 23:40 UTC](https://cms-helpdesk.ncas.ac.uk/t/sudden-nans-in-error-term-in-bicgstab-after-model-running-smoothly/1355/4 "2024-03-30T23:40:37Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
