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

Anshu Dubey dubey at flash.uchicago.edu
Wed Mar 2 08:03:53 CST 2011


Aaron,
Most of the parameters in the units are defined at the Unit_main level, but
the useUnit ones
are defined at the API level. This is because other units can also use them.
For example
the GridParticles routines in Grid need to know if useParticles is true.
Because they are in the Config at API level they get picked by the setup
script whether the unit is included or not.
Anshu

On Tue, Mar 1, 2011 at 2:03 PM, Aaron Froese <aaron.froese at generalfusion.com
> wrote:

> Hi Anshu,
>
> But why is setup visiting units that I specifically excluded in the command
> line AND declared as conflicts?
>
> The constant keyword is not the problem, as I had originally thought.
>  Removing it does not change the behaviour.
>
> Thanks,
> Aaron
> ________________________________________
> From: anshu.uchicago at gmail.com [anshu.uchicago at gmail.com] On Behalf Of
> Anshu Dubey [dubey at flash.uchicago.edu]
> Sent: Tuesday, March 01, 2011 5:48 AM
> To: Aaron  Froese
> Cc: flash-bugs at flash.uchicago.edu
> Subject: Re: [FLASH-BUGS] Constant parameters from ignored units override
> parameters from included units.
>
> 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
>



-- 
**********************************************************************************************************
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