BUG: Corrected ambiguous construct from tmp

This commit is contained in:
andy
2013-01-21 16:48:34 +00:00
parent 03ee3a5046
commit 3bd9426bbd

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -87,10 +87,8 @@ Foam::localAxesRotation::localAxesRotation
origin_(), origin_(),
e3_() e3_()
{ {
FatalErrorIn FatalErrorIn("localAxesRotation(const dictionary&)")
( << " localAxesRotation can not be contructed from dictionary "
"localAxesRotation(const dictionary&)"
) << " localAxesRotation can not be contructed from dictionary "
<< " use the construtctor : " << " use the construtctor : "
"(" "("
" const dictionary& dict, const objectRegistry& orb" " const dictionary& dict, const objectRegistry& orb"
@ -114,8 +112,7 @@ Foam::vector Foam::localAxesRotation::transform(const vector& st) const
{ {
notImplemented notImplemented
( (
"vector Foam::localAxesRotation:: " "vector Foam::localAxesRotation::transform(const vector&) const"
"transform(const vector& st) const"
); );
return vector(vector::zero); return vector(vector::zero);
} }
@ -125,8 +122,7 @@ Foam::vector Foam::localAxesRotation::invTransform(const vector& st) const
{ {
notImplemented notImplemented
( (
"vector Foam::localAxesRotation:: " "vector Foam::localAxesRotation::invTransform(const vector&) const"
"transform(const vector& st) const"
); );
return vector(vector::zero); return vector(vector::zero);
} }
@ -139,10 +135,8 @@ Foam::tmp<Foam::vectorField> Foam::localAxesRotation::transform
{ {
if (Rptr_->size() != st.size()) if (Rptr_->size() != st.size())
{ {
FatalErrorIn FatalErrorIn("localAxesRotation::transform(const vectorField&)")
( << "vectorField st has different size to tensorField "
"localAxesRotation::transform(const vectorField& st) "
) << "vectorField st has different size to tensorField "
<< abort(FatalError); << abort(FatalError);
} }
@ -166,10 +160,8 @@ Foam::tmp<Foam::tensorField> Foam::localAxesRotation::transformTensor
{ {
if (Rptr_->size() != st.size()) if (Rptr_->size() != st.size())
{ {
FatalErrorIn FatalErrorIn("localAxesRotation::transformTensor(const tensorField&)")
( << "tensorField st has different size to tensorField Tr"
"localAxesRotation::transformTensor(const tensorField& st) "
) << "tensorField st has different size to tensorField Tr"
<< abort(FatalError); << abort(FatalError);
} }
return (Rptr_() & st & Rptr_().T()); return (Rptr_() & st & Rptr_().T());
@ -181,10 +173,7 @@ Foam::tensor Foam::localAxesRotation::transformTensor
const tensor& st const tensor& st
) const ) const
{ {
notImplemented notImplemented("tensor localAxesRotation::transformTensor() const");
(
"tensor localAxesRotation::transformTensor() const"
);
return tensor(tensor::zero); return tensor(tensor::zero);
} }
@ -197,14 +186,12 @@ Foam::tmp<Foam::tensorField> Foam::localAxesRotation::transformTensor
{ {
if (cellMap.size() != st.size()) if (cellMap.size() != st.size())
{ {
FatalErrorIn FatalErrorIn("localAxesRotation::transformTensor(const tensorField&)")
( << "tensorField st has different size to tensorField Tr"
"localAxesRotation::transformTensor(const tensorField& st) "
) << "tensorField st has different size to tensorField Tr"
<< abort(FatalError); << abort(FatalError);
} }
const tensorField Rtr = Rptr_().T(); const tensorField Rtr(Rptr_().T());
tmp<tensorField> tt(new tensorField(cellMap.size())); tmp<tensorField> tt(new tensorField(cellMap.size()));
tensorField& t = tt(); tensorField& t = tt();
forAll(cellMap, i) forAll(cellMap, i)
@ -223,10 +210,8 @@ Foam::tmp<Foam::symmTensorField> Foam::localAxesRotation::transformVector
{ {
if (Rptr_->size() != st.size()) if (Rptr_->size() != st.size())
{ {
FatalErrorIn FatalErrorIn("localAxesRotation::transformVector(const vectorField&)")
( << "tensorField st has different size to tensorField Tr"
"localAxesRotation::transformVector(const vectorField& st) "
) << "tensorField st has different size to tensorField Tr"
<< abort(FatalError); << abort(FatalError);
} }