Corrected constructors for clang

This commit is contained in:
Henry
2011-06-09 13:45:02 +01:00
parent 84bdcedb33
commit 9ef2864870
3 changed files with 11 additions and 7 deletions

View File

@ -198,7 +198,7 @@ int main(int argc, char *argv[])
{
const label cellI = args.optionLookupOrDefault("cell", 0);
tensorField mI = momentOfInertia::meshInertia(mesh);
tensorField mI(momentOfInertia::meshInertia(mesh));
tensor& J = mI[cellI];

View File

@ -60,7 +60,7 @@ int main(int argc, char *argv[])
pointPatchVectorField::calculatedType()
);
pointVectorField V = U + 2*U;
pointVectorField V(U + 2*U);
Info<< "End\n" << endl;