[Commits] [svn:einsteintoolkit] Hydro_Analysis/trunk/src/ (Rev. 119)
roland.haas at physics.gatech.edu
roland.haas at physics.gatech.edu
Mon Jan 23 12:02:56 CST 2012
User: rhaas
Date: 2012/01/23 12:02 PM
Modified:
/trunk/src/
Hydro_Analysis.c
Log:
fix SEGFAULT bug in Hydro_Analysis_Init caused by not checking if rho_max had
storage
File Changes:
Directory: /trunk/src/
======================
File [modified]: Hydro_Analysis.c
Delta lines: +2 -1
===================================================================
--- trunk/src/Hydro_Analysis.c 2011-10-25 18:44:55 UTC (rev 118)
+++ trunk/src/Hydro_Analysis.c 2012-01-23 18:02:55 UTC (rev 119)
@@ -8,7 +8,8 @@
{
DECLARE_CCTK_ARGUMENTS
DECLARE_CCTK_PARAMETERS
- *Hydro_Analysis_rho_max = -1.;
+ if (Hydro_Analysis_comp_rho_max || Hydro_Analysis_comp_rho_max_origin_distance)
+ *Hydro_Analysis_rho_max = -1.;
}
/* Populate grid functions to be reduced in Hydro_Analysis_Reduction */
More information about the Commits
mailing list