#NEWLINE# def c_map_decl( self , is_facet = False ) : #NEWLINE# #INDENT# if self . _is_mat : #NEWLINE# #INDENT# dsets = self . data . sparsity . dsets #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# dsets = ( self . data . dataset , ) #NEWLINE# #UNINDENT# val = [ ] #NEWLINE# for ( i , ( map , dset ) ) in enumerate ( zip ( as_tuple ( self . map , Map ) , dsets ) ) : #NEWLINE# #INDENT# for ( j , ( m , d ) ) in enumerate ( zip ( map , dset ) ) : #NEWLINE# #INDENT# dim = m . arity #NEWLINE# if ( self . _is_dat and self . _flatten ) : #NEWLINE# #INDENT# dim *= d . cdim #NEWLINE# #UNINDENT# if is_facet : #NEWLINE# #INDENT# dim *= 2 #NEWLINE# #UNINDENT# val . append ( ( 'int xtr_%(name)s[%(dim)s];' % { #NEWLINE# #INDENT# 'name' : self . c_map_name ( i , j ) , #NEWLINE# 'dim' : dim , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# #UNINDENT# #UNINDENT# return ( '\n' . join ( val ) + '\n' )