# Salinity out of range when running ACCESS-OM2-01

**URL:** <https://forum.access-hive.org.au/t/salinity-out-of-range-when-running-access-om2-01/5805>\
**Category:** COSIMA\
**Tags:** help, community-help\
**Created:** [21 January 2026 02:44 UTC](https://forum.access-hive.org.au/t/salinity-out-of-range-when-running-access-om2-01/5805 "2026-01-21T02:44:40Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hangyum](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/hangyum/32/561_2.png) [@Hangyum](https://forum.access-hive.org.au/u/Hangyum)\
**Post date:** [21 January 2026 02:44 UTC](https://forum.access-hive.org.au/t/salinity-out-of-range-when-running-access-om2-01/5805/1 "2026-01-21T02:44:41Z")

</div>

Hello everyone, I recently ran some experiments with ACCESS-OM2-01, and got an error called

`salinity out of range with value 7.001377524657E+01 at (i,j,k) = (2310,1250, 2), (lon,lat,dpt) = ( -49.0500, 0.4500, 1.6763 m)`.

In this experiment, we made some changes in salinity restoring:

(1) We switched off the salinity restoring in the model.

(2) We switch on the `do_flux_correction = true`in input.nml, and create a prescribed salinity restoring file called salt\_sfc\_correction.nc. As salt\_sfc\_correction should be freshwater flux, we followed the equation `-sfc_salt_flux_restore*1000/SA` , and used sfc\_salt\_flux\_restore and SSS to transfer the salt flux from restoring to the freshwater flux. Further, the experiemnt that we used is ‘01deg\_jra55v13\_ryf9091’ after 200 years spun up (2100-2101).

However, the model crashed due to the error shown above. When we check the salt\_sfc\_correction.nc (in the map shown below), there is a quite large freshwater flux found near the Amazon region (-49,05, 0.45). We think that this large freshwater flux may cause the crash of the model.

 ![download](https://us1.discourse-cdn.com/flex020/uploads/access1/original/2X/e/ec23d7b1efd96be66422d77ecac103acdb90dca9.png)

We also found the low SSS near the Amazon, which results in this large amount of freshwater flux in salt\_sfc\_correction.nc.

 ![download-3](https://us1.discourse-cdn.com/flex020/uploads/access1/original/2X/4/470bf57ade6b3b743c9e72682f30be12afddb563.png)

Therefore, does anyone know why the SSS near the Amazon is so low? And is there a threshold of salt\_sfc\_correction.nc that I can follow to make the salinity within the range?

---

<div class="post-metadata">

**Author:** ![edoddridge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/edoddridge/32/108_2.png) [@edoddridge](https://forum.access-hive.org.au/u/edoddridge)\
**Post date:** [21 January 2026 03:04 UTC](https://forum.access-hive.org.au/t/salinity-out-of-range-when-running-access-om2-01/5805/2 "2026-01-21T03:04:56Z")

</div>

> does anyone know why the SSS near the Amazon is so low?

It’s quite a large river… Something like 20% of total global river flow.

> **[Amazon River](https://en.wikipedia.org/wiki/Amazon_River)**
>
> (Amazon–Ucayali–Tambo–Ené–Apurímac 6,400 km (4,000 mi) – 6,500 km (4,000 mi)\[n 1\]
> 6,743,000 km2 (2,603,000 sq mi)–7,000,000 km2 (2,700,000 sq mi)
> (Period: 2003–2015) 230,000 m3/s (8,100,000 cu ft/s)

Unless I’m misreading it, the error suggests that surface salinity is getting too high a point in the Southern Ocean (49°S, 0.5°E), which isn’t near the Amazon. What makes you think the Amazon is the problem?

---

<div class="post-metadata">

**Author:** ![Hangyum](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/hangyum/32/561_2.png) [@Hangyum](https://forum.access-hive.org.au/u/Hangyum)\
**Post date:** [21 January 2026 03:16 UTC](https://forum.access-hive.org.au/t/salinity-out-of-range-when-running-access-om2-01/5805/3 "2026-01-21T03:16:04Z")

</div>

Thanks @edoddridge , I have never known that the runoff from Amazon is so large!

From the error message, I think the longitude is -49 and the latitude is 0.5, which is near the Amazon river.

---

<div class="post-metadata">

**Author:** ![Wilton\_Aguiar](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/wilton_aguiar/32/236_2.png) [@Wilton\_Aguiar](https://forum.access-hive.org.au/u/Wilton_Aguiar)\
**Post date:** [21 January 2026 03:20 UTC](https://forum.access-hive.org.au/t/salinity-out-of-range-when-running-access-om2-01/5805/4 "2026-01-21T03:20:20Z")

</div>

I thought we had fix that amazon error before by reducing the restoring there and the problem now were negative salinities somewhere else in the NH - no?

---

<div class="post-metadata">

**Author:** ![Hangyum](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/hangyum/32/561_2.png) [@Hangyum](https://forum.access-hive.org.au/u/Hangyum)\
**Post date:** [21 January 2026 03:24 UTC](https://forum.access-hive.org.au/t/salinity-out-of-range-when-running-access-om2-01/5805/5 "2026-01-21T03:24:28Z")

</div>

I think we need a threshold of salt\_sfc\_correction to avoid this error. This implies that the salt\_sfc\_correction removes quite a lot of water from the ocean near the Amazon, which is out of balance with the runoff from the Amazon River.

---

<div class="post-metadata">

**Author:** ![Wilton\_Aguiar](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/wilton_aguiar/32/236_2.png) [@Wilton\_Aguiar](https://forum.access-hive.org.au/u/Wilton_Aguiar)\
**Post date:** [21 January 2026 03:30 UTC](https://forum.access-hive.org.au/t/salinity-out-of-range-when-running-access-om2-01/5805/6 "2026-01-21T03:30:47Z")

</div>

@Hangyum The error you had of negative salinity somewhere else in the North Hemisphere is probably more telling for people to help - maybe post that one too?

---

<div class="post-metadata">

**Author:** ![edoddridge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/edoddridge/32/108_2.png) [@edoddridge](https://forum.access-hive.org.au/u/edoddridge)\
**Post date:** [21 January 2026 03:31 UTC](https://forum.access-hive.org.au/t/salinity-out-of-range-when-running-access-om2-01/5805/7 "2026-01-21T03:31:35Z")

</div>

> From the error message, I think the longitude is -49 and the latitude is 0.5, which is near the Amazon river.

Ah, (lon, lat), not (lat, lon). I should have read it more carefully.

---

<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:** [21 January 2026 03:34 UTC](https://forum.access-hive.org.au/t/salinity-out-of-range-when-running-access-om2-01/5805/8 "2026-01-21T03:34:54Z")

</div>

In the normal ACCESS-OM2 configurations, there are some “caps” applied to runoff from the high volume global rivers. When runoff in a cell exceeds the cap, it is spread horizontally. This means that river runoff is spread across the ocean surface to keep salinity relatively within bounds. These caps are [configured](https://github.com/ACCESS-NRI/access-om2-configs/blob/fe2e9ae331ff057e53393df1d2f27892f30f910f/atmosphere/atm.nml#L7C6-L11C44) in the `atm.nml` file.

However that still relies on salinity restoring replacing surface salinity at those locations where the runoff is being added to keep salinity within the bounds of what is reasonable for the model. I would guess that salt is added at the maximum allowed rate (or close to) at the mouth of the Amazon.

It sounds like your experiment will trying to adjust the ocean salinity by adding/removing freshwater ? Which means that the river runoff would be getting removed again ? Can you compare SSS between this experiment and the baseline to see how well this flux correction is working?

---

<div class="post-metadata">

**Author:** ![Hangyum](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/hangyum/32/561_2.png) [@Hangyum](https://forum.access-hive.org.au/u/Hangyum)\
**Post date:** [21 January 2026 04:23 UTC](https://forum.access-hive.org.au/t/salinity-out-of-range-when-running-access-om2-01/5805/9 "2026-01-21T04:23:31Z")

</div>

This order also confuses me sometimes 🤣

---

<div class="post-metadata">

**Author:** ![Hangyum](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/hangyum/32/561_2.png) [@Hangyum](https://forum.access-hive.org.au/u/Hangyum)\
**Post date:** [21 January 2026 04:34 UTC](https://forum.access-hive.org.au/t/salinity-out-of-range-when-running-access-om2-01/5805/10 "2026-01-21T04:34:14Z")

</div>

Thanks @anton. This experiment is to test whether the prescribed restoring that we applied is consistent with the online salinity restoring. We just followed the approach discussed in [Salt-restoring flux from file in MOM5 and MOM6](https://forum.access-hive.org.au/t/salt-restoring-flux-from-file-in-mom5-and-mom6/4610).

However, I don’t have any output from this experiment because the model crashed. The problem here is that the amount of flux correction removes quite a lot of water from the ocean (-0.01 kg m-2 s-1), which is much larger than the runoff from the Amazon River. This results in very large SSS. I am wondering whether I could adjust this large amount of freshwater flux correction to a reasonable value, to get the experiment working?

---

<div class="post-metadata">

**Author:** ![Aidan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/aidan/32/42_2.png) [@Aidan](https://forum.access-hive.org.au/u/Aidan)\
**Post date:** [21 January 2026 22:03 UTC](https://forum.access-hive.org.au/t/salinity-out-of-range-when-running-access-om2-01/5805/11 "2026-01-21T22:03:38Z")

</div>

I recall Amazon fluxes being a problem in the past. I thought we had use the `river_spread` option, but it looks like @russfiedler suggested not to, as it slows the model down

> **[Technical Working Group Meeting, July 2017 – COSIMA](https://cosima.org.au/index.php/2017/07/11/technical-working-group-meeting-july-2017/)**

The solution then seemed to be to modify the river runoff remapping to spread out the freshwater flux.

---

<div class="post-metadata">

**Author:** ![aekiss](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/aekiss/32/46_2.png) [@aekiss](https://forum.access-hive.org.au/u/aekiss)\
**Post date:** [21 January 2026 23:50 UTC](https://forum.access-hive.org.au/t/salinity-out-of-range-when-running-access-om2-01/5805/12 "2026-01-21T23:50:35Z")

</div>

I’m confused. The crash is due to the salinity being too high (70psu), not too low. But it doesn’t look like 70psu occurs near the Amazon in your map.

Is there a numerical instability near the Amazon that arises too quickly to appear in your map (which I guess is a monthly mean)?

Do you have daily SSS output from just before the crash?

---

<div class="post-metadata">

**Author:** ![Hangyum](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/hangyum/32/561_2.png) [@Hangyum](https://forum.access-hive.org.au/u/Hangyum)\
**Post date:** [22 January 2026 00:14 UTC](https://forum.access-hive.org.au/t/salinity-out-of-range-when-running-access-om2-01/5805/13 "2026-01-22T00:14:01Z")

</div>

Hi @aekiss, the SSS map shown here is from the Control simulation (`01deg_jra55v13_ryf9091`), so it is quite low. The high salinity in the crashed experiment is due to the large negative freshwater flux near the Amazon in the `salt_sfc_correction` (the first map), which removes a lot of freshwater from the ocean.

Unfortunately I don’t have any output before the crash.

---

<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:** [22 January 2026 03:13 UTC](https://forum.access-hive.org.au/t/salinity-out-of-range-when-running-access-om2-01/5805/14 "2026-01-22T03:13:15Z")

</div>

My guess is to either

- update the frequency that SSS is saved to daily/hourly and/or
- increase the allowed salinity limit

such that the model runs long enough to get some output to get a better sense of what is going on.

Although it doesn’t really make sense that `salt_sfc_correction` is greater in magnitude than the incoming runoff, so presumably there is some problematic going on there.

---

<div class="post-metadata">

**Author:** ![Hangyum](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/hangyum/32/561_2.png) [@Hangyum](https://forum.access-hive.org.au/u/Hangyum)\
**Post date:** [27 January 2026 02:09 UTC](https://forum.access-hive.org.au/t/salinity-out-of-range-when-running-access-om2-01/5805/15 "2026-01-27T02:09:24Z")

</div>

Thanks for your suggestion @anton. I think increasing the salinity limit is a good idea! How can I do that?

---

<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:** [27 January 2026 02:15 UTC](https://forum.access-hive.org.au/t/salinity-out-of-range-when-running-access-om2-01/5805/16 "2026-01-27T02:15:57Z")

</div>

Looks like the setting is `s_max` - see [access-om2-configs/ocean/input.nml at fe2e9ae331ff057e53393df1d2f27892f30f910f · ACCESS-NRI/access-om2-configs · GitHub](https://github.com/ACCESS-NRI/access-om2-configs/blob/fe2e9ae331ff057e53393df1d2f27892f30f910f/ocean/input.nml#L403)

---

<div class="post-metadata">

**Author:** ![Hangyum](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/hangyum/32/561_2.png) [@Hangyum](https://forum.access-hive.org.au/u/Hangyum)\
**Post date:** [27 January 2026 02:20 UTC](https://forum.access-hive.org.au/t/salinity-out-of-range-when-running-access-om2-01/5805/17 "2026-01-27T02:20:21Z")

</div>

Cool, let me try this now.
