Solver modules have replaced code that was previously shared between solvers by means of #include-ing header files. Some of these headers are now unused and have been removed. Others are only now used in a single solver and have been moved into that solver.
36 lines
1.0 KiB
C++
36 lines
1.0 KiB
C++
if (!mesh.foundObject<IOdictionary>("radiationProperties"))
|
|
{
|
|
typeIOobject<IOdictionary> radiationProperties
|
|
(
|
|
"radiationProperties",
|
|
runTime.constant(),
|
|
mesh,
|
|
IOobject::MUST_READ,
|
|
IOobject::NO_WRITE,
|
|
false
|
|
);
|
|
|
|
if (radiationProperties.headerOk())
|
|
{
|
|
const word modelType
|
|
(
|
|
IOdictionary(radiationProperties).lookup("radiationModel")
|
|
);
|
|
|
|
if (modelType != "none")
|
|
{
|
|
FatalErrorInFunction
|
|
<< "Radiation model " << modelType
|
|
<< " selected but not enabled in fvModels" << nl
|
|
<< "To enable radiation add " << nl << nl
|
|
<< "radiation" << nl
|
|
<< "{" << nl
|
|
<< " type radiation;" << nl
|
|
<< " libs (\"libradiationModels.so\");" << nl
|
|
<< "}" << nl << nl
|
|
<< "to " << radiationProperties.relativePath()/"fvModels"
|
|
<< exit(FatalError);
|
|
}
|
|
}
|
|
}
|