<div dir="ltr">Miguel<div><br></div><div>Yes, Carpet prolongates with the same order in each direction. However, in your case, prolongation in the z direction is exact and does not require any ghost zones, since nothing needs to happen in the z direction. Carpet should handle this correctly. Can you post a complete, simplified parameter file to reproduce the problem?</div><div><br></div><div>-erik</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 14, 2018 at 10:36 PM, Miguel Zilhão <span dir="ltr">&lt;<a href="mailto:miguel.zilhao.nogueira@tecnico.ulisboa.pt" target="_blank">miguel.zilhao.nogueira@tecnico.ulisboa.pt</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hi all,<br>
<br>
many thanks for the parameter file, Steve. it works, but as soon as i set<br>
Carpet::prolongation_order_<wbr>space = 5, i get inconsistent grid structure type of errors:<br>
<br>
WARNING level 1 from host meurglysIII process 1<br>
<span class="">   while executing schedule bin (none), routine (no thorn)::(no routine)<br>
</span>   in thorn CarpetLib, file /home/mzilhao/dev/ET/Cactus/<wbr>arrangements/Carpet/CarpetLib/<wbr>src/dh.cc:161:<br>
   -&gt;<br>
/home/mzilhao/dev/ET/Cactus/<wbr>arrangements/Carpet/CarpetLib/<wbr>src/dh.cc:813:<br>
    [ml=0 rl=1 c=1] The following grid structure consistency check failed:<br>
    Refinement prolongation: Send region must be contained in exterior<br>
    send &lt;= obox.exterior<br>
<br>
WARNING level 0 from host meurglysIII process 0<br>
<span class="">   while executing schedule bin (none), routine (no thorn)::(no routine)<br>
</span>   in thorn CarpetLib, file /home/mzilhao/dev/ET/Cactus/<wbr>arrangements/Carpet/CarpetLib/<wbr>src/dh.cc:2118:<br>
   -&gt; The grid structure is inconsistent.  It is impossible to continue.<br>
cactus_Lean_ET_master: /home/mzilhao/dev/ET/Cactus/<wbr>arrangements/Carpet/Carpet/<wbr>src/helpers.cc:275:<br>
int Carpet::Abort(const cGH*, int): Assertion `0&#39; failed.<br>
<br>
so i guess it&#39;s as Ian said, that Carpet tries to prolongate with the same order in every direction?<br>
i find that in order for this to work i either have to decrease the prolongation to order 1, or put<br>
the boundary along the z direction back to a non-zero value. but i guess in this latter case i no<br>
longer have a truly 2D configuration, right?<br>
<br>
thanks,<br>
Miguel<br>
<div class="HOEnZb"><div class="h5"><br>
On 15/02/18 03:00, Steven R. Brandt wrote:<br>
&gt; I have a parameter file which I have used fairly recently that does this. A very short running test<br>
&gt; case is attached.<br>
&gt;<br>
&gt; --Steve<br>
&gt;<br>
&gt;<br>
&gt; On 02/14/2018 09:21 AM, Miguel Zilhão wrote:<br>
&gt;&gt; hi Ian,<br>
&gt;&gt;<br>
&gt;&gt; many thanks for the parameter file. this allowed me to go a little further (i was missing<br>
&gt;&gt; CoordBase::boundary_shiftout_<wbr>z_lower = 1 and CoordBase::boundary_shiftout_<wbr>z_upper = 1).<br>
&gt;&gt; however, i&#39;m still getting the following error:<br>
&gt;&gt;<br>
&gt;&gt; ERROR from host meurglysIII process 0<br>
&gt;&gt;     while executing schedule bin (none), routine (no thorn)::(no routine)<br>
&gt;&gt;     in thorn Carpet, file ./Cactus/arrangements/Carpet/<wbr>Carpet/src/SetupGH.cc:2512:<br>
&gt;&gt;     -&gt; There are not enough ghost zones for the desired spatial prolongation order on map 0,<br>
&gt;&gt; refinement level 0.  With a spatial prolongation order of 5, you need at least 3 ghost zones.<br>
&gt;&gt;<br>
&gt;&gt; i&#39;m setting:<br>
&gt;&gt;<br>
&gt;&gt; Carpet::prolongation_order_<wbr>space        = 5<br>
&gt;&gt; Carpet::prolongation_order_<wbr>time         = 2<br>
&gt;&gt;<br>
&gt;&gt; driver::ghost_size_x          <wbr>       = 3<br>
&gt;&gt; driver::ghost_size_y          <wbr>       = 3<br>
&gt;&gt; driver::ghost_size_z          <wbr>       = 0<br>
&gt;&gt;<br>
&gt;&gt; i&#39;m guessing that in the example you provided things worked because you only had one grid? is there<br>
&gt;&gt; any way of doing this with more inner levels?<br>
&gt;&gt;<br>
&gt;&gt; thanks,<br>
&gt;&gt; Miguel<br>
&gt;&gt;<br>
&gt;&gt; On 14/02/18 22:25, <a href="mailto:ian.hinder@aei.mpg.de">ian.hinder@aei.mpg.de</a> wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; On 13 Feb 2018, at 06:19, Miguel Zilhão &lt;<a href="mailto:miguel.zilhao.nogueira@tecnico.ulisboa.pt">miguel.zilhao.nogueira@<wbr>tecnico.ulisboa.pt</a><br>
&gt;&gt;&gt;&gt; &lt;mailto:<a href="mailto:miguel.zilhao.nogueira@tecnico.ulisboa.pt">miguel.zilhao.<wbr>nogueira@tecnico.ulisboa.pt</a>&gt;&gt; wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; hi Erik,<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; thanks for your reply. i&#39;ve tried to set the parameters as you described, but i&#39;m getting a Carpet<br>
&gt;&gt;&gt;&gt; assertion failure:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; cactus_Lean_ET: Cactus/arrangements/Carpet/<wbr>CarpetLib/src/gh.cc:61 &lt;<a href="http://gh.cc:61/" rel="noreferrer" target="_blank">http://gh.cc:61/</a>&gt;: gh::gh(const<br>
&gt;&gt;&gt;&gt; std::vector&lt;vect&lt;int, 3&gt; &gt;&amp;, centering, int, centering, const std::vector&lt;std::vector&lt;bbox&lt;<wbr>int,<br>
&gt;&gt;&gt;&gt; 3&gt; &gt;<br>
&gt;&gt;&gt;&gt;&gt; &amp;, const i2vect&amp;): Assertion `all(box.shape() / box.stride() &gt;= boundary_width[0] +<br>
&gt;&gt;&gt;&gt; boundary_width[1])&#39; failed.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; here&#39;s how i&#39;m specifying my grid:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; CoordBase::xmin               <wbr>       = -48.00<br>
&gt;&gt;&gt;&gt; CoordBase::ymin               <wbr>       = -48.00<br>
&gt;&gt;&gt;&gt; CoordBase::zmin               <wbr>       =   0.00<br>
&gt;&gt;&gt;&gt; CoordBase::xmax               <wbr>       = +48.00<br>
&gt;&gt;&gt;&gt; CoordBase::ymax               <wbr>       = +48.00<br>
&gt;&gt;&gt;&gt; CoordBase::zmax               <wbr>       =  +0.00<br>
&gt;&gt;&gt;&gt; CoordBase::dx                 <wbr>       =   2.00<br>
&gt;&gt;&gt;&gt; CoordBase::dy                 <wbr>       =   2.00<br>
&gt;&gt;&gt;&gt; CoordBase::dz                 <wbr>       =   2.00<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; driver::ghost_size_x          <wbr>       = 3<br>
&gt;&gt;&gt;&gt; driver::ghost_size_y          <wbr>       = 3<br>
&gt;&gt;&gt;&gt; driver::ghost_size_z          <wbr>       = 0<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; CoordBase::boundary_size_x_<wbr>lower     = 3<br>
&gt;&gt;&gt;&gt; CoordBase::boundary_size_y_<wbr>lower     = 3<br>
&gt;&gt;&gt;&gt; CoordBase::boundary_size_z_<wbr>lower     = 0<br>
&gt;&gt;&gt;&gt; CoordBase::boundary_size_x_<wbr>upper     = 0<br>
&gt;&gt;&gt;&gt; CoordBase::boundary_size_y_<wbr>upper     = 0<br>
&gt;&gt;&gt;&gt; CoordBase::boundary_size_z_<wbr>upper     = 0<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; CoordBase::boundary_shiftout_<wbr>x_lower = 0<br>
&gt;&gt;&gt;&gt; CoordBase::boundary_shiftout_<wbr>y_lower = 0<br>
&gt;&gt;&gt;&gt; CoordBase::boundary_shiftout_<wbr>z_lower = 0<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; am i missing something?<br>
&gt;&gt;&gt; Hi Miguel,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; There is an example parameter file in Kranc, for a true 2D Laplace equation (i.e. it doesn&#39;t take<br>
&gt;&gt;&gt; derivatives in the z direction):<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; <a href="https://github.com/ianhinder/Kranc/blob/master/Examples/laplace.par" rel="noreferrer" target="_blank">https://github.com/ianhinder/<wbr>Kranc/blob/master/Examples/<wbr>laplace.par</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I have not tried this recently, but it worked at one point.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt; Ian Hinder<br>
&gt;&gt;&gt; <a href="http://members.aei.mpg.de/ianhin" rel="noreferrer" target="_blank">http://members.aei.mpg.de/<wbr>ianhin</a><br>
&gt;&gt;&gt;<br>
&gt;&gt; ______________________________<wbr>_________________<br>
&gt;&gt; Users mailing list<br>
&gt;&gt; <a href="mailto:Users@einsteintoolkit.org">Users@einsteintoolkit.org</a><br>
&gt;&gt; <a href="http://lists.einsteintoolkit.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.einsteintoolkit.<wbr>org/mailman/listinfo/users</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ______________________________<wbr>_________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@einsteintoolkit.org">Users@einsteintoolkit.org</a><br>
&gt; <a href="http://lists.einsteintoolkit.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.einsteintoolkit.<wbr>org/mailman/listinfo/users</a><br>
&gt;<br>
______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@einsteintoolkit.org">Users@einsteintoolkit.org</a><br>
<a href="http://lists.einsteintoolkit.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.einsteintoolkit.<wbr>org/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Erik Schnetter &lt;<a href="mailto:schnetter@cct.lsu.edu" target="_blank">schnetter@cct.lsu.edu</a>&gt;<br><a href="http://www.perimeterinstitute.ca/personal/eschnetter/" target="_blank">http://www.perimeterinstitute.ca/personal/eschnetter/</a></div><div><br></div></div></div>
</div>