[Commits] [svn:einsteintoolkit] GRHydro/trunk/src/ (Rev. 510)

rhaas at tapir.caltech.edu rhaas at tapir.caltech.edu
Sat May 11 01:29:27 CDT 2013


User: rhaas
Date: 2013/05/11 01:29 AM

Modified:
 /trunk/src/
  GRHydro_Con2PrimM_polytype_pt.c

Log:
 GRhydro: Pressure in polytypeM_pt was off by factor inv_sqrt_detg
 
 From: srichers <srichers at caltech.edu>

File Changes:

Directory: /trunk/src/
======================

File [modified]: GRHydro_Con2PrimM_polytype_pt.c
Delta lines: +1 -1
===================================================================
--- trunk/src/GRHydro_Con2PrimM_polytype_pt.c	2013-05-10 15:43:00 UTC (rev 509)
+++ trunk/src/GRHydro_Con2PrimM_polytype_pt.c	2013-05-11 06:29:27 UTC (rev 510)
@@ -406,7 +406,7 @@
   
   //  printf("doublecheck - S, rho, gamma: %e %e %e\n",*sc_in, rho_gm1,gamma);
 
-  p = (*sc_in) * rho_gm1 / gamma; 
+  p = (*sc_in) * inv_sqrt_detg * rho_gm1 / gamma;
 
   u = p / gm1;
 



More information about the Commits mailing list