flag.isConnected for Embedded Boundaries
              
              #2797
            
            
              
                
                  
                  
                    Answered
                  
                  by
                    WeiqunZhang
                  
              
          
                  
                    
                      etpalmer63
                    
                  
                
                  asked this question in
                Q&A
              
            -
| A user asks: 
 | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            WeiqunZhang
          
      
      
        Jun 1, 2022 
      
    
    Replies: 1 comment
-
| The arguments to  | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
      Answer selected by
        etpalmer63
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
The arguments to
isConnected(ii,jj,kk)are either -1, 0, or 1. The return value offlag(i,j,k).isConnected(1,1,1)can tell us if cell(i,j,k)is connected to cell(i+1,j+1,k+1). If we can walk through cell faces in no more than one step per direction from one cell to another, the two are consideredconnected.