Changeset 26804


Ignore:
Timestamp:
01/21/22 21:43:56 (3 years ago)
Author:
jdquinn
Message:

BUG: Better check on macOS version; yts was not defined in marshall method

Location:
issm/trunk-jpl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/m4/issm_options.m4

    r26801 r26804  
    210210        SYSTEM_FMEMOPEN=1
    211211        if test "${IS_MAC}" == "yes"; then
    212                 if [[ $(system_profiler SPSoftwareDataType | grep "System Version:" | sed -e "s/[[:space:]]*System Version: macOS //" | cut -d "." -f 2) -lt 13 ]]; then
     212                sys_ver=$(sw_vers -productVersion)
     213                if [[ $(echo ${sys_ver} | cut -d "." -f 1) -eq 10 && $(echo ${sys_ver} | cut -d "." -f 2) -eq 13 ]]; then
    213214                        SYSTEM_FMEMOPEN=0
    214215                fi
  • issm/trunk-jpl/src/m/classes/calvingvonmises.py

    r26799 r26804  
    5656
    5757    def marshall(self, prefix, md, fid):  # {{{
     58        yts = md.constants.yts
    5859        WriteData(fid, prefix, 'name', 'md.calving.law', 'data', 2, 'format', 'Integer')
    5960        WriteData(fid, prefix, 'object', self, 'fieldname', 'stress_threshold_groundedice', 'format', 'DoubleMat', 'mattype', 1, 'timeserieslength', md.mesh.numberofvertices + 1, 'yts', yts )
Note: See TracChangeset for help on using the changeset viewer.