Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
b84caecc
Commit
b84caecc
authored
4 years ago
by
Mark OLESEN
Browse files
Options
Downloads
Patches
Plain Diff
BUG: useless copy of input (primitiveMeshTools::makeCellCentresAndVols)
parent
d2c0c97a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/OpenFOAM/meshes/primitiveMesh/primitiveMeshCheck/primitiveMeshTools.C
+3
-3
3 additions, 3 deletions
...hes/primitiveMesh/primitiveMeshCheck/primitiveMeshTools.C
with
3 additions
and
3 deletions
src/OpenFOAM/meshes/primitiveMesh/primitiveMeshCheck/primitiveMeshTools.C
+
3
−
3
View file @
b84caecc
...
...
@@ -6,7 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2012-2016 OpenFOAM Foundation
Copyright (C) 2017-201
9
OpenCFD Ltd.
Copyright (C) 2017-20
2
1 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
...
...
@@ -114,9 +114,9 @@ void Foam::primitiveMeshTools::makeCellCentresAndVols
{
typedef
Vector
<
solveScalar
>
solveVector
;
PrecisionAdaptor
<
solveVector
,
vector
>
tcellCtrs
(
cellCtrs_s
);
PrecisionAdaptor
<
solveVector
,
vector
>
tcellCtrs
(
cellCtrs_s
,
false
);
PrecisionAdaptor
<
solveScalar
,
scalar
>
tcellVols
(
cellVols_s
,
false
);
Field
<
solveVector
>&
cellCtrs
=
tcellCtrs
.
ref
();
PrecisionAdaptor
<
solveScalar
,
scalar
>
tcellVols
(
cellVols_s
);
Field
<
solveScalar
>&
cellVols
=
tcellVols
.
ref
();
// Clear the fields for accumulation
...
...
This diff is collapsed.
Click to expand it.
Mattijs Janssens
@Mattijs
mentioned in issue
#3194 (closed)
·
1 year ago
mentioned in issue
#3194 (closed)
mentioned in issue #3194
Toggle commit list
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment