Commit be4a2651 authored by Chris Cantwell's avatar Chris Cantwell
Browse files

Merge branch 'fix/PeriodicMl' into 'master'

Fix small bug with periodic boundary conditions

This fixes a small bug that can affect simulations with periodic boundary conditions in parallel (the conditions for triggering this bug seem extremely particular).

See merge request !631
parents 1c14a563 f91a9e49
......@@ -6,6 +6,7 @@ v4.3.2
**Library**:
- Add small optimisation for DriverAdaptive (!618)
- Updated FFTW build to use the compiler used for building Nektar++ (!629)
- Fix numbering bug in periodic boundary conditions (!631)
**Packaging**:
- Fixes for DEB package dependencies (!630)
......
......@@ -498,7 +498,8 @@ namespace Nektar
// we find it, set as Dirichlet with the vertex id gId.
if (pIt->first == meshVertId)
{
graph[0][meshVertId] = gId < 0 ? graphVertId++ : gId;
gId = gId < 0 ? graphVertId++ : gId;
graph[0][meshVertId] = gId;
for (i = 0; i < pIt->second.size(); ++i)
{
......@@ -522,7 +523,8 @@ namespace Nektar
if (found)
{
graph[0][pIt->first] = gId < 0 ? graphVertId++ : gId;
gId = gId < 0 ? graphVertId++ : gId;
graph[0][pIt->first] = gId;
for (i = 0; i < pIt->second.size(); ++i)
{
......
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