<div dir="ltr">I think I've found a bug but I'd like to see if someone else <div>can reproduce it (or if it is actually intended behavior).<div><br></div><div>I have a Config file in "FLASH*/source/physics/Hydro/HydroMain/unsplit/MHD_StaggeredMesh_CosmicRays" </div><div>which calls SETUPERROR if nDim == 1</div><div>
<p class=""><span class=""><br></span></p><p class=""><span class="">IF nDim == 1</span></p>
<p class=""><span class=""> SETUPERROR This unit is presently incompatible with 1D because it requires a magnetic field to determine diffusivity direction.</span></p>
<p class=""><span class="">ENDIF</span></p><p class=""><span class=""><br></span></p><p class=""><span class="">When I try to setup a problem that uses this Config file via</span></p><p class="">./setup magnetoHD/CosRay -auto</p><p class="">it fails, complaining that nDim is not set.</p><p class=""><br></p><p class="">If I include "-3d" in the ./setup command then setup succeeds.</p><p class=""><br></p><p class="">In the <a href="http://flash.uchicago.edu/site/flashcode/user_support/flash4_ug_4p3.pdf">User's Guide</a>, p. 44 (explaining -[123]d option) it says that </p><p class=""><br></p><p class="">By default, setup creates a makefile which produces a FLASH executable capable of solving
two-dimensional problems (equivalent to -2d).</p><p class="">So I would think nDim should default to 2 rather than be unset.</p><p class=""><br></p><p class="">Can anyone reproduce this or explain why it may be intentional?</p><p class=""><br></p><p class="">Best,</p><p class="">Ryan</p></div>
</div></div>