WSL/SLF GitLab Repository
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
snow-models
Alpine3D
Commits
dbc761e0
Commit
dbc761e0
authored
Jun 24, 2021
by
Nander Wever
Browse files
Correctly initializing sea ice simulations.
parent
6048baea
Changes
1
Hide whitespace changes
Inline
Side-by-side
alpine3d/SnowpackInterface.cc
View file @
dbc761e0
...
...
@@ -1154,6 +1154,7 @@ SN_SNOWSOIL_DATA SnowpackInterface::getIcePixel(const double glacier_height, con
if
(
MPIControl
::
instance
().
master
()
||
do_io_locally
)
{
const
bool
useSoil
=
sn_cfg
.
get
(
"SNP_SOIL"
,
"Snowpack"
);
const
std
::
string
variant
=
sn_cfg
.
get
(
"VARIANT"
,
"SnowpackAdvanced"
);
const
std
::
string
coordsys
=
sn_cfg
.
get
(
"COORDSYS"
,
"Input"
);
const
std
::
string
coordparam
=
sn_cfg
.
get
(
"COORDPARAM"
,
"Input"
,
""
);
Coords
llcorner_out
(
dem
.
llcorner
);
...
...
@@ -1181,7 +1182,10 @@ SN_SNOWSOIL_DATA SnowpackInterface::getIcePixel(const double glacier_height, con
snow_stations_tmp
.
push_back
(
NULL
);
continue
;
}
snow_stations_tmp
.
push_back
(
new
SnowStation
(
useCanopy
,
useSoil
,
true
)
);
snow_stations_tmp
.
push_back
(
new
SnowStation
(
useCanopy
,
useSoil
,
true
,
(
variant
==
"SEAICE"
))
);
if
(
snow_stations_tmp
.
back
()
->
Seaice
!=
NULL
)
{
snow_stations_tmp
.
back
()
->
Seaice
->
ConfigSeaIce
(
sn_cfg
);
}
SnowStation
&
snowPixel
=
*
(
snow_stations_tmp
.
back
());
const
bool
is_special_point
=
SnowpackInterfaceWorker
::
is_special
(
pts
,
ix
,
iy
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment