View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001730 | OpenFOAM | Bug | public | 2015-06-02 21:10 | 2015-06-03 09:49 |
Reporter | alexeym | Assigned To | henry | ||
Priority | normal | Severity | trivial | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Summary | 0001730: rhoCentralFoam does not use time controls read in readTimeControls.H | ||||
Description | Line 49 of rhoCentralFoam.C is #include "readTimeControls.H" yet none of the variables created in readTimeControls.H is used in rhoCentralFoam.C. | ||||
Steps To Reproduce | 1. Build rhoCentralFoam.C with -Wall -Wextra flags. 2. Get following warnings: In file included from rhoCentralFoam.C:49: $FOAM_SRC/finiteVolume/lnInclude/readTimeControls.H:38:8: warning: unused variable 'maxDeltaT' [-Wunused-variable] scalar maxDeltaT = ^ $FOAM_SRC/finiteVolume/lnInclude/readTimeControls.H:35:8: warning: unused variable 'maxCo' [-Wunused-variable] scalar maxCo = ^ $FOAM_SRC/finiteVolume/lnInclude/readTimeControls.H:32:12: warning: unused variable 'adjustTimeStep' [-Wunused-variable] const bool adjustTimeStep = ^ 3. Compare variables in warnings with the ones defined in readTimeControls.H | ||||
Additional Information | If line 49 is commented out, solver compiles without warnings. | ||||
Tags | No tags attached. | ||||