The default rfl value for -g is used when -g is not given. That's the
definition of default, isn't it? =8-)

Greg is saying that -g needs an argument, for the ground refl. It's not an
on/off switch.
 
Rob Guglielmetti  IESNA, LEED AP
Commercial Buildings Research Group
National Renewable Energy Laboratory
1617 Cole Blvd MS:RSF202
Golden, CO 80401
T. 303.275.4319
F. 303.630.2055
E. [email protected]





On 2/9/11 11:05 AM, "Randolph M. Fritz" <[email protected]> wrote:

>So is the default never used?  Or only when -g is not given?
>
>On 2011-02-07 13:49:44 -0800, Gregory J. Ward said:
>
>> That's because -g is expecting an argument (the ground reflectance).
>> If you give "-c" after, it probably calls atof("-c") which returns 0.
>> 
>> In general, Radiance doesn't have very paranoid argument checking.  If
>> you don't give a legal command line, many Radiance programs just muddle
>> through (or crash if they try reading past the last argument).  The
>> exceptions to this are the rendering programs and a few utilities that
>> call badarg() to check command argument types.
>> 
>> -Greg
>> 
>>> From: "Randolph M. Fritz" <[email protected]>
>>> Date: February 7, 2011 1:29:09 PM PST
>>> 
>>> If -g is given as the last argument to the gensky command, a bus error
>>> or segmentation fault results.  That is:
>>> gensky 3 31 10:00 -g -c
>>> works, but
>>> gensky 3 31 10:00 -c -g
>>> fails.
>>> --
>>> Randolph M. Fritz € [email protected]
>>> Environmental Energy Technologies Division € Lawrence Berkeley Labs
>
>
>-- 
>Randolph M. Fritz € [email protected]
>Environmental Energy Technologies Division € Lawrence Berkeley Labs
>
>
>
>_______________________________________________
>Radiance-dev mailing list
>[email protected]
>http://www.radiance-online.org/mailman/listinfo/radiance-dev


_______________________________________________
Radiance-dev mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-dev

Reply via email to