Changeset 13244


Ignore:
Timestamp:
09/04/12 15:07:21 (13 years ago)
Author:
jschierm
Message:

BUG: Boolean must be converted to integer before adding in Python.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/parameterization/setflowequation.py

    r13171 r13244  
    9191        if any(stokesflag):
    9292#               fullspcnodes=double((~isnan(md.diagnostic.spcvx)+~isnan(md.diagnostic.spcvy)+~isnan(md.diagnostic.spcvz))==3 | (nodeonpattyn & nodeonstokes));         %find all the nodes on the boundary of the domain without icefront
    93                 fullspcnodes=numpy.logical_or(numpy.logical_not(numpy.isnan(md.diagnostic.spcvx))+ \
    94                                               numpy.logical_not(numpy.isnan(md.diagnostic.spcvy))+ \
    95                                               numpy.logical_not(numpy.isnan(md.diagnostic.spcvz))==3, \
     93                fullspcnodes=numpy.logical_or(numpy.logical_not(numpy.isnan(md.diagnostic.spcvx)).astype(int)+ \
     94                                              numpy.logical_not(numpy.isnan(md.diagnostic.spcvy)).astype(int)+ \
     95                                              numpy.logical_not(numpy.isnan(md.diagnostic.spcvz)).astype(int)==3, \
    9696                                              numpy.logical_and(nodeonpattyn,nodeonstokes)).astype(int)    #find all the nodes on the boundary of the domain without icefront
    9797#               fullspcelems=double(sum(fullspcnodes(md.mesh.elements),2)==6);         %find all the nodes on the boundary of the domain without icefront
Note: See TracChangeset for help on using the changeset viewer.