# HadGEM-GC3.1-MM workflow

**URL:** <https://cms-helpdesk.ncas.ac.uk/t/hadgem-gc3-1-mm-workflow/281>\
**Category:** NEMO and CICE\
**Tags:** Monsoon2\
**Created:** [28 October 2021 11:11 UTC](https://cms-helpdesk.ncas.ac.uk/t/hadgem-gc3-1-mm-workflow/281 "2021-10-28T11:11:24Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alcide.Zhao](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/alcide.zhao/32/54_2.png) [@Alcide.Zhao](https://cms-helpdesk.ncas.ac.uk/u/Alcide.Zhao)\
**Post date:** [28 October 2021 11:11 UTC](https://cms-helpdesk.ncas.ac.uk/t/hadgem-gc3-1-mm-workflow/281/1 "2021-10-28T11:11:24Z")

</div>

Dear CMS help desk,

I am working on a HadGEM-GC31.-MM simulation (u-c916), which is originally copied from u-aq281 (the one for CMIP6 piControl).  
I did some changes to the NEMO source code, etc, and have successfully built it and run it on `meto_monsoon`. However, there are a few tasks after housekeeping that I do not understand. These are `coupled_crun/lrun/nrun`. Although these went through OK, but what are they for?

There are also the tasks `nemo_rebuild_restart_lrun/crun/nrun` after `coupled_crun/lrun/nrun`. Again, I do not understand why these are here, since I thought you do not need to rebuild the model?  
The other problem is that I got errors here as attached below. It is a python3 problem I guess, and I can edit the icb\_combrest.py file to resolve this issue. However, is there a way to solve this universally?

Would be great if you could help me around.  
Cheers, Alcide

> File “/home/d04/alzha/cylc-run/u-ci916/bin/icb\_combrest.py”, line 81  
> print ‘Error: unable to open input file: ’ + pathstart+nn+’.nc’  
> ^  
> SyntaxError: Missing parentheses in call to ‘print’. Did you mean print(‘Error: unable to open input file: ’ + pathstart+nn+’.nc’)?  
> [FAIL] rebuild\_nemo\_restart\_files # return-code=1  
> 2021-10-28T10:58:18Z CRITICAL - failed/EXIT

---

<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:** [28 October 2021 15:29 UTC](https://cms-helpdesk.ncas.ac.uk/t/hadgem-gc3-1-mm-workflow/281/2 "2021-10-28T15:29:04Z")

</div>

Hi Alcide,

In _suite conf → restart tests_ switch off “Test restartability”, this will switch off all th extra development tests that you don’t need. This will include the `coupled_crun/lrun/nrun` tasks and the associated `nemo_rebuild_*` tasks.

Regards,  
Ros.

---

<div class="post-metadata">

**Author:** ![Alcide.Zhao](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/alcide.zhao/32/54_2.png) [@Alcide.Zhao](https://cms-helpdesk.ncas.ac.uk/u/Alcide.Zhao)\
**Post date:** [28 October 2021 15:33 UTC](https://cms-helpdesk.ncas.ac.uk/t/hadgem-gc3-1-mm-workflow/281/3 "2021-10-28T15:33:24Z")

</div>

Hi Ross,

Super, that was magic and all sorted.

thank you sososo much!

Cheers, Alcide

---

<div class="post-metadata">

**Author:** ![Alcide.Zhao](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/alcide.zhao/32/54_2.png) [@Alcide.Zhao](https://cms-helpdesk.ncas.ac.uk/u/Alcide.Zhao)\
**Post date:** [29 October 2021 11:06 UTC](https://cms-helpdesk.ncas.ac.uk/t/hadgem-gc3-1-mm-workflow/281/4 "2021-10-29T11:06:52Z")

</div>

Hi Ros,

I am having the another issue.  
So the suite `u-ci916` was fine and I run it for a few months. I then copied it into `u-cj025`. Now, `u-cj025` halts even at the very initial stage of `validate_suite_info` with the errors attached below.  
This is again a python issue, but strangely it worked previously for `u-ci916`.  
Any suggestions?

Cheers, Alcide

> File “/home/d04/alzha/cylc-run/u-cj025/bin/validate\_suite\_info.py”, line 271, in   
> main()  
> File “/home/d04/alzha/cylc-run/u-cj025/bin/validate\_suite\_info.py”, line 251, in main  
> warnings, errors = check\_experiment(suite\_info, cv\_experiment\_id)  
> ValueError: need more than 1 value to unpack  
> [FAIL] python2.7 $CYLC\_SUITE\_RUN\_DIR/bin/validate\_suite\_info.py $CYLC\_SUITE\_RUN\_DIR \<\<‘ **STDIN** ’  
> [FAIL]  
> [FAIL] ‘ **STDIN** ’ # return-code=1  
> /usr/lib64/python2.6/site-packages/requests/packages/urllib3/connection.py:337: SubjectAltNameWarning: Certificate for xcslc1 has no `subjectAltName`, falling back to check for a `commonName` for now. This feature is being removed by major browsers and deprecated by RFC 2818. (See [Feature: Remove support for common names in certificates · Issue #497 · urllib3/urllib3 · GitHub](https://github.com/shazow/urllib3/issues/497) for details.)  
> SubjectAltNameWarning

---

<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:** [29 October 2021 12:47 UTC](https://cms-helpdesk.ncas.ac.uk/t/hadgem-gc3-1-mm-workflow/281/5 "2021-10-29T12:47:04Z")

</div>

Hi Alcide,

`validate_suite_info` doesn’t work for me in either of the suites. It is not an unusual occurrence, we usually just suggest turning off the task or ignoring it and manually set the task to succeeeded. This task only checks some of the suite metadata with what’s held in the online CMIP6 controlled vocabulary so won’t affect the running of the suite at all.

Regards,  
Ros.

---

<div class="post-metadata">

**Author:** ![Alcide.Zhao](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/alcide.zhao/32/54_2.png) [@Alcide.Zhao](https://cms-helpdesk.ncas.ac.uk/u/Alcide.Zhao)\
**Post date:** [29 October 2021 12:51 UTC](https://cms-helpdesk.ncas.ac.uk/t/hadgem-gc3-1-mm-workflow/281/6 "2021-10-29T12:51:01Z")

</div>

Hi Ros,

I believe I have done that by editing `suite.rc`.  
However, there is then an error with fcm\_make\_um:  
Seems there is some variable definitions that are missing?  
Cheers, Alcide

> [FAIL] /working/d04/alzha/cylc-run/u-cj025/work/18500101T0000Z/fcm\_make\_um/fcm-make.cfg:9: reference to undefined variable  
> [FAIL] extract.location{diff}[shumlib] =  
> [FAIL] undef($shumlib\_sources)

---

<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:** [3 November 2021 14:58 UTC](https://cms-helpdesk.ncas.ac.uk/t/hadgem-gc3-1-mm-workflow/281/8 "2021-11-03T14:58:32Z")

</div>

Hi Alcide,

Sorry for the delay in getting back to you. Looks like you have managed to solve this problem now is that correct?

Regards,  
Ros.

---

<div class="post-metadata">

**Author:** ![Alcide.Zhao](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/alcide.zhao/32/54_2.png) [@Alcide.Zhao](https://cms-helpdesk.ncas.ac.uk/u/Alcide.Zhao)\
**Post date:** [3 November 2021 15:18 UTC](https://cms-helpdesk.ncas.ac.uk/t/hadgem-gc3-1-mm-workflow/281/9 "2021-11-03T15:18:59Z")

</div>

Hi Ross,  
no worries at all.  
I solved the issue partly by linking the built um model from the u-ci916. However, I still want to know how I can resolve this issue properly if possible.

Cheers, Alcide

---

<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:** [5 November 2021 09:35 UTC](https://cms-helpdesk.ncas.ac.uk/t/hadgem-gc3-1-mm-workflow/281/10 "2021-11-05T09:35:36Z")

</div>

Hi Alcide,

Back in `u-ci916` at revision 209452 you added in lines to the fcm\_make config files to extract `shumlib` and `casim`, this is the cause of the problem. Remove these lines and the UM will build ok again.

See [u-ci916 changeset diff](https://code.metoffice.gov.uk/trac/roses-u/changeset?reponame=&new=209452%40c%2Fi%2F9%2F1%2F6&old=209409%40c%2Fi%2F9%2F1%2F6) on MOSRS.

Regards,  
Ros.

---

<div class="post-metadata">

**Author:** ![Alcide.Zhao](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/alcide.zhao/32/54_2.png) [@Alcide.Zhao](https://cms-helpdesk.ncas.ac.uk/u/Alcide.Zhao)\
**Post date:** [5 November 2021 09:59 UTC](https://cms-helpdesk.ncas.ac.uk/t/hadgem-gc3-1-mm-workflow/281/11 "2021-11-05T09:59:44Z")

</div>

Thanks Ros for spotting out the issue. However, I do not remember to have changed these files.  
Do I need to remove these lines from fcm\_make\_um/file/fcm-make\_main/slash.cfg as well ?

Cheers, Alcide

---

<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:** [5 November 2021 10:01 UTC](https://cms-helpdesk.ncas.ac.uk/t/hadgem-gc3-1-mm-workflow/281/12 "2021-11-05T10:01:26Z")

</div>

Hi Alcide,

Yes, remove those 2 lines from the 3 .cfg files.

Cheers,  
Ros.

---

<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:** [4 January 2022 08:52 UTC](https://cms-helpdesk.ncas.ac.uk/t/hadgem-gc3-1-mm-workflow/281/13 "2022-01-04T08:52:22Z")

</div>

Closed on 4 January 2022 08:52 UTC


