[FLASH-BUGS] Constant parameters from ignored units override parameters from included units.

Anshu Dubey dubey at flash.uchicago.edu
Tue Mar 1 07:48:30 CST 2011


Aaron,

The setup script cannot arbitrate between units for the initial values of
runtime parameters.
They are picked in the order that setup visits the units. The only place
where the parameter
definitions override other definitions is in the Simulations unit, so the
way to ensure that
you are getting values you want is to include the parameter definition in
you setup directory file.

Anshu

On Mon, Feb 28, 2011 at 4:58 PM, Aaron Froese <
aaron.froese at generalfusion.com> wrote:

> Hi,
>
> I am writing code to include anisotropic conductivity, viscosity, and
> resistivity into the USM solver.  However, I have come across some peculiar
> behaviour by the setup script.
> The new code is inconsistent with the existing materialProperties units, so
> I re-declare the three parameters use_Conductivity, use_Viscosity, and
> use_Resistivity.
>
> I use the setup command:
> ./setup ConductionDelta-aniso -2d -auto \
>     -with-unit=physics/Hydro/HydroMain/unsplit/Anisotropic_MHD \
>     -without-unit=physics/materialProperties/Conductivity \
>     -without-unit=physics/materialProperties/Viscosity \
>     -without-unit=physics/materialProperties/MagneticResistivity
>
> However, the setup_params file contains the values in the Conductivity and
> Viscosity Config files instead of the correct values in Anisotropic_MHD.
>
> physics/materialProperties/Conductivity
>    useConductivity [BOOLEAN] CONSTANT [FALSE]
>        flags whether the conductivity material property is being used
>
> physics/materialProperties/Viscosity
>    useViscosity [BOOLEAN] CONSTANT [FALSE]
>        flags whether the viscosity material property is being used
>
> Notice that this only happens for Conductivity and Viscosity, but not
> Resistivity.  I think this is because use_Resistivity is declared without
> the CONSTANT keyword, but the other two are.
> Without delving into the workings of the setup script, I have found a
> workaround by renaming the materialProperties directory before running the
> setup script.
>
> Best regards,
> Aaron




-- 
**********************************************************************************************************
Anshu Dubey
Associate Director and CS/Applications Group Leader          5747 S. Ellis
Avenue 3rd Flr.
Flash Center for Computational Science                                773
834 2999 (office)
Fellow, Computation
Institute                                                  312 420 0033
(mobile)
University of Chicago and Argonne National Laboratory        773 834 3230
(fax)
**********************************************************************************************************


More information about the flash-bugs mailing list