Skip to content

Commit b00ce2e

Browse files
committed
Working with #332
1 parent b3d51bf commit b00ce2e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Source/Domain.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ inline void Domain::AddCylinderLength(int tag, Vec3_t const & V, double Rxy, dou
690690

691691
//// GHOST THING
692692

693-
int ghost_rows = 3;
693+
const int ghost_rows = 3;
694694

695695
int xy_ghost_part_count[ghost_rows];
696696
//cout << "X/Y Particles: " << numpartxy<<endl;
@@ -1857,8 +1857,9 @@ inline void Domain::CalcGradCorrMixedMatrix () {
18571857

18581858
//cout << "Applying grad corr"<<endl;
18591859
//#pragma omp parallel for schedule (static) num_threads(Nproc) //LUCIANO: THIS IS DONE SAME AS PrimaryComputeAcceleration
1860-
double sumden[Particles.Size()];
1861-
Vec3_t gamma [Particles.Size()];
1860+
const int pcount = Particles.Size();
1861+
double sumden[pcount];
1862+
Vec3_t gamma [pcount];
18621863

18631864
for ( size_t k = 0; k < Nproc ; k++) {
18641865
Particle *P1,*P2;

0 commit comments

Comments
 (0)