View Issue Details

IDProjectCategoryView StatusLast Update
0003316OpenFOAMBugpublic2019-08-05 11:33
Reporterjheylmun Assigned Tohenry  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformGNU/LinuxOSUbunutuOS Version19.04
Product Versiondev 
Summary0003316: dynamicRefineFvMesh fails on unrefine
DescriptionWhen the unrefine function is called an index goes out of bounds
Steps To Reproduce./Allrun with tutorials/multiphase/interFoam/laminar/damBreakWithObsticle
Additional InformationSelected 51 cells for refinement out of 110733.
Refined from 110733 to 111090 cells.
Selected 5 split points out of a possible 9710.
Unrefined from 111090 to 111055 cells.


--> FOAM FATAL ERROR:
index 111055 out of range 0 ... 111054

    From function void Foam::UList<T>::checkIndex(Foam::label) const [with T = double; Foam::label = int]
    in file /home/jheylmun/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/UListI.H at line 106.

FOAM aborting

#0 Foam::error::printStack(Foam::Ostream&) at ~/OpenFOAM/OpenFOAM-dev/src/OSspecific/POSIX/printStack.C:218
#1 Foam::error::abort() at ~/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/error.C:249
#2 Foam::Ostream& Foam::operator<< <Foam::error>(Foam::Ostream&, Foam::errorManip<Foam::error>) in "/home/jheylmun/OpenFOAM/OpenFOAM-dev/platforms/linux64GccDPInt32Debug/bin/interFoam"
#3 Foam::UList<double>::checkIndex(int) const in "/home/jheylmun/OpenFOAM/OpenFOAM-dev/platforms/linux64GccDPInt32Debug/bin/interFoam"
#4 Foam::UList<double>::operator[](int) const in "/home/jheylmun/OpenFOAM/OpenFOAM-dev/platforms/linux64GccDPInt32Debug/bin/interFoam"
#5 Foam::Field<double>::doMap(Foam::UList<double> const&, Foam::List<Foam::List<int> > const&, Foam::List<Foam::List<double> > const&) at ~/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/Field.C:327 (discriminator 2)
#6 Foam::Field<double>::map(Foam::UList<double> const&, Foam::List<Foam::List<int> > const&, Foam::List<Foam::List<double> > const&) at ~/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/Field.C:355
#7 void Foam::generalFieldMapper::map<double>(Foam::Field<double>&, Foam::Field<double> const&) const at ~/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/fields/Fields/fieldMappers/generalFieldMapper/generalFieldMapperTemplates.C:59
#8 Foam::generalFieldMapper::operator()(Foam::Field<double>&, Foam::Field<double> const&) const at ~/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/fields/Fields/fieldMappers/generalFieldMapper/generalFieldMapper.C:69
#9 Foam::MapInternalField<double, Foam::fvMeshMapper, Foam::volMesh>::operator()(Foam::Field<double>&, Foam::fvMeshMapper const&) const at ~/OpenFOAM/OpenFOAM-dev/src/finiteVolume/lnInclude/MapFvVolField.H:73
#10 void Foam::MapGeometricFields<double, Foam::fvPatchField, Foam::fvMeshMapper, Foam::volMesh>(Foam::fvMeshMapper const&) at ~/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/MapGeometricFields.H:135 (discriminator 4)
#11 Foam::fvMesh::mapFields(Foam::mapPolyMesh const&) at ~/OpenFOAM/OpenFOAM-dev/src/finiteVolume/fvMesh/fvMesh.C:595
#12 Foam::fvMesh::updateMesh(Foam::mapPolyMesh const&) at ~/OpenFOAM/OpenFOAM-dev/src/finiteVolume/fvMesh/fvMesh.C:844
#13 Foam::dynamicRefineFvMesh::unrefine(Foam::List<int> const&) at ~/OpenFOAM/OpenFOAM-dev/src/dynamicFvMesh/dynamicRefineFvMesh/dynamicRefineFvMesh.C:524
#14 Foam::dynamicRefineFvMesh::update() at ~/OpenFOAM/OpenFOAM-dev/src/dynamicFvMesh/dynamicRefineFvMesh/dynamicRefineFvMesh.C:1345 (discriminator 1)
#15 ? in "/home/jheylmun/OpenFOAM/OpenFOAM-dev/platforms/linux64GccDPInt32Debug/bin/interFoam"
#16 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#17 ? in "/home/jheylmun/OpenFOAM/OpenFOAM-dev/platforms/linux64GccDPInt32Debug/bin/interFoam"
Aborted (core dumped)
TagsNo tags attached.

Relationships

related to 0003323 closedhenry original tutorial damBreakWithObstable craches -- issue dynamic Mesh? 

Activities

henry

2019-07-26 11:41

manager   ~0010650

Thanks for reporting.

Resolved in OpenFOAM-7 by commit 8235d2d20c010a4810d059a1a7c8ab414918bae5
Resolved in OpenFOAM-dev by commit 22bba48722738e54f215909839aa536f69e8b1eb

Issue History

Date Modified Username Field Change
2019-07-24 21:26 jheylmun New Issue
2019-07-26 11:41 henry Assigned To => henry
2019-07-26 11:41 henry Status new => resolved
2019-07-26 11:41 henry Resolution open => fixed
2019-07-26 11:41 henry Fixed in Version => 7
2019-07-26 11:41 henry Note Added: 0010650
2019-08-05 11:33 henry Relationship added related to 0003323