<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 7 Mar 2019, at 07:40, Antoni Ramos Buades &lt;<a href="mailto:antoniramosbuades@gmail.com" class="">antoniramosbuades@gmail.com</a>&gt; wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">Hi,&nbsp;
<div class=""><br class="">
</div>
<div class="">Roland you are right it is forming and destroying a common box each time the outburst of noise happens. Do you know how one could get rid of this noise, or if there are some parameters of Carpet which one could add to&nbsp; the parameter file to avoid
 such a behaviour?</div>
</div>
</div>
</blockquote>
<div><br class="">
</div>
<div>Hi Antoni,</div>
<div><br class="">
</div>
<div>There is this parameter in CarpetRegrid2:</div>
<div><br class="">
</div>
<div>
<div style="background-color: rgb(255, 255, 254); font-family: SFMono-Medium, &quot;SF Mono&quot;, &quot;Segoe UI Mono&quot;, &quot;Roboto Mono&quot;, &quot;Ubuntu Mono&quot;, Menlo, monospace; font-size: 13px; line-height: 20px; white-space: pre;" class="">
<div class=""><span style="color: rgb(32, 32, 32);" class="">CCTK_REAL</span> <span style="color: rgb(32, 32, 32);" class="">
min_fraction</span> <span style="color: rgb(191, 38, 0);" class="">&quot;Minimum fraction of required refined points that need to be present in a refined region&quot;</span>
<span style="color: rgb(32, 32, 32);" class="">STEERABLE</span>=<span style="color: rgb(32, 32, 32);" class="">always</span></div>
<div class="">{</div>
<div class=""><span style="color: rgb(101, 84, 192);" class="">0</span>:* :: <span style="color: rgb(191, 38, 0);" class="">
&quot;&quot;</span></div>
<div class="">} <span style="color: rgb(101, 84, 192);" class="">0.9</span></div>
</div>
</div>
<div><br class="">
</div>
<div>When two boxes overlap, CarpetRegrid2 has to make a decision about whether to use the union of the two boxes, or to replace the two boxes with a single enclosing box. &nbsp;This code is in carpet/CarpetRegrid2/src/<a href="http://property.cc" class="">property.cc</a>&nbsp;in
 the function combine_regions::test_impl. &nbsp;The decision is made based on the number of point in the union of the two boxes, vs the number of points in a single enclosing box. &nbsp;It will leave the regions separate if&nbsp;</div>
<div><br class="">
</div>
</div>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class="">
<div>
<div>min_fraction&nbsp;*&nbsp;combined_size&nbsp;&gt;&nbsp;regions_size</div>
<div><br class="">
</div>
</div>
</blockquote>
which, with the default of 0.9, means that the number of points in the single enclosing region is greater than 1.11 times the number of points in the original regions. &nbsp;The logic for this is that having lots of regions means lots of faces, edges and corners,
 and more communication and prolongation, which can affect performance and might also be undesirable due to creating numerical error features such as reflections. &nbsp;On the other hand, the single enclosing region will contain more points, and hence will be more
 expensive to evolve. &nbsp;min_fraction allows you to decide how many extra points you are willing to evolve, for the sake of having only a single box. &nbsp;If there would be more than 1/min_fraction times the number of points by combining, the code does not combine.
<div class=""><br class="">
</div>
<div class="">If you set&nbsp;
<div class="">
<div>
<div><br class="">
</div>
</div>
</div>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class="">
<div class="">
<div>
<div>CarpetRegrid2::min_fraction = 1</div>
</div>
</div>
</blockquote>
<div class="">
<div>
<div><br class="">
</div>
<div>then Carpet will never create a single enclosing box, but will always give you a box based on the union of the points in the two boxes.</div>
<div><br class="">
</div>
<div>Ninja'd by Roland. &nbsp;Sigh...</div>
<div><br class="">
</div>
</div>
<div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
--&nbsp;</div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
Ian Hinder</div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
Research Software Engineer</div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
University of Manchester, UK</div>
</div>
</div>
</div>
</div>
<br class="">
</div>
</div>
</body>
</html>