Skip to content

Commit 6270487

Browse files
authored
Adjusts hydration indices to match RasCAL-1 (#429)
* Adjusts hydration indices to match RasCAL-1 * Updates test data and tests
1 parent bc65f6d commit 6270487

26 files changed

+4
-4
lines changed

API/projectClass/layersClass.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,9 +305,9 @@
305305
end
306306

307307
if strcmpi(thisLayer{numCols}, hydrationTypes.BulkIn.value)
308-
hydrWhat = 1;
308+
hydrWhat = 0;
309309
else
310-
hydrWhat = 2;
310+
hydrWhat = 1;
311311
end
312312
layerDetails{i} = [paramIndices hydr hydrWhat];
313313

targetFunctions/common/customModelFunctions/applyHydration.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
hydration = 0.01 * layers(i,5); % Assume percent for backwards compatibility
1414

1515
% Index 6 determines what we hydrate with
16-
if layers(i,6) == 1
16+
if layers(i,6) == 0
1717
bulkHydration = bulkIn;
1818
else
1919
bulkHydration = bulkOut;
Binary file not shown.
Binary file not shown.
Binary file not shown.
440 Bytes
Binary file not shown.
521 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)