Fix segmentation error in IncNavierStokesSolver when AeroForces filter is used
Issue/feature addressed
This MR fix a segmentation fault in IncNavierStokesSolver introduced by MR !1495 (merged). The problem occurs because m_aeroForces
in IncNavierStokes.cpp
is initialized only if MovingReferenceFrame
is used which cause a segmentation fault when the AeroForces
filter is used withtout MovingReferenceFrame
. This MR fix this issue.
Proposed solution
Implementation
Tests
Suggested reviewers
Please suggest any people who would be appropriate to review your code.
Notes
Please add any other information that could be useful for reviewers.
Checklist
-
Functions and classes, or changes to them, are documented. [ ] User guide/documentation is updated.-
Changelog is updated. [ ] Suitable tests added for new functionality.-
Contributed code is correctly formatted. (See the contributing guidelines). [ ] License added to any new files.-
No extraneous files have been added (e.g. compiler output or test data files).