ExeClim / Isca

Idealized GCM from the University of Exeter
https://execlim.github.io/IscaWebsite
GNU General Public License v3.0
139 stars 125 forks source link

Fix for Sh > 2.* issue, and new environment files and template for running on maths2 (Exeter) #255

Closed sit23 closed 1 year ago

sit23 commented 1 year ago

As described in issue #247, versions of sh>2.* have been causing the isca python front-end to fail. This is because sh>2.* has changed the default return type of some of its commands, returning str types rather than sh.RunningCommand.

This fix adds a new function to check the type of sh outputs and only asks for .stdout when a sh.RunningCommand type is returned. This should allow the front end to function with versions of sh=1.* and sh=2.*.

Also included here are new environment files and template files for running with intel compilers on Exeter's new maths2 machine. They are included here for my own convenience, but should be of use to others.