[Dune] Error if first action is iterating over ghost nodes with ALU

Patrick Leidenberger leidenberger at ifh.ee.ethz.ch
Sat Oct 15 22:52:15 CEST 2011


Hi all,

I stumbled over a strange behavior of the iterator over ghost nodes with 
ALU simplices in 3d:
If the first action in my code (after grid creation) is an iteration 
over the ghost nodes the execution of the parallel code stops with the 
message shown below this mail.

If I do some other iterator before the ghost iteration, everything is 
fine. (set 'true' in line 90)

I attached the modified test-alugrid from dune-grid/dune/grid/test/ to 
demonstrate the bug.

My system has not changed since my last mail:
Current dune from SVN, last co 26h ago.
dune-grid rev 7698
ALUgrid 1.23, with simplices in 3d
Standart Ubuntu 11.04, 10.10 with standart gcc, openmpi & co.

Is this behavior normal or a bug?

Best regards

Patrick


test-alugrid: ../../../dune/grid/alugrid/3d/grid.hh:853: int 
Dune::ALU3dGrid<<anonymous>, <template-parameter-1-2> 
 >::getLevelOfLeafVertex(const typename Dune::ALU3dImplTraits<elType, 
Comm>::VertexType&) const [with Dune::ALU3dGridElementType elType = 
(Dune::ALU3dGridElementType)4u, Comm = ompi_communicator_t*]: Assertion 
`leafVertexList_.up2Date()' failed.
[loo100:18896] *** Process received signal ***
[loo100:18896] Signal: Aborted (6)
[loo100:18896] Signal code:  (-6)
test-alugrid: ../../../dune/grid/alugrid/3d/grid.hh:853: int 
Dune::ALU3dGrid<<anonymous>, <template-parameter-1-2> 
 >::getLevelOfLeafVertex(const typename Dune::ALU3dImplTraits<elType, 
Comm>::VertexType&) const [with Dune::ALU3dGridElementType elType = 
(Dune::ALU3dGridElementType)4u, Comm = ompi_communicator_t*]: Assertion 
`leafVertexList_.up2Date()' failed.
[loo100:18895] *** Process received signal ***
[loo100:18895] Signal: Aborted (6)
[loo100:18895] Signal code:  (-6)
[loo100:18896] [ 0] /lib/libpthread.so.0(+0xfb40) [0x7f2d263fcb40]
[loo100:18896] [ 1] /lib/libc.so.6(gsignal+0x35) [0x7f2d2609dba5]
[loo100:18896] [ 2] /lib/libc.so.6(abort+0x180) [0x7f2d260a16b0]
[loo100:18896] [ 3] /lib/libc.so.6(__assert_fail+0xf1) [0x7f2d26096a71]
[loo100:18896] [ 4] 
./test-alugrid(_ZNK4Dune9ALU3dGridILNS_20ALU3dGridElementTypeE4EP19ompi_communicator_tE20getLevelOfLeafVertexERKN12ALUGridSpace6Gitter6vertexE+0x3f) 
[0x8aa801]
[loo100:18896] [ 5] 
./test-alugrid(_ZN4Dune21ALU3dGridTreeIteratorIN12ALUGridSpace28ALU3dGridLeafIteratorWrapperILi3ELNS_21PartitionIteratorTypeE5EP19ompi_communicator_tEEE8GetLevelINS_9ALU3dGridILNS_20ALU3dGridElementTypeE4ES5_EELi3EE8getLevelINS1_6Gitter6vertexEEEiRKSB_RKT_i+0x2c) 
[0x8a0ec7]
[loo100:18896] [ 6] 
./test-alugrid(_ZN4Dune21ALU3dGridTreeIteratorIN12ALUGridSpace28ALU3dGridLeafIteratorWrapperILi3ELNS_21PartitionIteratorTypeE5EP19ompi_communicator_tEEE7setItemINS_9ALU3dGridILNS_20ALU3dGridElementTypeE4ES5_EENS_21ALU3dGridLeafIteratorILi3ELS3_5EKSB_EEEEvRKT_RT0_RS6_i+0x8e) 
[0x899e16]
[loo100:18896] [ 7] 
./test-alugrid(_ZN4Dune21ALU3dGridTreeIteratorIN12ALUGridSpace28ALU3dGridLeafIteratorWrapperILi3ELNS_21PartitionIteratorTypeE5EP19ompi_communicator_tEEE9firstItemINS_9ALU3dGridILNS_20ALU3dGridElementTypeE4ES5_EENS_21ALU3dGridLeafIteratorILi3ELS3_5EKSB_EEEEvRKT_RT0_i+0xb4) 
[0x8a0fe0]
[loo100:18896] [ 8] 
./test-alugrid(_ZN4Dune21ALU3dGridLeafIteratorILi3ELNS_21PartitionIteratorTypeE5EKNS_9ALU3dGridILNS_20ALU3dGridElementTypeE4EP19ompi_communicator_tEEEC1ERKNS_20ALUGridObjectFactoryIS6_EEib+0xfb) 
[0x899f45]
[loo100:18896] [ 9] 
./test-alugrid(_ZNK4Dune9ALU3dGridILNS_20ALU3dGridElementTypeE4EP19ompi_communicator_tE23createLeafIteratorBeginILi3ELNS_21PartitionIteratorTypeE5EEENS_15ALU3dGridFamilyILS1_4ES3_E6Traits5CodimIXT_EE9PartitionIXT0_EE12LeafIteratorEi+0x5a) 
[0x8939a2]
[loo100:18896] [10] 
./test-alugrid(_ZNK4Dune9ALU3dGridILNS_20ALU3dGridElementTypeE4EP19ompi_communicator_tE9leafbeginILi3ELNS_21PartitionIteratorTypeE5EEENS_15ALU3dGridFamilyILS1_4ES3_E6Traits5CodimIXT_EE9PartitionIXT0_EE12LeafIteratorEv+0x29) 
[0x88b1bb]
[loo100:18896] [11] 
./test-alugrid(_Z18checkIteratorCodimILi3EN4Dune14ALUSimplexGridILi3ELi3EEEEvRT0_i+0x4d) 
[0x8821e7]
[loo100:18896] [12] 
./test-alugrid(_Z14checkIteratorsIN4Dune14ALUSimplexGridILi3ELi3EEEEvRT_i+0x20) 
[0x879aaf]
[loo100:18896] [13] 
./test-alugrid(_Z16checkALUParallelIN4Dune14ALUSimplexGridILi3ELi3EEEEvRT_iii+0x3a) 
[0x871714]
[loo100:18896] [14] ./test-alugrid(main+0xfc) [0x85c31e]
[loo100:18896] [15] /lib/libc.so.6(__libc_start_main+0xfe) [0x7f2d26088d8e]
[loo100:18896] [16] ./test-alugrid() [0x85c049]
[loo100:18896] *** End of error message ***
--------------------------------------------------------------------------
mpirun noticed that process rank 1 with PID 18896 on node loo100 exited 
on signal 6 (Aborted).
--------------------------------------------------------------------------


-- 

-------------------------------------
Patrick Leidenberger
Phone: +41 44 63 20357
Email: leidenberger at ifh.ee.ethz.ch
Laboratory for Electromagnetic Fields
and Microwave Electronics
ETH Zuerich, Switzerland
-------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-alugrid.cc
Type: application/pgp-keys
Size: 4640 bytes
Desc: not available
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20111015/2b248c57/attachment.key>


More information about the Dune mailing list