Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
9ef28648
Commit
9ef28648
authored
Jun 09, 2011
by
Henry
Browse files
Corrected constructors for clang
parent
84bdcedb
Changes
3
Hide whitespace changes
Inline
Side-by-side
applications/test/momentOfInertia/Test-momentOfInertia.C
View file @
9ef28648
...
...
@@ -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
];
...
...
applications/test/pointField/Test-PointField.C
View file @
9ef28648
...
...
@@ -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
;
...
...
tutorials/basic/potentialFoam/cylinder/system/controlDict
View file @
9ef28648
...
...
@@ -94,13 +94,15 @@ functions
Info<< "\nEvaluating analytical solution" << endl;
volVectorField centres = UA.mesh().C();
volScalarField magCentres
=
mag(centres);
volScalarField theta
=
acos((centres & vector(1,0,0))/magCentres);
const
volVectorField
&
centres = UA.mesh().C();
volScalarField magCentres
(
mag(centres)
)
;
volScalarField theta
(
acos((centres & vector(1,0,0))/magCentres)
)
;
volVectorField cs2theta =
volVectorField cs2theta
(
cos(2*theta)*vector(1,0,0)
+ sin(2*theta)*vector(0,1,0);
+ sin(2*theta)*vector(0,1,0)
);
UA = uInfX*(dimensionedVector(vector(1,0,0))
- pow((radius/magCentres),2)*cs2theta);
...
...
@@ -109,8 +111,10 @@ functions
UA.write();
volScalarField error("error", mag(U-UA)/mag(UA));
Info<<"Writing relative error in U to " << error.objectPath()
<< endl;
error.write();
#};
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment