Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions API/projectClass/layersClass.m
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,9 @@
end

if strcmpi(thisLayer{numCols}, hydrationTypes.BulkIn.value)
hydrWhat = 1;
hydrWhat = 0;
else
hydrWhat = 2;
hydrWhat = 1;
end
layerDetails{i} = [paramIndices hydr hydrWhat];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
hydration = 0.01 * layers(i,5); % Assume percent for backwards compatibility

% Index 6 determines what we hydrate with
if layers(i,6) == 1
if layers(i,6) == 0
bulkHydration = bulkIn;
else
bulkHydration = bulkOut;
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/domainsTFReflectivityCalculation/domainsCustomXYInputs.mat
Binary file not shown.
Binary file modified tests/domainsTFReflectivityCalculation/domainsCustomXYOutputs.mat
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/normalTFReflectivityCalculation/absorptionInputs.mat
Binary file not shown.
Binary file modified tests/normalTFReflectivityCalculation/absorptionOutputs.mat
Binary file not shown.
Binary file modified tests/normalTFReflectivityCalculation/absorptionTFParams.mat
Binary file not shown.
Binary file modified tests/normalTFReflectivityCalculation/customLayersInputs.mat
Binary file not shown.
Binary file modified tests/normalTFReflectivityCalculation/customLayersOutputs.mat
Binary file not shown.
Binary file modified tests/normalTFReflectivityCalculation/customLayersTFParams.mat
Binary file not shown.
Binary file modified tests/normalTFReflectivityCalculation/customXYInputs.mat
Binary file not shown.
Binary file modified tests/normalTFReflectivityCalculation/customXYOutputs.mat
Binary file not shown.
Binary file modified tests/normalTFReflectivityCalculation/customXYTFParams.mat
Binary file not shown.
Binary file modified tests/normalTFReflectivityCalculation/standardLayersInputs.mat
Binary file not shown.
Binary file modified tests/normalTFReflectivityCalculation/standardLayersOutputs.mat
Binary file not shown.
Binary file modified tests/normalTFReflectivityCalculation/standardLayersTFParams.mat
Binary file not shown.
2 changes: 1 addition & 1 deletion tests/testLayersClass.m
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ function testToStructStandardLayers(testCase)
% Here we use a "standard layers" model type
expectedStruct.numberOfLayers = 3;
expectedStruct.layerNames = ["Bil inner head"; "Bil tail"; "Bil outer head"];
expectedStruct.layerDetails = {[5 6 8 7 2]; [9 10 12 11 2]; [5 6 8 7 2]};
expectedStruct.layerDetails = {[5 6 8 7 1]; [9 10 12 11 1]; [5 6 8 7 1]};

testCase.verifyEqual(testCase.exampleClass.toStruct(testCase.parameterNames), expectedStruct);
end
Expand Down
Binary file modified tests/testProjectConversion/DSPCBilayerProjectClass.mat
Binary file not shown.
Binary file modified tests/testProjectConversion/monolayerVolumeModelProjectClass.mat
Binary file not shown.