Changeset 26644


Ignore:
Timestamp:
11/18/21 14:07:48 (3 years ago)
Author:
vverjans
Message:

CHG: field comparisons temporarily commented out in stochasticforcing.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/stochasticforcing.py

    r26643 r26644  
    6262        structstoch   = self.structstochforcing()
    6363        for field in self.fields:
     64            ### Checks are temporarily commented out: need to debug why this does not work (18Nov2021) ###
    6465            if 'SMB' in field:
    6566                mdname = structstoch['mdnames'][structstoch['fields']==field]
    66                 if (type(md.smb) != mdname):
    67                     raise TypeError('md.smb does not agree with stochasticforcing field {}'.format(field))
     67                #if (type(md.smb) != mdname):
     68                #    raise TypeError('md.smb does not agree with stochasticforcing field {}'.format(field))
    6869            if 'FrontalForcings' in field:
    6970                mdname = structstoch['mdnames'][structstoch['fields']==field]
    70                 if (type(md.frontalforcings) != mdname):
    71                     raise TypeError('md.frontalforcings does not agree with stochasticforcing field {}'.format(field))
     71                #if (type(md.frontalforcings) != mdname):
     72                #    raise TypeError('md.frontalforcings does not agree with stochasticforcing field {}'.format(field))
    7273            if 'Calving' in field:
    7374                mdname = structstoch['mdnames'][structstoch['fields']==field]
    74                 if (type(md.calving) != mdname):
    75                     raise TypeError('md.calving does not agree with stochasticforcing field {}'.format(field))
     75                #if (type(md.calving) != mdname):
     76                #    raise TypeError('md.calving does not agree with stochasticforcing field {}'.format(field))
    7677            if 'BasalforcingsFloatingice' in field:
    7778                mdname = structstoch['mdnames'][structstoch['fields']==field]
    78                 if (type(md.basalforcings) != mdname):
    79                     raise TypeError('md.basalforcings does not agree with stochasticforcing field {}'.format(field))#Checking for specific dimensions
     79                #if (type(md.basalforcings) != mdname):
     80                #    raise TypeError('md.basalforcings does not agree with stochasticforcing field {}'.format(field))#Checking for specific dimensions
    8081            if not (field == 'SMBautoregression' or field == 'FrontalForcingsRignotAutoregression'):
    8182                checkdefaults = True   #field with non-specific dimensionality
Note: See TracChangeset for help on using the changeset viewer.