Re-enable ITime in ocean and sea-ice models#2006
Conversation
|
The NumericalEarth PR is merged, but because NumericalEarth is not a direct dependency of ClimaCoupler (it comes in through ClimaOcean), we'll have to wait for a new release there for this PR to work. |
|
An issue that came up that I believe is unrelated to the clock changes: h1 = OffsetArrays.no_offset_view(on_architecture(CPU(), v1))to @simone-silvestri Does it make sense to you why separate initializations of the sea-ice model might have different array offsets in their @akshaysridhar Let me know if you're okay with adding |
|
In NumericalEarth/NumericalEarth.jl#346 we have changed the ocean surface salinity to pass Therefore, the output of that function switched from begin a subarray of a plain array to a subarray of an offsetarray of an array. I think |
Closes #1992
Following the update to ClimaOcean v0.10 (#1971),
stop_timewould default toInfin the ocean/sea-ice models, which forced us to useFloats instead ofDates. This PR in NumericalEarth.jl enables us to setstop_timeas a kwarg.This PR:
clockandstop_timeare set in the ocean modelclockandstop_timeare set in the sea-ice modeluse_itime: truein config filesThis PR also fixes a completely unrelated bug in
experiments/test/compare_cmip.jlthat emerged from an update in NumericalEarth (see this PR; ocean surface salinity is now passed as aviewinstead of withinterior, changing how we need to define_compare(v1, v2)forSubArrays).