|
[Sponsors] |
Inconsistency of globalIndex (Possible bug??) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 23, 2019, 09:42 |
Inconsistency of globalIndex (Possible bug??)
|
#1 |
Member
Ashish Magar
Join Date: Jul 2016
Location: Mumbai, India
Posts: 81
Rep Power: 10 |
Hello,
I am trying to generate a list of global cellIDs for a cellSet using local cellIDs of a decomposed case. I have tested my code for two cases; cavity and 1D straight channel. Code:
globalIndex globalNumbering(mesh.nCells()); word cellSetName = "b1"; cellSet c1(mesh, cellSetName); labelList channelID = c1.toc(); labelList gloProc(channelID.size()); labelList locProc(channelID.size()); for(int d=0; d<channelID.size(); d++) { const label globalCId = globalNumbering.toGlobal(channelID[d]); gloProc[d] = globalCId; const label localCId = globalNumbering.toLocal(globalCId); locProc[d] = localCId; } Pout << "Local Lists on all Procs " << locProc << nl; Pout << "Global Lists on all Procs " << gloProc << nl; They do not match in any way for the cavity case..!! Am I doing something wrong, or this might be a possible bug. Any suggestions..?? Thanks. Ps: I am using OFv1806 |
|
August 29, 2019, 11:07 |
|
#2 |
Member
Ashish Magar
Join Date: Jul 2016
Location: Mumbai, India
Posts: 81
Rep Power: 10 |
Anyone wanting to know further updates, here they are:
https://develop.openfoam.com/Develop...us/issues/1412 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
mapFields major bug | alchem | OpenFOAM Bugs | 14 | September 15, 2023 13:48 |
Reporting a bug in Allrun script on wingMotion case | i.sabahi | OpenFOAM Bugs | 0 | June 10, 2018 10:00 |
Bug in Workbench CFX | Pierre1 | CFX | 6 | August 2, 2017 01:18 |
dieselEngineFoam bug - OpenFOAM-1.6-ext | novakm | OpenFOAM Bugs | 1 | December 5, 2013 14:18 |
Serious bug in LES interface | fs82 | OpenFOAM Bugs | 21 | November 16, 2009 09:15 |