Commit d24885f8 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

replace variable length array in fix lb/momentum with fixed size array

parent 345c2128
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -102,8 +102,8 @@ void FixLbMomentum::end_of_step()
  double masslb,masslbloc;
  double momentumlbloc[3],momentumlb[3];
  double vcmtotal[3];
  int numvel = fix_lb_fluid->numvel;
  double etacov[numvel];
  const int numvel = fix_lb_fluid->numvel;
  double etacov[19]; // = double etacov[numvel]; i.e. 15 or 19
  double rho;

  if (linear) {