# Failing mod that was added in um training

**URL:** <https://cms-helpdesk.ncas.ac.uk/t/failing-mod-that-was-added-in-um-training/623>\
**Category:** Unified Model\
**Created:** [17 June 2022 16:16 UTC](https://cms-helpdesk.ncas.ac.uk/t/failing-mod-that-was-added-in-um-training/623 "2022-06-17T16:16:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dfinney](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/dfinney/32/246_2.png) [@dfinney](https://cms-helpdesk.ncas.ac.uk/u/dfinney)\
**Post date:** [17 June 2022 16:16 UTC](https://cms-helpdesk.ncas.ac.uk/t/failing-mod-that-was-added-in-um-training/623/1 "2022-06-17T16:16:55Z")

</div>

Hi,

I’m running Ros’ um training. Going well so far. I got to up to testing that the branch works  
[https://ncas-cms.github.io/um-training/fcm-tutorial.html#testing-that-your-branch-works](https://ncas-cms.github.io/um-training/fcm-tutorial.html#testing-that-your-branch-works)

However, I think the mod I added is cauing some problems. job.err says

> [FAIL] UM\_TRAINING\_MOD.mod: bad or missing dependency (type=1.include)  
> [FAIL] required by: um\_shell\_mod.o  
> [FAIL] required by: UM\_SHELL\_MOD.mod  
> [FAIL] required by: um\_main.o  
> [FAIL] required by: um-atmos.exe

The example mod was not available at `~um/um-training/um_training_mod.F90` so I modified `~um/um-training/um_shell_sub.F90` instead, renaming things to um\_training\_mod and um\_training\_sub as described in the training webpage.

I haven’t made a module from scratch before, so I guess I’ve made an error but I’m not sure what it would be.

Any thoughts?

---

<div class="post-metadata">

**Author:** ![dfinney](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/dfinney/32/246_2.png) [@dfinney](https://cms-helpdesk.ncas.ac.uk/u/dfinney)\
**Post date:** [20 June 2022 08:59 UTC](https://cms-helpdesk.ncas.ac.uk/t/failing-mod-that-was-added-in-um-training/623/3 "2022-06-20T08:59:38Z")

</div>

I fixed this.

I had used a umPrint statement incorrectly.  
Original:

> CALL umPrint(’ This is subroutine UM\_TRAINING\_SUB’,src=‘um\_training\_sub’)

New:

> CALL umPrint(’ This is subroutine UM\_TRAINING\_SUB’,src=‘um\_training\_mod’)

I didn’t know what the src option referred to, but I’m guessing it is the module, or the filename under src directory.

With this change the modifications successfully ran.

---

<div class="post-metadata">

**Author:** ![dfinney](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/dfinney/32/246_2.png) [@dfinney](https://cms-helpdesk.ncas.ac.uk/u/dfinney)\
**Post date:** [20 June 2022 09:01 UTC](https://cms-helpdesk.ncas.ac.uk/t/failing-mod-that-was-added-in-um-training/623/4 "2022-06-20T09:01:38Z")

</div>

thanks Ros,

I’ve fixed this now.

I incorrectly used the src option in umPrint. I’m still not sure what it exactly refers to, though I can guess. Is there a man/help page on the function?

Kind regards,  
Dec

---

<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:** [3 November 2023 09:40 UTC](https://cms-helpdesk.ncas.ac.uk/t/failing-mod-that-was-added-in-um-training/623/5 "2023-11-03T09:40:47Z")

</div>

Automatically bumped on 3 November 2023 09:40 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:** [3 November 2023 16:42 UTC](https://cms-helpdesk.ncas.ac.uk/t/failing-mod-that-was-added-in-um-training/623/6 "2023-11-03T16:42:13Z")

</div>

Closed on 3 November 2023 16:42 UTC


