Skip to content

Commit

Permalink
Issue #69 - code fixed
Browse files Browse the repository at this point in the history
C code compiling bug now working for Mac.
  • Loading branch information
peterson-tim-j committed Apr 9, 2024
1 parent 71ab7b5 commit 2eca7d6
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions Build_C_code.m
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,16 @@ function Build_C_code()
mex(mexopts{:},'algorithms/models/TransferNoise/ForcingTransformation/forcingTransform_soilMoisture.c');
mex(mexopts{:},'algorithms/models/TransferNoise/doIRFconvolution.c');
mex(mexopts{:},'algorithms/models/ExpSmooth/doExpSmoothing.c');

movefile('doIRFconvolution.mexa64', 'algorithms/models/TransferNoise','f');
movefile('forcingTransform_soilMoisture.mexa64', 'algorithms/models/TransferNoise/ForcingTransformation','f');
movefile('doExpSmoothing.mexa64', 'algorithms/models/ExpSmooth','f');
end


if ismac
movefile('doIRFconvolution.mexmaci64', 'algorithms/models/TransferNoise','f');
movefile('forcingTransform_soilMoisture.mexmaci64', 'algorithms/models/TransferNoise/ForcingTransformation','f');
movefile('doExpSmoothing.mexmaci64', 'algorithms/models/ExpSmooth','f');
elseif isunix
movefile('doIRFconvolution.mexa64', 'algorithms/models/TransferNoise','f');
movefile('forcingTransform_soilMoisture.mexa64', 'algorithms/models/TransferNoise/ForcingTransformation','f');
movefile('doExpSmoothing.mexa64', 'algorithms/models/ExpSmooth','f');
end
end
end

0 comments on commit 2eca7d6

Please sign in to comment.