# UKCA error when reading in initial data / wrong number of prognostic fields

**URL:** <https://cms-helpdesk.ncas.ac.uk/t/ukca-error-when-reading-in-initial-data-wrong-number-of-prognostic-fields/791>\
**Category:** Unified Model\
**Tags:** ARCHER2\
**Created:** [15 November 2022 17:12 UTC](https://cms-helpdesk.ncas.ac.uk/t/ukca-error-when-reading-in-initial-data-wrong-number-of-prognostic-fields/791 "2022-11-15T17:12:37Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![anmcr](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@anmcr](https://cms-helpdesk.ncas.ac.uk/u/anmcr)\
**Post date:** [15 November 2022 17:12 UTC](https://cms-helpdesk.ncas.ac.uk/t/ukca-error-when-reading-in-initial-data-wrong-number-of-prognostic-fields/791/1 "2022-11-15T17:12:37Z")

</div>

Hi Helpdesk,

I followed the online information to get the standard UKESM1.1-AMIP suite running on ARCHER2: [UKESM1.1-AMIP Release Notes](https://cms.ncas.ac.uk/unified-model/configurations/ukesm/relnotes-1.1/amip/). My job is u-cs003.

I haven’t made any additional changes apart from the ones specified on the website. However, the model fails with the following error:

???  
???!!!???!!!???!!!???!!!???!!! ERROR ???!!!???!!!???!!!???!!!???!!!  
? Error code: 102  
? Error from routine: INITIAL\_4A  
? Error message: INITDUMP: Wrong no of atmos prognostic fields  
? Error from processor: 52  
? Error number: 60  
???

Are you able to please advise? As this is a standard version of the suite I would have thought that it would have ran.

Many thanks,

Andrew

---

<div class="post-metadata">

**Author:** ![anmcr](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@anmcr](https://cms-helpdesk.ncas.ac.uk/u/anmcr)\
**Post date:** [15 November 2022 17:29 UTC](https://cms-helpdesk.ncas.ac.uk/t/ukca-error-when-reading-in-initial-data-wrong-number-of-prognostic-fields/791/2 "2022-11-15T17:29:01Z")

</div>

Hello,  
I think I’ve found the issue, so please don’t investigate this for now.  
I hadn’t properly followed the step below.  
Thanks,  
Andrew

#### Optional configuration settings

To aid portability, the suites use site-specific optional configuration settings which override default values for some parameters when **suite conf → Machine Options → Site at which model is being run** is set to `Archer2`. In particular, when running on ARCHER2, the names for ancillaries in

- **um → namelist → Reconfiguration and Ancillary Control → Configure ancils and initialise dump fields**

are specified in `app/um/opt/rose-app-archer2.conf`.

---

<div class="post-metadata">

**Author:** ![anmcr](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@anmcr](https://cms-helpdesk.ncas.ac.uk/u/anmcr)\
**Post date:** [15 November 2022 18:00 UTC](https://cms-helpdesk.ncas.ac.uk/t/ukca-error-when-reading-in-initial-data-wrong-number-of-prognostic-fields/791/3 "2022-11-15T18:00:39Z")

</div>

Hi again,

I’m afraid that I’m still getting the same error. I added the ancils below (specified in app/um/opt/rose-app-archer2.conf) and also set the ‘source’ as ‘initialise from ancillary file’.

Any advice would be appreciated.

Thanks,

Andrew

[namelist:items(085d9ed4)]  
ancilfilename=‘/work/n02/n02/waltonj/ancil/u-by791/u-by791\_m01s00i216\_1979-2014\_annual\_timeseries\_land\_cover\_frac.anc’

[namelist:items(22b64ffe)]  
ancilfilename=‘/work/n02/n02/waltonj/ancil/MEDUSA/clims/by791/CHL/CHL\_clim\_by791\_1979\_2014\_n96.anc’

[namelist:items(6956d63c)]  
ancilfilename=‘/work/n02/n02/waltonj/ancil/MEDUSA/clims/by791/DMS/DMS\_clim\_by791\_1979\_2014\_n96.anc’

[namelist:items(6eae1ec3)]  
ancilfilename=‘/work/n02/n02/waltonj/ancil/u-by791/u-by791\_m01s00i218\_1979-2014\_time\_mean\_canopy\_height.anc’

[namelist:items(9566169f)]  
ancilfilename=‘/work/n02/n02/waltonj/ancil/u-by791/u-by791\_m01s00i217\_1979-2014\_monthly\_climatology\_LAI.anc’

---

<div class="post-metadata">

**Author:** ![RosalynHatcher](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/rosalynhatcher/32/11_2.png) [@RosalynHatcher](https://cms-helpdesk.ncas.ac.uk/u/RosalynHatcher)\
**Post date:** [16 November 2022 07:27 UTC](https://cms-helpdesk.ncas.ac.uk/t/ukca-error-when-reading-in-initial-data-wrong-number-of-prognostic-fields/791/5 "2022-11-16T07:27:22Z")

</div>

Hi Andrew,

You don’t need to add the ancils manually; that section was just alerting you to the fact that they are in an optional configuration file that gets automatically loaded when you set the “Site at which the model is being run” to Archer2.

Have you run the reconfiguration?

Cheers,  
Ros.

---

<div class="post-metadata">

**Author:** ![grenville](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/grenville/32/29_2.png) [@grenville](https://cms-helpdesk.ncas.ac.uk/u/grenville)\
**Post date:** [16 November 2022 09:31 UTC](https://cms-helpdesk.ncas.ac.uk/t/ukca-error-when-reading-in-initial-data-wrong-number-of-prognostic-fields/791/6 "2022-11-16T09:31:18Z")

</div>

Andrew

The problem appears to be with the start file, it’s still missing some required data (that’s what the error message is telling us at least.)

Can you try a different start file?

Grenvill

---

<div class="post-metadata">

**Author:** ![anmcr](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@anmcr](https://cms-helpdesk.ncas.ac.uk/u/anmcr)\
**Post date:** [16 November 2022 09:53 UTC](https://cms-helpdesk.ncas.ac.uk/t/ukca-error-when-reading-in-initial-data-wrong-number-of-prognostic-fields/791/7 "2022-11-16T09:53:51Z")

</div>

Hi Grenville,

I don’t have a different start file, but I could ask Luke Abraham if he has one.

I’m just trying to run the standard job for the UKESM1.1-AMIP model ([https://cms.ncas.ac.uk/unified-model/configurations/ukesm/relnotes-1.1/amip/](https://cms.ncas.ac.uk/unified-model/configurations/ukesm/relnotes-1.1/amip/)), so I’m using the startdump that came with that job.

Best wishes,

Andrew

---

<div class="post-metadata">

**Author:** ![anmcr](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@anmcr](https://cms-helpdesk.ncas.ac.uk/u/anmcr)\
**Post date:** [16 November 2022 10:18 UTC](https://cms-helpdesk.ncas.ac.uk/t/ukca-error-when-reading-in-initial-data-wrong-number-of-prognostic-fields/791/8 "2022-11-16T10:18:49Z")

</div>

Hi Ros,

Thank you for the prompt reply.

Oh, I had switched off the ‘Run Reconfiguration’ button, which may explain this 😊

Let me investigate …

Best wishes,

Andrew

---

<div class="post-metadata">

**Author:** ![anmcr](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@anmcr](https://cms-helpdesk.ncas.ac.uk/u/anmcr)\
**Post date:** [16 November 2022 10:56 UTC](https://cms-helpdesk.ncas.ac.uk/t/ukca-error-when-reading-in-initial-data-wrong-number-of-prognostic-fields/791/9 "2022-11-16T10:56:49Z")

</div>

Hi Ros,

I ran the reconfiguration but it fails with the error below, which seems to be a permission error related to reading in the start file. The file is obviously there, and the permissions seem correct. So I’m a little confused what the issue is.

Thanks,

Andrew

OPEN: File Open Failed: Permission denied

???  
??? WARNING ???  
? Warning code: -12  
? Warning from routine: io:file\_open  
? Warning message: An error occurred opening a file  
? Warning from processor: 0  
? Warning number: 2  
???

???  
???!!!???!!!???!!!???!!!???!!! ERROR ???!!!???!!!???!!!???!!!???!!!  
? Error code: 1  
? Error from routine: io:file\_open  
? Error message: Failed to open file /work/n02/n02/anmcr/cylc-run/u-cs003/share/data/cs003a.astart  
? Error from processor: 0  
? Error number: 3  
???

---

<div class="post-metadata">

**Author:** ![RosalynHatcher](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/rosalynhatcher/32/11_2.png) [@RosalynHatcher](https://cms-helpdesk.ncas.ac.uk/u/RosalynHatcher)\
**Post date:** [16 November 2022 11:28 UTC](https://cms-helpdesk.ncas.ac.uk/t/ukca-error-when-reading-in-initial-data-wrong-number-of-prognostic-fields/791/10 "2022-11-16T11:28:36Z")

</div>

Hi Andrew,

The suite u-cj514 runs straight out of the box with just the changes detailed in the above link and I suggest turning off the mirad of development tests which you don’t need. I ran it ok last night.

Can I suggest you try taking a clean copy of the that suite and run again please?

Cheers,  
Ros.

---

<div class="post-metadata">

**Author:** ![anmcr](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@anmcr](https://cms-helpdesk.ncas.ac.uk/u/anmcr)\
**Post date:** [16 November 2022 12:32 UTC](https://cms-helpdesk.ncas.ac.uk/t/ukca-error-when-reading-in-initial-data-wrong-number-of-prognostic-fields/791/11 "2022-11-16T12:32:59Z")

</div>

Hi Ros,  
Okay. I will do this now and update you.  
Thanks,  
Andrew

---

<div class="post-metadata">

**Author:** ![anmcr](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@anmcr](https://cms-helpdesk.ncas.ac.uk/u/anmcr)\
**Post date:** [16 November 2022 18:43 UTC](https://cms-helpdesk.ncas.ac.uk/t/ukca-error-when-reading-in-initial-data-wrong-number-of-prognostic-fields/791/12 "2022-11-16T18:43:20Z")

</div>

Hi Ros,

I started from scratch, and also switched off all the ‘tests’. However, I get the same error as above, which seems to be around not having the correct permission to open my reconfigured start file. See below.

Best wishes,

Andrew

OPEN: File Open Failed: Permission denied

???  
??? WARNING ???  
? Warning code: -12  
? Warning from routine: io:file\_open  
? Warning message: An error occurred opening a file  
? Warning from processor: 0  
? Warning number: 2  
???

???  
???!!!???!!!???!!!???!!!???!!! ERROR ???!!!???!!!???!!!???!!!???!!!  
? Error code: 1  
? Error from routine: io:file\_open  
? Error message: Failed to open file /work/n02/n02/anmcr/cylc-run/u-cs043/share/data/cs043a.astart  
? Error from processor: 0  
? Error number: 3  
???

---

<div class="post-metadata">

**Author:** ![RosalynHatcher](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/rosalynhatcher/32/11_2.png) [@RosalynHatcher](https://cms-helpdesk.ncas.ac.uk/u/RosalynHatcher)\
**Post date:** [17 November 2022 11:32 UTC](https://cms-helpdesk.ncas.ac.uk/t/ukca-error-when-reading-in-initial-data-wrong-number-of-prognostic-fields/791/13 "2022-11-17T11:32:06Z")

</div>

Hi Andrew,

I hadn’t appreciated you had run the suite several times, with it working fine on the first attempt and then failing subsequently. I can now see what’s going on.

1st run with recon - **ainitial** symlink to JWs start file, reconfigured dump written to **astart**  
2nd run without recon - **astart** symlink to JWs start file - fails as dump needs reconfiguring  
3rd run with recon - **ainitial** symlink to JWs start file, can’t write reconfigured dump as **astart** previously symlink’d to JW in 2nd run; permission denied.

This is a problem with the suite setup.

In `app/install_cold/opt` remove the file `rose-app-no-recon.conf`.  
This will mean when reconfiguration is switched off after having run it successfully once, the reconfigured dump will be used rather than defaulting back to the ainitial file.  
You’ll need to do a `rose suite-run --new` to clear things out.

I will let the Met Office know so that they can fix the suite.

I noticed that you’ve taken a copy of the suite branch `u-cj514/porting_fixes` rather than the trunk. I think it is probably ok but there are a couple of edits in the trunk that aren’t in the porting\_fixes branch. So to be safe I would suggest switching to using the trunk. Always take the suite trunk unless instructions explicitly say otherwise.

Cheers,  
Ros.

---

<div class="post-metadata">

**Author:** ![anmcr](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@anmcr](https://cms-helpdesk.ncas.ac.uk/u/anmcr)\
**Post date:** [17 November 2022 15:54 UTC](https://cms-helpdesk.ncas.ac.uk/t/ukca-error-when-reading-in-initial-data-wrong-number-of-prognostic-fields/791/14 "2022-11-17T15:54:31Z")

</div>

Hi Ros,

Thanks for your quick reply. I implemented all the suggestions you made, and the model is running successfully (it hasn’t finished yet, but I can see that its moving forward through the model timesteps).

I really appreciate your help.

Best wishes,

Andrew

---

<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:** [14 November 2023 13:04 UTC](https://cms-helpdesk.ncas.ac.uk/t/ukca-error-when-reading-in-initial-data-wrong-number-of-prognostic-fields/791/15 "2023-11-14T13:04:55Z")

</div>

Automatically bumped on 14 November 2023 13:04 UTC



---

<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:** [14 December 2023 07:57 UTC](https://cms-helpdesk.ncas.ac.uk/t/ukca-error-when-reading-in-initial-data-wrong-number-of-prognostic-fields/791/16 "2023-12-14T07:57:48Z")

</div>

Automatically bumped on 14 December 2023 07:57 UTC



---

<div class="post-metadata">

**Author:** ![RosalynHatcher](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/rosalynhatcher/32/11_2.png) [@RosalynHatcher](https://cms-helpdesk.ncas.ac.uk/u/RosalynHatcher)\
**Post date:** [14 December 2023 08:38 UTC](https://cms-helpdesk.ncas.ac.uk/t/ukca-error-when-reading-in-initial-data-wrong-number-of-prognostic-fields/791/17 "2023-12-14T08:38:37Z")

</div>

Closed on 14 December 2023 08:38 UTC


