mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
improved error handling
This commit is contained in:
@ -31,7 +31,14 @@ License
|
||||
template<class CloudType>
|
||||
void Foam::SinglePhaseMixture<CloudType>::constructIds()
|
||||
{
|
||||
if (this->phaseProps().size() != 1)
|
||||
if (this->phaseProps().size() == 0)
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"void Foam::SinglePhaseMixture<CloudType>::constructIds()"
|
||||
) << "Phase list is empty" << nl << exit(FatalError);
|
||||
}
|
||||
else if (this->phaseProps().size() > 1)
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user