#NEWLINE# @ utils . cached_property #NEWLINE# def local_ises( self ) : #NEWLINE# #INDENT# 'A list of PETSc ISes defining the local indices for each set in the DataSet.\n\n        Used when extracting blocks from matrices for assembly.' #NEWLINE# ises = [ ] #NEWLINE# start = 0 #NEWLINE# for dset in self : #NEWLINE# #INDENT# bs = dset . cdim #NEWLINE# n = ( dset . total_size * bs ) #NEWLINE# iset = PETSc . IS ( ) . createStride ( n , first = start , step = 1 ) #NEWLINE# iset . setBlockSize ( bs ) #NEWLINE# start += n #NEWLINE# ises . append ( iset ) #NEWLINE# #UNINDENT# return tuple ( ises )