nesi / APSIM-HPC

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

add version verfication command to slurm script #22

Closed DininduSenanayake closed 3 weeks ago

DininduSenanayake commented 3 weeks ago

Explanation of the changes:

apptainer exec ... | grep APSIM This command extracts the version number from the output of the Models command executed inside the Apptainer image. It assumes that the output format is "APSIM ".

-F'[ ©]' sets the field separator to either a space or the © symbol. Otherwise, output comes in the format of version ©

This approach should correctly extract just the version number (e.g., "2024.8.7572.0") without any additional characters.