COMP: TensorI.H - provide default case to suppress compiler warning

This commit is contained in:
Andrew Heather
2016-06-28 16:53:21 +01:00
parent dd3fb6225f
commit 0f6f3e3c90

View File

@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
\\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -314,6 +314,11 @@ inline Foam::Vector<Cmpt> Foam::Tensor<Cmpt>::vectorComponent
return z();
break;
}
FatalErrorInFunction
<< "Unhandled component " << cmpt << abort(FatalError);
return x();
}