coalChemistryFoam 编译警告
-
在 coalChemistryFoam 的 Make/options 文件里,包含了下面一行
-I$(FOAM_SOLVERS)/combustion/reactingFoam \
我对比了 reactingFoam 文件夹下的头文件和 coalChemistryFoam 文件夹下的文件,发现并没有需要调用的。但是去掉这一行之后编译时会给警告
In file included from /home/user/OpenFOAM/OpenFOAM-5.x/src/OpenFOAM/lnInclude/postProcess.H:129:0, from coalChemistryFoam.C:50: ./createFields.H: In function ‘int main(int, char**)’: ./createFields.H:30:23: warning: unused variable ‘T’ [-Wunused-variable] const volScalarField& T = thermo.T(); ^ ./createFields.H:31:23: warning: unused variable ‘psi’ [-Wunused-variable] const volScalarField& psi = thermo.psi(); ^
可是这两个变量在 EEqn.H 和 pEqn.H 中有用到。不知道这个警告是否可以忽略?