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

This commit is contained in:
Axel Kohlmeyer 2018-05-04 19:00:43 -04:00
parent 345c212828
commit d24885f805
1 changed files with 2 additions and 2 deletions

View File

@ -102,8 +102,8 @@ void FixLbMomentum::end_of_step()
double masslb,masslbloc; double masslb,masslbloc;
double momentumlbloc[3],momentumlb[3]; double momentumlbloc[3],momentumlb[3];
double vcmtotal[3]; double vcmtotal[3];
int numvel = fix_lb_fluid->numvel; const int numvel = fix_lb_fluid->numvel;
double etacov[numvel]; double etacov[19]; // = double etacov[numvel]; i.e. 15 or 19
double rho; double rho;
if (linear) { if (linear) {