Commit 0f6f3e3c authored by Andrew Heather's avatar Andrew Heather
Browse files

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

parent dd3fb622
......@@ -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();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment