Skip to content
Draft
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
2 changes: 1 addition & 1 deletion examples/domains/customXY/domainsXY.m
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
vfWater = 1 - totalVF;

% Now convert the Volume Fractions to SLD's...
siSLD = vfSilicon * bulk_in;
siSLD = vfSilicon * bulk_in(contrast);
oxSLD = vfOxide * 3.41e-6;

% Layer SLD depends on whether we are calculating the domain or not...
Expand Down
8 changes: 4 additions & 4 deletions targetFunctions/+domainsTF/processCustomFunction.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
coder.varsize('output2',[10000 numberOfOutputColumns], [1 1]);

if isnan(str2double(functionHandle))
[output1, subRoughs(i)] = callMatlabFunction(functionHandle, paramValues, bulkIns(i), bulkOuts, i, 1);
[output2, ~] = callMatlabFunction(functionHandle, paramValues, bulkIns(i), bulkOuts, i, 2);
[output1, subRoughs(i)] = callMatlabFunction(functionHandle, paramValues, bulkIns, bulkOuts, i, 1);
[output2, ~] = callMatlabFunction(functionHandle, paramValues, bulkIns, bulkOuts, i, 2);
else
[output1, subRoughs(i)] = callCppFunction(functionHandle, paramValues, bulkIns(i), bulkOuts, i, 1);
[output2, ~] = callCppFunction(functionHandle, paramValues, bulkIns(i), bulkOuts, i, 2);
[output1, subRoughs(i)] = callCppFunction(functionHandle, paramValues, bulkIns, bulkOuts, i, 1);
[output2, ~] = callCppFunction(functionHandle, paramValues, bulkIns, bulkOuts, i, 2);
end

% If SLD is real, add dummy imaginary column
Expand Down
4 changes: 2 additions & 2 deletions targetFunctions/+normalTF/processCustomFunction.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
coder.varsize('output',[10000 numberOfOutputColumns],[1 1]);

if isnan(str2double(functionHandle))
[output, subRoughs(i)] = callMatlabFunction(functionHandle, paramValues, bulkIns(i), bulkOuts, i, 0);
[output, subRoughs(i)] = callMatlabFunction(functionHandle, paramValues, bulkIns, bulkOuts, i, 0);
else
[output, subRoughs(i)] = callCppFunction(functionHandle, paramValues, bulkIns(i), bulkOuts, i, 0);
[output, subRoughs(i)] = callCppFunction(functionHandle, paramValues, bulkIns, bulkOuts, i, 0);
end

% If SLD is real, add dummy imaginary column
Expand Down
Loading