[Commits] [svn:einsteintoolkit] incoming/TOVSolverHot/src/ (Rev. 32)
knarf at cct.lsu.edu
knarf at cct.lsu.edu
Wed Dec 15 15:41:48 CST 2010
User: knarf
Date: 2010/12/15 03:41 PM
Modified:
/TOVSolverHot/src/
tov.c
Log:
initialize some variables
File Changes:
Directory: /TOVSolverHot/src/
=============================
File [modified]: tov.c
Delta lines: +6 -6
===================================================================
--- TOVSolverHot/src/tov.c 2010-12-07 00:07:55 UTC (rev 31)
+++ TOVSolverHot/src/tov.c 2010-12-15 21:41:48 UTC (rev 32)
@@ -151,7 +151,7 @@
eps = press / (Gamma - 1.0) / rho;
} else {
// EOS_Omni code
- CCTK_INT keytemp;
+ CCTK_INT keytemp = 0;
CCTK_INT keyerr = 0;
CCTK_INT anyerr = 0;
CCTK_INT n = 1;
@@ -327,7 +327,7 @@
pow(rho_central, TOV_Gamma);
} else {
// EOS_Omni code
- CCTK_INT keytemp;
+ CCTK_INT keytemp = 0;
CCTK_INT keyerr = 0;
CCTK_INT anyerr = 0;
CCTK_INT n = 1;
@@ -359,7 +359,7 @@
CCTK_VInfo(CCTK_THORNSTRING, "EOS problem in TOV 2: %d",
keyerr);
CCTK_VInfo(CCTK_THORNSTRING, "%15.6E %15.6E %15.6E %15.6E %15.6E",
- rho_central,eps,xtemp,xye,TOV_press_1d[star_i]);
+ rho_central,xeps,xtemp,xye,TOV_press_1d[star_i]);
CCTK_WARN(0,"aborting");
}
@@ -435,7 +435,7 @@
local_rho = pow(TOV_press_1d[i+1] / TOV_K, 1.0 / TOV_Gamma);
} else {
// EOS_Omni code
- CCTK_INT keytemp;
+ CCTK_INT keytemp = 0;
CCTK_INT keyerr = 0;
CCTK_INT anyerr = 0;
CCTK_INT n = 1;
@@ -832,11 +832,11 @@
1.0/TOV_Gamma);
} else {
// EOS_Omni code
- CCTK_INT keytemp;
+ CCTK_INT keytemp = 0;
CCTK_INT keyerr = 0;
CCTK_INT anyerr = 0;
CCTK_INT n = 1;
- CCTK_REAL xeps,xtemp,xye,xent,xprs;
+ CCTK_REAL xtemp,xye,xent,xprs;
More information about the Commits
mailing list