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

rhaas at tapir.caltech.edu rhaas at tapir.caltech.edu
Tue Apr 15 14:49:05 CDT 2014


User: rhaas
Date: 2014/04/15 02:49 PM

Modified:
 /trunk/src/
  GRHydro_PPMReconstruct_drv_opt.cc

Log:
 GRHydro: unify usage of a[0] vs *a

File Changes:

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

File [modified]: GRHydro_PPMReconstruct_drv_opt.cc
Delta lines: +3 -3
===================================================================
--- trunk/src/GRHydro_PPMReconstruct_drv_opt.cc	2014-04-15 19:49:02 UTC (rev 616)
+++ trunk/src/GRHydro_PPMReconstruct_drv_opt.cc	2014-04-15 19:49:04 UTC (rev 617)
@@ -267,7 +267,7 @@
   //index = i + j*nx + k*nx*ny;
 
 // !!$ PPM starts:
-  if (flux_direction[0] == 1){
+  if (*flux_direction == 1){
     //          !$OMP PARALLEL DO PRIVATE(i, j, k)
     
     for(k = GRHydro_stencil-1; k < nz - GRHydro_stencil + 1; k++) {
@@ -356,7 +356,7 @@
     }  
     //          !$OMP END PARALLEL DO
 
-  } else if (flux_direction[0]==2) {
+  } else if (*flux_direction==2) {
 
     //          !$OMP PARALLEL DO PRIVATE(i, j, k)
     //Make sure to doublecheck the bounds here!
@@ -444,7 +444,7 @@
     }
     //          !$OMP END PARALLEL DO
     
-  } else if (flux_direction[0]==3) {
+  } else if (*flux_direction==3) {
 
     //          !$OMP PARALLEL DO PRIVATE(i, j, k)
     //Make sure to doublecheck the bounds here!



More information about the Commits mailing list