nesi / APSIM-HPC

Deploy APSIM (Agricultural Production Systems sIMulator - https://www.apsim.info/) on high performance computing clusters.
https://nesi.github.io/APSIM-HPC/
MIT License
0 stars 0 forks source link

Exclude MasterSoil and LargeExample *.apsimx files from ${APSIMX_FILES} #21

Closed DininduSenanayake closed 2 months ago

DininduSenanayake commented 2 months ago

Two .apsix files used to in ExampeConfig.txt file is on the same directory and has to be excluded from ${APSIMX_FILES} variable which in turn will drop it from Models function

DininduSenanayake commented 2 months ago

Easier to with grep. if the two files in question are a.apsimx and b.apsimx, then

APSIMX_FILES=($(ls $CONFIG_DIR/*.apsimx | grep -vE '/(a|b)\.apsimx$'))
DininduSenanayake commented 2 months ago

Refer to https://github.com/DininduSenanayake/APSIM-eri-mahuika/pull/33/commits/78af338fcb5489555b7e539d67605ce968850557