Skip to content

Commit 55bcbf8

Browse files
authored
Merge branch 'main' into multiplatform-builds
2 parents f62bbdc + 38cf4df commit 55bcbf8

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/GlobalParams.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ void CGlobalParams::InitializeGlobalParameters(global_struct &g, bool is_templat
404404
g.max_snow_albedo =DefaultParameterValue(is_template,true);
405405
g.min_snow_albedo =DefaultParameterValue(is_template,true);
406406
g.alb_decay_cold =DefaultParameterValue(is_template,true);
407-
g.alb_decay_cold =DefaultParameterValue(is_template,true);
407+
g.alb_decay_melt =DefaultParameterValue(is_template,true);
408408
g.bare_ground_albedo =DefaultParameterValue(is_template,true);
409409
g.snowfall_albthresh =DefaultParameterValue(is_template,true);
410410

src/ParseFEWSRunInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ bool ParseNetCDFRunInfoFile(CModel *&pModel, optStruct &Options, bool runname_ov
288288
if (retval==NC_NOERR){
289289
for (int i = 0; i < nAttributes; i++) {
290290
retval=nc_inq_attname(ncid,varid_props,i,att_name);
291-
if (retval==NO_ERROR){
291+
if (retval==NC_NOERR){
292292
string att_name_s=to_string(att_name);
293293

294294
// NamedConstant(s) ----------------------------------------------------

src/ParsePropertyFile.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1577,6 +1577,7 @@ bool ParseClassPropertiesFile(CModel *&pModel,
15771577

15781578
delete [] indices;
15791579
for (int i=0;i<MAX_NUM_IN_CLASS;i++){delete [] properties[i];}delete [] properties;
1580+
delete p;
15801581

15811582
return true;
15821583
}
@@ -1732,7 +1733,7 @@ void AddToMasterParamList (string *&aPm, class_type *&aPCm, int
17321733
aPCm_new[nPm+i]=aPC[i];
17331734
}
17341735
if (aPm!=NULL){delete [] aPm; aPm=NULL;}
1735-
if (aPm!=NULL){delete [] aPCm;aPCm=NULL;}
1736+
if (aPCm!=NULL){delete [] aPCm;aPCm=NULL;}
17361737
aPm =aPm_new;
17371738
aPCm=aPCm_new;
17381739
nPm=nPm+nP;

0 commit comments

Comments
 (0)