Skip to content

Commit 7d01be7

Browse files
author
Henry Weller
committed
multiDirRefinement: hexRef8 is not registered to the polyMesh
to allow for directional refinements which are not consistent with hexRef8 which must be deleted before they are applied.
1 parent 3e210ac commit 7d01be7

File tree

3 files changed

+9
-20
lines changed

3 files changed

+9
-20
lines changed

src/polyTopoChange/meshCut/meshModifiers/multiDirRefinement/multiDirRefinement.C

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ void Foam::multiDirRefinement::refineHex8
232232
<< endl;
233233
}
234234

235-
hexRef8& hexRefiner = hexRef8::New
235+
hexRef8 hexRefiner
236236
(
237237
mesh,
238238
labelList(mesh.nCells(), 0), // cellLevel

src/polyTopoChange/polyTopoChange/hexRef8/hexRef8.C

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4129,6 +4129,7 @@ void Foam::hexRef8::storeData
41294129

41304130
void Foam::hexRef8::topoChange(const polyTopoChangeMap& map)
41314131
{
4132+
InfoInFunction << endl;
41324133
Map<label> dummyMap(0);
41334134

41344135
topoChange(map, dummyMap, dummyMap, dummyMap);

src/polyTopoChange/polyTopoChange/hexRef8/hexRef8.H

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -356,16 +356,13 @@ class hexRef8
356356
) const;
357357

358358

359-
//- Declare friendship with the base mesh object so that it can use
360-
// this class' private constructors
361-
friend class DemandDrivenMeshObject
362-
<
363-
polyMesh,
364-
PermanentMeshObject,
365-
hexRef8
366-
>;
359+
public:
367360

368-
// Private constructors
361+
//- Runtime type information
362+
ClassName("hexRef8");
363+
364+
365+
// Constructors
369366

370367
//- Construct from mesh, read_if_present refinement data
371368
// (from write below). If readHistory is true does read_if_present
@@ -393,15 +390,6 @@ class hexRef8
393390
const scalar level0Edge = -great
394391
);
395392

396-
397-
public:
398-
399-
//- Runtime type information
400-
ClassName("hexRef8");
401-
402-
403-
// Constructors
404-
405393
//- Disallow default bitwise copy construction
406394
hexRef8(const hexRef8&) = delete;
407395

@@ -507,7 +495,7 @@ public:
507495
// Called after the mesh change. setRefinement will already have
508496
// made sure the pointLevel_ and cellLevel_ are the size of the new
509497
// mesh so we only need to account for reordering.
510-
void topoChange(const polyTopoChangeMap&);
498+
virtual void topoChange(const polyTopoChangeMap&);
511499

512500

513501
// Restoring : is where other processes delete and reinsert data.

0 commit comments

Comments
 (0)