<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Dear Mang Cai,</p>
<p>The built-in function GetNumElements[]{.} does that, e.g.,<br>
</p>
<p> GetNumElements [] {myNUMOFREGION}<br>
with<br>
myNUMOFREGION = 10;<br>
</p>
gives you the number of elements of physical number 10 (given in the
function parameters list).<br>
<br>
With the "automated nightly builds" version of GetDP (available
tomorrow), that function is now extended to allow more than one
physical number, e.g.,<br>
<br>
GetNumElements [] {10,35}<br>
<br>
or<br>
GetNumElements [] { myRegionNumberList() }<br>
with<br>
myRegionNumberList() = {10,35};<br>
<br>
or<br>
GetNumElements [] { GetRegions[myRegionGroup] }<br>
with<br>
Group{<br>
myRegionGroup = Region[{10,35}];<br>
}<br>
<br>
As seen in the last example, another new function, GetRegions[.], is
also now available. It gives back the list of region numbers of a
Region Group, e.g.,<br>
<br>
myRegionNumberList() = GetRegions[myRegionGroup];<br>
<br>
Regards,<br>
<br>
Patrick<br>
<br>
<br>
<div class="moz-cite-prefix">On 17/12/16 22:00, Mang Cai wrote:<br>
</div>
<blockquote
cite="mid:d5c20459-7906-4bfa-ba1e-95318df4f20b@email.android.com"
type="cite">
<div dir="auto">Dear Getdp-users,
<div dir="auto"><br>
</div>
<div dir="auto">Is there a build in function to get the number
of elements of a given group?</div>
<div dir="auto">Or how can I get this number in an efficient
way?</div>
<div dir="auto"><br>
</div>
<div dir="auto">For my post - processing written in python, I
need this number to efficiently extract the right field
solutions given from Getdp. </div>
<div dir="auto"><br>
</div>
<div dir="auto">Thank you for the help,</div>
<div dir="auto">Mang Cai</div>
<div dir="auto"><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
getdp mailing list
<a class="moz-txt-link-abbreviated" href="mailto:getdp@onelab.info">getdp@onelab.info</a>
<a class="moz-txt-link-freetext" href="http://onelab.info/mailman/listinfo/getdp">http://onelab.info/mailman/listinfo/getdp</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Patrick Dular, Prof. Dr. Ir.,
Research Director F.R.S.-FNRS
Department of Electrical Engineering and Computer Science
Unit of Applied and Computational Electromagnetics (ACE)
University of Liege - Montefiore Institute - B28 - Parking P32
B-4000 Liege - Belgium - Tel. +32-4 3663710 - Fax +32-4 3662910
E-mail: <a class="moz-txt-link-abbreviated" href="mailto:Patrick.Dular@ulg.ac.be">Patrick.Dular@ulg.ac.be</a>
</pre>
</body>
</html>