Skip to content

Commit c103890

Browse files
committed
Add comments
1 parent 587905a commit c103890

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

src/ParentLayer.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,23 @@ void ParentLayer::updateProperty() {
2727
vhcsolid = 2700000;
2828
};
2929

30-
// get frozen layer specific heat capcity
30+
// Note: Though the following functions return the same value,
31+
// they require different names to work inside TemperatureUpdator.cpp
32+
// where these will be called by name and not by layer type.
33+
// Hence they must match with the functions used in Layer.cpp
34+
// and SoilLayer.cpp.
35+
36+
// get frozen layer volumetric heat capacity
3137
double ParentLayer::getFrzVolHeatCapa() {
3238
return vhcsolid;
3339
};
3440

41+
// get unfrozen layer volumetric heat capacity
3542
double ParentLayer::getUnfVolHeatCapa() {
3643
return vhcsolid;
3744
};
3845

46+
// get mixed (partially frozen) layer volumetric heat capacity
3947
double ParentLayer::getMixVolHeatCapa() {
4048
return vhcsolid;
4149
};

src/SnowLayer.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@ double SnowLayer::getThermCond() {
102102
return tc;
103103
}
104104

105+
// Note: Though the following functions return the same value,
106+
// they require different names to work inside TemperatureUpdator.cpp
107+
// where these will be called by name and not by layer type.
108+
// Hence they must match with the functions used in Layer.cpp
109+
// and SoilLayer.cpp.
110+
105111
double SnowLayer::getFrzVolHeatCapa() {
106112
return (dz != 0) ? (SHCICE * ice/dz) : 0;
107113
};

0 commit comments

Comments
 (0)