# MOM5 Freshwater restoring flux

**URL:** <https://forum.access-hive.org.au/t/mom5-freshwater-restoring-flux/5490>\
**Category:** COSIMA\
**Tags:** help\
**Created:** [4 November 2025 23:51 UTC](https://forum.access-hive.org.au/t/mom5-freshwater-restoring-flux/5490 "2025-11-04T23:51:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![KZCurtin](https://avatars.discourse-cdn.com/v4/letter/k/d26b3c/32.png) [@KZCurtin](https://forum.access-hive.org.au/u/KZCurtin)\
**Post date:** [4 November 2025 23:51 UTC](https://forum.access-hive.org.au/t/mom5-freshwater-restoring-flux/5490/1 "2025-11-04T23:51:37Z")

</div>

Hi all! I’m looking at the surface flux terms in an ACCESS-OM2-01 experiment, where I used prescribed restoring input as a freshwater flux in `pme_correct`. I was looking to confirm whether this `pme_correct` restoring term would be included in the total `pme_river` water mass flux variable? The variable descriptions seem like it should be, but I wasn’t sure how to check properly. Any insights would be much appreciated. Thanks!

---

<div class="post-metadata">

**Author:** ![anton](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/anton/32/1836_2.png) [@anton](https://forum.access-hive.org.au/u/anton)\
**Post date:** [5 November 2025 00:36 UTC](https://forum.access-hive.org.au/t/mom5-freshwater-restoring-flux/5490/2 "2025-11-05T00:36:00Z")

</div>

Hi Katja - @dougiesquire is on leave, so we might need @angus-g🙂

It looks to me like `pme_river` is calculated without `pme_correct`

e.g:

`pme_river` is calculated first:

> <https://github.com/mom-ocean/MOM5/blob/6bdbdd4892543bbade921fa3224b2530d93c6f40/src/mom5/ocean_core/ocean_sbc.F90#L4612>

and the `pme_correct` is calculated later and added to `pme` but not `pme_river`:

> <https://github.com/mom-ocean/MOM5/blob/6bdbdd4892543bbade921fa3224b2530d93c6f40/src/mom5/ocean_core/ocean_sbc.F90#L4717>

---

<div class="post-metadata">

**Author:** ![adele-morrison](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/adele-morrison/32/90_2.png) [@adele-morrison](https://forum.access-hive.org.au/u/adele-morrison)\
**Post date:** [5 November 2025 01:04 UTC](https://forum.access-hive.org.au/t/mom5-freshwater-restoring-flux/5490/3 "2025-11-05T01:04:41Z")

</div>

Except from what I can tell, the `pme_river` diagnostic is saved after pme\_correct is added to pme, and it saves `pme` + `river`, not `pme_river`. Is that right @anton ?

---

<div class="post-metadata">

**Author:** ![anton](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/anton/32/1836_2.png) [@anton](https://forum.access-hive.org.au/u/anton)\
**Post date:** [5 November 2025 02:10 UTC](https://forum.access-hive.org.au/t/mom5-freshwater-restoring-flux/5490/4 "2025-11-05T02:10:07Z")

</div>

It’s not very clear but I don’t think so :

`pme_river` diag is written [as part of](https://github.com/mom-ocean/MOM5/blob/6bdbdd4892543bbade921fa3224b2530d93c6f40/src/mom5/ocean_core/ocean_sbc.F90#L5942)`subroutine ocean_sbc_diag` which is called [in](https://github.com/mom-ocean/MOM5/blob/6bdbdd4892543bbade921fa3224b2530d93c6f40/src/mom5/ocean_core/ocean_sbc.F90#L4440) `subroutine get_ocean_sbc`

`pme_correct` diag is written [in](https://github.com/mom-ocean/MOM5/blob/6bdbdd4892543bbade921fa3224b2530d93c6f40/src/mom5/ocean_core/ocean_sbc.F90#L4826) `subroutine flux_adjust` which is called [after](https://github.com/mom-ocean/MOM5/blob/6bdbdd4892543bbade921fa3224b2530d93c6f40/src/mom5/ocean_core/ocean_model.F90#L1600-L1607) `get_ocean_sbc`

Do the outputs of `pme_river` look like they include the correction ?

---

<div class="post-metadata">

**Author:** ![anton](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/anton/32/1836_2.png) [@anton](https://forum.access-hive.org.au/u/anton)\
**Post date:** [5 November 2025 05:13 UTC](https://forum.access-hive.org.au/t/mom5-freshwater-restoring-flux/5490/5 "2025-11-05T05:13:00Z")

</div>



---

<div class="post-metadata">

**Author:** ![KZCurtin](https://avatars.discourse-cdn.com/v4/letter/k/d26b3c/32.png) [@KZCurtin](https://forum.access-hive.org.au/u/KZCurtin)\
**Post date:** [5 November 2025 06:13 UTC](https://forum.access-hive.org.au/t/mom5-freshwater-restoring-flux/5490/6 "2025-11-05T06:13:43Z")

</div>

When I assumed that pme\_river did not include the correction, the answers looked much more reasonable compared to when I tested with the assumption that pme\_river did include the correction 🙂

---

<div class="post-metadata">

**Author:** ![clairecarouge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/clairecarouge/32/380_2.png) [@clairecarouge](https://forum.access-hive.org.au/u/clairecarouge)\
**Post date:** [8 December 2025 23:27 UTC](https://forum.access-hive.org.au/t/mom5-freshwater-restoring-flux/5490/7 "2025-12-08T23:27:21Z")

</div>


