mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
applications: Update ...ErrorIn -> ...ErrorInFunction
Avoids the clutter and maintenance effort associated with providing the function signature string.
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2014 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2014-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -85,7 +85,7 @@ Foam::tmp<Foam::volScalarField> Foam::orderedPhasePair::E() const
|
||||
{
|
||||
if (!aspectRatio_.valid())
|
||||
{
|
||||
FatalErrorIn("Foam::orderedPhasePair::E() const")
|
||||
FatalErrorInFunction
|
||||
<< "Aspect ratio model not specified for " << *this << "."
|
||||
<< exit(FatalError);
|
||||
}
|
||||
|
||||
@ -82,7 +82,7 @@ Foam::phasePair::~phasePair()
|
||||
|
||||
const Foam::phaseModel& Foam::phasePair::dispersed() const
|
||||
{
|
||||
FatalErrorIn("Foam::phasePair::dispersed() const")
|
||||
FatalErrorInFunction
|
||||
<< "Requested dispersed phase from an unordered pair."
|
||||
<< exit(FatalError);
|
||||
|
||||
@ -92,7 +92,7 @@ const Foam::phaseModel& Foam::phasePair::dispersed() const
|
||||
|
||||
const Foam::phaseModel& Foam::phasePair::continuous() const
|
||||
{
|
||||
FatalErrorIn("Foam::phasePair::dispersed() const")
|
||||
FatalErrorInFunction
|
||||
<< "Requested continuous phase from an unordered pair."
|
||||
<< exit(FatalError);
|
||||
|
||||
@ -185,7 +185,7 @@ Foam::tmp<Foam::volScalarField> Foam::phasePair::Ta() const
|
||||
|
||||
Foam::tmp<Foam::volScalarField> Foam::phasePair::E() const
|
||||
{
|
||||
FatalErrorIn("Foam::phasePair::E() const")
|
||||
FatalErrorInFunction
|
||||
<< "Requested aspect ratio of the dispersed phase in an unordered pair"
|
||||
<< exit(FatalError);
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2014 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2014-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -125,14 +125,8 @@ Foam::Istream& Foam::operator>>(Istream& is, phasePairKey& key)
|
||||
}
|
||||
else
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"friend Istream& operator>>"
|
||||
"("
|
||||
"Istream& is, "
|
||||
"phasePairKey& key"
|
||||
")"
|
||||
) << "Phase pair type is not recognised. "
|
||||
FatalErrorInFunction
|
||||
<< "Phase pair type is not recognised. "
|
||||
<< temp
|
||||
<< "Use (phaseDispersed in phaseContinuous) for an ordered"
|
||||
<< "pair, or (phase1 and pase2) for an unordered pair."
|
||||
|
||||
Reference in New Issue
Block a user