Skip to content

Commit 0a19f1f

Browse files
committed
add secrets for ECCO access
1 parent 490efc1 commit 0a19f1f

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.buildkite/pipeline.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ env:
1616

1717
timeout_in_minutes: 240
1818

19+
secrets:
20+
- ECCO_USERNAME
21+
- ECCO_WEBDAV_PASSWORD
22+
1923
steps:
2024
- label: "init environment :computer:"
2125
key: "init_cpu_env"

.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/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)