View Issue Details

IDProjectCategoryView StatusLast Update
0003847OpenFOAMBugpublic2022-06-07 16:46
ReporterAliShaha Assigned Tohenry  
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
PlatformLinuxOSUbuntuOS Version20.04
Product Versiondev 
Fixed in Versiondev 
Summary0003847: Crash in running counterFlowFlame2D_GRI tutorial in parallel
DescriptionOpenFoam crashes when running Allrun-parallel script in:
 /OpenFOAM-dev/tutorials/combustion/reactingFoam/laminar/counterFlowFlame2D_GRI

Reason: inconsistency between the decompositionMethod and loadBalancer when multiConstraint is set to true.

OpenFOAM-dev/src/fvMeshDistributors/loadBalancer/fvMeshDistributorsLoadBalancer.C, lines 148 and 150:

        const int nWeights = cpuLoads.size() + 1;
        weights.setSize(nWeights*mesh.nCells());

OpenFOAM-dev/blob/c1acd88a37fe7b74ec5cfc759c2d6ee32d5194b2/src/parallel/decompose/decompositionMethods/decompositionMethod/decompositionMethod.C,
lines 691-697

    if (nWeights > 0 && cellWeights.size() != mesh.nCells())
    {
        FatalErrorInFunction
            << "Number of weights " << cellWeights.size()
            << " differs from number of cells " << mesh.nCells()
            << exit(FatalError);
    }

Balancer sets the cellWeights size to: (nWeights*nCells) however decompositionMethod throws error when (cellWeights.size() != mesh.nCells()).
Steps To Reproduce~ cd /OpenFOAM-dev/tutorials/combustion/reactingFoam/laminar/counterFlowFlame2D_GRI
~ ./Allrun-parallel
TagsNo tags attached.

Activities

henry

2022-06-07 16:46

manager   ~0012626

Resolved by commit 39422ac00ae6aa40d6970fa03a1e0b4eefd2d208

Issue History

Date Modified Username Field Change
2022-06-07 15:06 AliShaha New Issue
2022-06-07 16:46 henry Assigned To => henry
2022-06-07 16:46 henry Status new => resolved
2022-06-07 16:46 henry Resolution open => fixed
2022-06-07 16:46 henry Fixed in Version => dev
2022-06-07 16:46 henry Note Added: 0012626