uDALES / u-dales

uDALES: large-eddy-simulation software for urban flow, dispersion and microclimate modelling
https://udales.github.io/u-dales
GNU General Public License v3.0
54 stars 18 forks source link

Change `write_inputs.m` to a MATLAB function instead of a script #92

Closed bss116 closed 2 months ago

bss116 commented 3 years ago

write_inputs.m currently has the experiment number for the preprocessing hardcoded, which is updated by the shell script write_inputs.sh and causes git to detect a file change every time the preprocessing is used. It also relies on the environmental variables "DA_EXPDIR" and "DA_TOOLSDIR". Re-writing it as a MATLAB function, it can take these parameters as input arguments instead, see https://uk.mathworks.com/matlabcentral/answers/388543-how-do-i-pass-a-shell-script-variable-as-an-argument-to-a-matlab-function.