<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Something like:</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"> real x(lx1,ly1,lz1,lelt)</p>
<p style="margin-top:0;margin-bottom:0"> integer e</p>
<p style="margin-top:0;margin-bottom:0"> real eg</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"> nxyz = lx1*ly1*lz1</p>
<p style="margin-top:0;margin-bottom:0"> do e=1,nelv</p>
<p style="margin-top:0;margin-bottom:0"> eg = lglel(e)</p>
<p style="margin-top:0;margin-bottom:0"> call cfill(x(1,1,1,e),eg, nxyz)</p>
call cfill(y(1,1,1,e),eg, nxyz)
<p style="margin-top:0;margin-bottom:0"> enddo</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"> call dssum(x,nx1,ny1,nz1)</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"> do e=1,nelv</p>
<p style="margin-top:0;margin-bottom:0"> eg= -lglel(e)</p>
<p style="margin-top:0;margin-bottom:0"> call cadd(x(1,1,1,e),eg,nxyz)</p>
<p style="margin-top:0;margin-bottom:0"> enddo</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Now the faces tell you which faces you're connected to.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">To get edges and corners is a bit trickier, but not hard --</p>
<p style="margin-top:0;margin-bottom:0">use dsop(x,'min') and max etc. to discriminate... A few</p>
<p style="margin-top:0;margin-bottom:0">passes through the process will reveal all the connections.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">hth</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Paul</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Nek5000-users <nek5000-users-bounces@lists.mcs.anl.gov> on behalf of nek5000-users@lists.mcs.anl.gov <nek5000-users@lists.mcs.anl.gov><br>
<b>Sent:</b> Wednesday, August 29, 2018 10:34:25 PM<br>
<b>To:</b> nek5000-users<br>
<b>Subject:</b> [Nek5000-users] The number of adjacent element</font>
<div> </div>
</div>
<meta content="text/html; charset=utf-8">
<div>Hi, Neks!<br>
<br>
Could I easy identify the number of adjacent element? For example, if I know, that now I am in the "e=25" element, could I know "e" neighbors? I know, that the mesh is globaly unstructured, but anyway?<br>
<br>
Best regards,<br>
Valdemar<br>
</div>
</body>
</html>