Commit 17555ea4 authored by andy's avatar andy
Browse files

BUG: Corrected cyclic proc patch tag creation

parent adc90617
......@@ -150,13 +150,13 @@ int Foam::processorCyclicPolyPatch::tag() const
referPatch()
);
if (cycPatch.owner())
if (owner())
{
tag_ = Hash<word>()(cycPatch.name());
tag_ = Hash<word>()(cycPatch.name()) % 32768u;
}
else
{
tag_ = Hash<word>()(cycPatch.neighbPatch().name());
tag_ = Hash<word>()(cycPatch.neighbPatch().name()) % 32768u;
}
if (tag_ == Pstream::msgType() || tag_ == -1)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment