Specifying startTime, endTime, and timeInterval in liggghtsCommandModel.C

Submitted by byama on Fri, 01/22/2021 - 21:05

Hello,

I hadn't found this noted before in the forum, but there appears to be a small typo in the liggghtsCommandModel.C file for CFDEM.
Line 148 seems to be missing a set of parentheses to determine the correct couplingStepInterval value. Replacing line 148 as below seems to correct this:

couplingStepInterval_ = floor(timeInterval_+SMALL/DEMts/couplingInterval); //Original
couplingStepInterval_ = floor((timeInterval_+SMALL)/DEMts/couplingInterval); //Replaced

All the best,
Brian