|
[Sponsors] |
Inconsistency of globalIndex (Possible bug??) |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#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 |
|
![]() |
![]() |
![]() |
![]() |
#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 |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
mapFields major bug | alchem | OpenFOAM Bugs | 14 | September 15, 2023 12:48 |
Reporting a bug in Allrun script on wingMotion case | i.sabahi | OpenFOAM Bugs | 0 | June 10, 2018 09:00 |
Bug in Workbench CFX | Pierre1 | CFX | 6 | August 2, 2017 00:18 |
dieselEngineFoam bug - OpenFOAM-1.6-ext | novakm | OpenFOAM Bugs | 1 | December 5, 2013 13:18 |
Serious bug in LES interface | fs82 | OpenFOAM Bugs | 21 | November 16, 2009 08:15 |