Skip to content

Commit 8c0ec37

Browse files
committed
add secrets for ECCO access
1 parent 490efc1 commit 8c0ec37

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ jobs:
1717
test:
1818
name: ci ${{ matrix.version }} - ${{ matrix.os }}
1919
runs-on: ${{ matrix.os }}
20+
env:
21+
ECCO_USERNAME: ${{ secrets.ECCO_USERNAME }}
22+
ECCO_WEBDAV_PASSWORD: ${{ secrets.ECCO_WEBDAV_PASSWORD }}
2023
strategy:
2124
fail-fast: false
2225
matrix:

experiments/ClimaEarth/components/ocean/clima_seaice.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ using KernelAbstractions: @kernel, @index, @inbounds
1010

1111
include("climaocean_helpers.jl")
1212

13+
# Rename ECCO password env variable to match ClimaOcean.jl
14+
haskey(ENV, "ECCO_PASSWORD") && (ENV["ECCO_WEBDAV_PASSWORD"] = ENV["ECCO_PASSWORD"])
15+
1316
"""
1417
ClimaSeaIceSimulation{SIM, A, OPROP, REMAP}
1518

experiments/ClimaEarth/components/ocean/oceananigans.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,10 @@ function FieldExchanger.resolve_ocean_ice_fractions!(
229229
end
230230

231231
# Update the ice concentration field in the ocean simulation
232-
ocean_sim.ice_concentration .= Interfacer.get_field(ice_sim, Val(:ice_concentration))
232+
ice_sim isa ClimaSeaIceSimulation && (
233+
ocean_sim.ice_concentration .=
234+
Interfacer.get_field(ice_sim, Val(:ice_concentration))
235+
)
233236
return nothing
234237
end
235238

0 commit comments

Comments
 (0)