# Restart fails with ice variables not found

**URL:** <https://nemo-ocean.discourse.group/t/restart-fails-with-ice-variables-not-found/541>\
**Category:** v4.2.x\
**Created:** [27 July 2023 09:46 UTC](https://nemo-ocean.discourse.group/t/restart-fails-with-ice-variables-not-found/541 "2023-07-27T09:46:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![knaughten](https://yyz2.discourse-cdn.com/free1/user_avatar/nemo-ocean.discourse.group/knaughten/32/100_2.png) [@knaughten](https://nemo-ocean.discourse.group/u/knaughten)\
**Post date:** [27 July 2023 09:46 UTC](https://nemo-ocean.discourse.group/t/restart-fails-with-ice-variables-not-found/541/1 "2023-07-27T09:46:09Z")

</div>

Hello, I am new to NEMO so apologies if this is a beginner question!

I am trying out a colleague’s configuration on a different HPC facility, using NEMO 4.2. When I try to restart with the restart files he provided, it fails with the following errors:

iom\_varid, file: ./restart\_ice.nc, var: e\_s\_l02 not found

and similarly for var: sxc0\_l02, syc0\_l02, sxxc0\_l02, syyc0\_l02, sxyc0\_l02.

Indeed these variables are not in restart\_ice.nc, but how do I tell the code not to look for them?

Many thanks  
Kaitlin

---

<div class="post-metadata">

**Author:** ![Antoine\_Barthelemy](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@Antoine\_Barthelemy](https://nemo-ocean.discourse.group/u/Antoine_Barthelemy)\
**Post date:** [27 July 2023 14:40 UTC](https://nemo-ocean.discourse.group/t/restart-fails-with-ice-variables-not-found/541/2 "2023-07-27T14:40:44Z")

</div>

Hello Kaitlin,

It seems that the restart files come from a simulation where the sea ice model had 1 layers of snow (namelist parameter “nlay\_s”), and that you are attempting to use them to restart a simulation which would have 2 layers of snow. The model does not find the variables to initialize the second snow layer.

I don’t think there is an easy way around it, other than having the same number of snow layers in both simulations.

---

<div class="post-metadata">

**Author:** ![knaughten](https://yyz2.discourse-cdn.com/free1/user_avatar/nemo-ocean.discourse.group/knaughten/32/100_2.png) [@knaughten](https://nemo-ocean.discourse.group/u/knaughten)\
**Post date:** [28 July 2023 10:45 UTC](https://nemo-ocean.discourse.group/t/restart-fails-with-ice-variables-not-found/541/3 "2023-07-28T10:45:13Z")

</div>

Hi Antoine,

Thank you for your quick reply. Yes, I have nlay\_s=2. But strangely enough the problem has now gone away - it reads the restart and starts just fine despite the mismatch in snow variables. I made a number of changes to the namelist all at once (started using Nico Jourdain’s tools to automatically edit the namelist) so something there must have done it, but I’m not yet sure what.

Cheers,  
Kaitlin

---

<div class="post-metadata">

**Author:** ![clem](https://avatars.discourse-cdn.com/v4/letter/c/6a8cbe/32.png) [@clem](https://nemo-ocean.discourse.group/u/clem)\
**Post date:** [2 August 2023 13:08 UTC](https://nemo-ocean.discourse.group/t/restart-fails-with-ice-variables-not-found/541/4 "2023-08-02T13:08:13Z")

</div>

If your restart has only 1 ice layer, and you are looking for 2, then your model should fail in the version 4.2. In the “main” branch, the model just prints a warning and pretends you are starting from scratch and uses the namelist parameters defined in namini. To change the reading of your restart you need to code something in icerst.F90 routine but it will not be super neat.

---

<div class="post-metadata">

**Author:** ![knaughten](https://yyz2.discourse-cdn.com/free1/user_avatar/nemo-ocean.discourse.group/knaughten/32/100_2.png) [@knaughten](https://nemo-ocean.discourse.group/u/knaughten)\
**Post date:** [2 August 2023 16:32 UTC](https://nemo-ocean.discourse.group/t/restart-fails-with-ice-variables-not-found/541/5 "2023-08-02T16:32:57Z")

</div>

Hi clem,

Thanks for the advice, that’s good to know. My restart file does have 2 ice layers, and includes some variables like sye\_l02, etc. I think the difference is it does not have 2 snow layers. So, it does not fail, and it doesn’t seem to print any warnings either.

Cheers,  
Kaitlin
