[Commits] [svn:einsteintoolkit] Hydro_InitExcision/trunk/src/ (Rev. 128)
knarf at cct.lsu.edu
knarf at cct.lsu.edu
Wed Nov 14 22:35:46 CST 2012
User: knarf
Date: 2012/11/14 10:35 PM
Modified:
/trunk/src/
Hydro_InitExcision.c
Log:
place parentheses better (and thus silence compiler warnings)
File Changes:
Directory: /trunk/src/
======================
File [modified]: Hydro_InitExcision.c
Delta lines: +4 -4
===================================================================
--- trunk/src/Hydro_InitExcision.c 2012-11-05 16:05:20 UTC (rev 127)
+++ trunk/src/Hydro_InitExcision.c 2012-11-15 04:35:46 UTC (rev 128)
@@ -118,8 +118,8 @@
{
if (domain_val == full)
{
- if ( (hydro_initexcision_coordinate_length <= 0.0) &&
- ( ( x_frac > 0.5 - hydro_initexcision_fraction) &&
+ if ( ( (hydro_initexcision_coordinate_length <= 0.0) &&
+ ( x_frac > 0.5 - hydro_initexcision_fraction) &&
( x_frac < 0.5 + hydro_initexcision_fraction) &&
( y_frac > 0.5 - hydro_initexcision_fraction) &&
( y_frac < 0.5 + hydro_initexcision_fraction) &&
@@ -227,8 +227,8 @@
}
else if (hydro_initexcision_type_val == sphere)
{
- if ( (hydro_initexcision_coordinate_length <= 0.0) &&
- ( ( (x[point]-hydro_initexcision_position_x) *
+ if ( ( (hydro_initexcision_coordinate_length <= 0.0) &&
+ ( (x[point]-hydro_initexcision_position_x) *
(x[point]-hydro_initexcision_position_x) +
(y[point]-hydro_initexcision_position_y) *
(y[point]-hydro_initexcision_position_y) +
More information about the Commits
mailing list