@@ -5,7 +5,19 @@ function pde_solve_test(; rtol::F, atol::F, save_refs::Bool=false, MB::Bool=fals
5
5
println (" PDE solving with MB = $MB " )
6
6
working_dir = joinpath (homedir (), " OGGM/Huginn_tests" )
7
7
8
+ # # Retrieving gdirs and climate for the following glaciers
9
+ # # Fast version includes less glacier to reduce the amount of downloaded files and computation time on GitHub CI
10
+ if fast
11
+ rgi_ids = [" RGI60-11.03638" , " RGI60-11.01450" ] # , "RGI60-08.00213", "RGI60-04.04351", "RGI60-01.02170"]
12
+ else
13
+ rgi_ids = [" RGI60-11.03638" , " RGI60-11.01450" , " RGI60-08.00213" , " RGI60-04.04351" , " RGI60-01.02170" ,
14
+ " RGI60-02.05098" , " RGI60-01.01104" , " RGI60-01.09162" , " RGI60-01.00570" , " RGI60-04.07051" ,
15
+ " RGI60-07.00274" , " RGI60-07.01323" , " RGI60-01.17316" ]
16
+ end
17
+
8
18
rgi_paths = get_rgi_paths ()
19
+ # Filter out glaciers that are not used to avoid having references that depend on all the glaciers processed in Gungnir
20
+ rgi_paths = Dict (k => rgi_paths[k] for k in rgi_ids)
9
21
10
22
params = Huginn. Parameters (simulation = SimulationParameters (use_MB= MB,
11
23
velocities= false ,
@@ -16,16 +28,6 @@ function pde_solve_test(; rtol::F, atol::F, save_refs::Bool=false, MB::Bool=fals
16
28
solver = SolverParameters (reltol= 1e-12 )
17
29
)
18
30
19
- # # Retrieving gdirs and climate for the following glaciers
20
- # # Fast version includes less glacier to reduce the amount of downloaded files and computation time on GitHub CI
21
- if fast
22
- rgi_ids = [" RGI60-11.03638" , " RGI60-11.01450" ] # , "RGI60-08.00213", "RGI60-04.04351", "RGI60-01.02170"]
23
- else
24
- rgi_ids = [" RGI60-11.03638" , " RGI60-11.01450" , " RGI60-08.00213" , " RGI60-04.04351" , " RGI60-01.02170" ,
25
- " RGI60-02.05098" , " RGI60-01.01104" , " RGI60-01.09162" , " RGI60-01.00570" , " RGI60-04.07051" ,
26
- " RGI60-07.00274" , " RGI60-07.01323" , " RGI60-01.17316" ]
27
- end
28
-
29
31
if MB
30
32
model = Huginn. Model (iceflow = SIA2Dmodel (params), mass_balance = TImodel1 (params))
31
33
else
@@ -95,7 +97,11 @@ function TI_run_test!(save_refs::Bool = false; rtol::F, atol::F) where {F <: Abs
95
97
96
98
working_dir = joinpath (homedir (), " OGGM/Huginn_tests" )
97
99
100
+ rgi_ids = [" RGI60-11.03638" ]
101
+
98
102
rgi_paths = get_rgi_paths ()
103
+ # Filter out glaciers that are not used to avoid having references that depend on all the glaciers processed in Gungnir
104
+ rgi_paths = Dict (k => rgi_paths[k] for k in rgi_ids)
99
105
100
106
params = Huginn. Parameters (simulation = SimulationParameters (use_MB= true ,
101
107
velocities= false ,
@@ -106,7 +112,6 @@ function TI_run_test!(save_refs::Bool = false; rtol::F, atol::F) where {F <: Abs
106
112
solver = SolverParameters (reltol= 1e-8 )
107
113
)
108
114
model = Huginn. Model (iceflow = SIA2Dmodel (params), mass_balance = TImodel1 (params))
109
- rgi_ids = [" RGI60-11.03638" ]
110
115
111
116
glacier = initialize_glaciers (rgi_ids, params)[1 ]
112
117
initialize_iceflow_model! (model. iceflow, 1 , glacier, params)
0 commit comments