<div dir="ltr"><div class="gmail_default" style="color:#000000">Hi Erik,</div><div class="gmail_default" style="color:#000000"><br></div><div class="gmail_default" style="color:#000000">I indeed failed to check that. The Carpet::max_refinement_levels is set to 7. I should change it to 10. </div><div class="gmail_default" style="color:#000000"><br></div><div class="gmail_default" style="color:#000000">Thank you.</div><div class="gmail_default" style="color:#000000"><br></div><div class="gmail_default" style="">Regards</div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><font color="#666666">Shamim Haque</font></div><div dir="ltr"><font color="#666666">Senior Research Fellow (SRF)<br></font><div><font color="#666666">Department of Physics</font></div><div><font color="#666666">IISER Bhopal</font></div></div></div></div></div></div></div></div></div></div><br></div><div hspace="streak-pt-mark" style="max-height:1px"><img alt="" style="width:0px;max-height:0px;overflow:hidden" src="https://mailfoogae.appspot.com/t?sender=ac2hhbWltc0BpaXNlcmIuYWMuaW4%3D&amp;type=zerocontent&amp;guid=0b898568-40a5-4cc6-b39b-5fab08745e38"><font color="#ffffff" size="1">ᐧ</font></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 25, 2022 at 2:11 AM Erik Schnetter &lt;<a href="mailto:schnetter@gmail.com">schnetter@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Shamim<br>
<br>
There is a parameter Carpet::max_refinement_levels. What is its value?<br>
The error message reads as if you set it to 7, and then try to<br>
activate 10 levels. This won&#39;t work. Carpet::max_refinement_levels is<br>
an upper bound for the number of levels that can be active. Much of<br>
Carpet&#39;s internal bookkeeping depends on this value.<br>
<br>
-erik<br>
<br>
<br>
On Tue, May 24, 2022 at 3:58 PM Shamim Haque &lt;<a href="mailto:shamims@iiserb.ac.in" target="_blank">shamims@iiserb.ac.in</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi all,<br>
&gt;<br>
&gt; I am trying to change the num_levels for CarpetRegrid2 using the trigger, inspired from the gallery example at ET website. The trigger seems to kick in at the right place, as the simulation stopped while regridding for new num_levels.<br>
&gt;<br>
&gt; The dedicated lines in parfile are as follows:<br>
&gt;<br>
&gt; CarpetRegrid2::freeze_unaligned_levels = &quot;yes&quot;<br>
&gt; CarpetRegrid2::movement_threshold_1    = 0.10<br>
&gt; CarpetRegrid2::movement_threshold_2    = 0.10<br>
&gt; CarpetRegrid2::num_centres             = 2<br>
&gt; CarpetRegrid2::num_levels_1            = 7 #10<br>
&gt; CarpetRegrid2::num_levels_2            = 7<br>
&gt; CarpetRegrid2::position_x_1            = -13.543564<br>
&gt; CarpetRegrid2::position_x_2            = 13.543564<br>
&gt;<br>
&gt; CarpetRegrid2::radius_1[1]             =  270.0<br>
&gt; CarpetRegrid2::radius_1[2]             =  160.0<br>
&gt; CarpetRegrid2::radius_1[3]             =   90.0<br>
&gt; CarpetRegrid2::radius_1[4]             =   40.0<br>
&gt; CarpetRegrid2::radius_1[5]             =   25.0<br>
&gt; CarpetRegrid2::radius_1[6]             =   9.0<br>
&gt; CarpetRegrid2::radius_1[7]             =   6.0<br>
&gt; CarpetRegrid2::radius_1[8]             =   3.0<br>
&gt; CarpetRegrid2::radius_1[9]             =   1.5<br>
&gt;<br>
&gt; CarpetRegrid2::radius_2[1]             =  270.0<br>
&gt; CarpetRegrid2::radius_2[2]             =  160.0<br>
&gt; CarpetRegrid2::radius_2[3]             =   90.0<br>
&gt; CarpetRegrid2::radius_2[4]             =   40.0<br>
&gt; CarpetRegrid2::radius_2[5]             =   25.0<br>
&gt; CarpetRegrid2::radius_2[6]             =   9.0<br>
&gt;<br>
&gt; CarpetRegrid2::regrid_every            = 32<br>
&gt; CarpetRegrid2::symmetry_rotating180    = &quot;no&quot;<br>
&gt; CarpetRegrid2::verbose                 = &quot;yes&quot;<br>
&gt;<br>
&gt; Trigger::Trigger_Number = 1<br>
&gt; Trigger::Trigger_Checked_Variable[0]=&quot;ADMBase::alp&quot;<br>
&gt; Trigger::Trigger_Reduction       [0]=&quot;minimum&quot;<br>
&gt; Trigger::Trigger_Relation        [0]=&quot;&lt;&quot;<br>
&gt; Trigger::Trigger_Checked_Value   [0]=0.1<br>
&gt; Trigger::Trigger_Reaction        [0]=&quot;steerscalar&quot;<br>
&gt; Trigger::Trigger_Steered_Scalar      [0] = &quot;CarpetRegrid2::num_levels[0]&quot; # == num_levels_1<br>
&gt; Trigger::Trigger_Steered_Scalar_Value[0] = &quot;10&quot;<br>
&gt;<br>
&gt; The outfile reports the following error:<br>
&gt;<br>
&gt; INFO (CarpetRegrid2): Centre 1 is at position [0.000191809,0.000291781,-0.00018496] with 10 levels<br>
&gt; INFO (CarpetRegrid2): Centre 2 is at position [0.000191809,0.000291781,-0.00018496] with 7 levels<br>
&gt; INFO (CarpetRegrid2): Regridding level 0 map 0 at iteration 4129 time 806.25<br>
&gt; INFO (CarpetRegrid2): Regridding levels 1 and up<br>
&gt; [1mERROR from host astro-Z390-AORUS-ELITE process 0<br>
&gt;   in thorn CarpetRegrid2, file /home/astro/Documents/ET/Cactus/configs/sim/build/CarpetRegrid2/regrid.cc:89:<br>
&gt;   -&gt; [0m Region 1 has 10 levels active, which is larger than the maximum number of refinement levels 7<br>
&gt;<br>
&gt; I could not figure out where it went wrong. The minimum lapse at iteration 4128 is 0.095, so the condition in trigger seems to be working fine. Some insight into it would be helpful. Thanks in advance.<br>
&gt;<br>
&gt; Regards<br>
&gt; Shamim Haque<br>
&gt; Senior Research Fellow (SRF)<br>
&gt; Department of Physics<br>
&gt; IISER Bhopal<br>
&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@einsteintoolkit.org" target="_blank">Users@einsteintoolkit.org</a><br>
&gt; <a href="http://lists.einsteintoolkit.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.einsteintoolkit.org/mailman/listinfo/users</a><br>
<br>
<br>
<br>
-- <br>
Erik Schnetter &lt;<a href="mailto:schnetter@gmail.com" target="_blank">schnetter@gmail.com</a>&gt;<br>
<a href="http://www.perimeterinstitute.ca/personal/eschnetter/" rel="noreferrer" target="_blank">http://www.perimeterinstitute.ca/personal/eschnetter/</a><br>
</blockquote></div>