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
2de1a26c
Commit
2de1a26c
authored
1 year ago
by
Mark OLESEN
Browse files
Options
Downloads
Patches
Plain Diff
STYLE: indentation, comments
ENH: additional faMesh cleanup in CleanFunctions
parent
227480c3
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bin/tools/CleanFunctions
+7
-3
7 additions, 3 deletions
bin/tools/CleanFunctions
src/OpenFOAM/meshes/polyMesh/polyMesh.H
+8
-7
8 additions, 7 deletions
src/OpenFOAM/meshes/polyMesh/polyMesh.H
src/finiteArea/faMesh/faMesh.H
+4
-2
4 additions, 2 deletions
src/finiteArea/faMesh/faMesh.H
with
19 additions
and
12 deletions
bin/tools/CleanFunctions
+
7
−
3
View file @
2de1a26c
...
...
@@ -6,7 +6,7 @@
# \\/ M anipulation |
#------------------------------------------------------------------------------
# Copyright (C) 2011-2016 OpenFOAM Foundation
# Copyright (C) 2015-202
2
OpenCFD Ltd.
# Copyright (C) 2015-202
3
OpenCFD Ltd.
#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM, distributed under GPL-3.0-or-later.
...
...
@@ -107,6 +107,10 @@ cleanPostProcessing()
cleanFaMesh
()
{
if
[
-e
constant/finite-area/faMesh
]
then
rm
-rf
constant/finite-area/faMesh
fi
if
[
-e
constant/faMesh
]
then
if
[
-e
constant/faMesh/faMeshDefinition
]
...
...
@@ -116,7 +120,7 @@ cleanFaMesh()
echo
echo
"Warning: not removing constant/faMesh/"
echo
" It contains a 'faMeshDefinition' file"
echo
"
R
elocate
the
file(s) to system/
to avoid this warning
"
echo
"
Please r
elocate file(s) to system/
!!
"
echo
else
# Can remove constant/faMesh/ entirely (no faMeshDefinition)
...
...
@@ -138,7 +142,7 @@ cleanPolyMesh()
echo
echo
"Warning: not removing constant/polyMesh/"
echo
" It contains a 'blockMeshDict' or 'blockMeshDict.m4' file"
echo
"
R
elocate
the
file(s) to system/
to avoid this warning
"
echo
"
Please r
elocate file(s) to system/
!!
"
echo
else
# Can remove constant/polyMesh/ entirely (no blockMeshDict)
...
...
This diff is collapsed.
Click to expand it.
src/OpenFOAM/meshes/polyMesh/polyMesh.H
+
8
−
7
View file @
2de1a26c
...
...
@@ -116,10 +116,11 @@ private:
// Private Data
// Primitive mesh data
//- Mesh and solver state data
meshState
data_
;
//- Mesh data
meshState
data_
;
// Primitive mesh data
//- Points
pointIOField
points_
;
...
...
@@ -434,11 +435,11 @@ public:
// Access
//-
Return a
reference to the mesh data
virtual
meshState
&
data
()
noexcept
{
return
data_
;}
//-
Const
reference to the mesh
and solver state
data
virtual
const
meshState
&
data
()
const
noexcept
{
return
data_
;
}
//- Re
turn a const re
ference to the mesh data
virtual
const
meshState
&
data
()
const
noexcept
{
return
data_
;}
//- Reference to the mesh
and solver state
data
virtual
meshState
&
data
()
noexcept
{
return
data_
;
}
//- Return raw points
virtual
const
pointField
&
points
()
const
;
...
...
This diff is collapsed.
Click to expand it.
src/finiteArea/faMesh/faMesh.H
+
4
−
2
View file @
2de1a26c
...
...
@@ -645,9 +645,11 @@ public:
//- Return the current instance directory for faces
const
fileName
&
facesInstance
()
const
;
const
meshState
&
data
()
const
noexcept
{
return
mesh
().
data
();
}
//- Const reference to the mesh and solver state data
const
meshState
&
data
()
const
{
return
mesh
().
data
();
}
meshState
&
data
()
noexcept
{
return
const_cast
<
polyMesh
&>
(
mesh
()).
data
();
}
//- Reference to the mesh and solver state data
meshState
&
data
()
{
return
const_cast
<
polyMesh
&>
(
mesh
()).
data
();
}
// Parallel
...
...
This diff is collapsed.
Click to expand it.
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