--------------------------------------------------------
unsigned int dealii::DoFCellAccessor<dealii::hp::DoFHandler<3, 3>, false>::active_fe_index() const [DoFHandlerType = dealii::hp::DoFHandler<3, 3>, lda = false]
The violated condition was:
(dynamic_cast<const dealii::DoFHandler<DoFHandlerType::dimension,DoFHandlerType::space_dimension>*> (this->dof_handler) != nullptr) || (this->is_locally_owned() || this->is_ghost())
Additional information:
You can only query active_fe_index information on cells that are either locally owned or (after distributing degrees of freedom) are ghost cells.
Stacktrace:
-----------
#0 2 libdeal_II.g.9.0.0.dylib 0x000000011842d31c _ZNK6dealii15DoFCellAccessorINS_2hp10DoFHandlerILi3ELi3EEELb0EE15active_fe_indexEv + 380: 2 libdeal_II.g.9.0.0.dylib 0x000000011842d31c _ZNK6dealii15DoFCellAccessorINS_2hp10DoFHandlerILi3ELi3EEELb0EE15active_fe_indexEv
#1 3 libdeal_II.g.9.0.0.dylib 0x00000001195af850 _ZN6dealii8internal2hp24DoFHandlerImplementation14Implementation13reserve_spaceILi3EEEvRNS_2hp10DoFHandlerILi3EXT_EEE + 304: 3 libdeal_II.g.9.0.0.dylib 0x00000001195af850 _ZN6dealii8internal2hp24DoFHandlerImplementation14Implementation13reserve_spaceILi3EEEvRNS_2hp10DoFHandlerILi3EXT_EEE
#2 4 libdeal_II.g.9.0.0.dylib 0x00000001195aeb06 _ZN6dealii2hp10DoFHandlerILi3ELi3EE15distribute_dofsERKNS0_12FECollectionILi3ELi3EEE + 630: 4 libdeal_II.g.9.0.0.dylib 0x00000001195aeb06 _ZN6dealii2hp10DoFHandlerILi3ELi3EE15distribute_dofsERKNS0_12FECollectionILi3ELi3EEE
#3 5 rep 0x000000010bb5e2fd main + 413: 5 rep 0x000000010bb5e2fd main
#4 6 libdyld.dylib 0x00007fff6004f015 start + 1: 6 libdyld.dylib 0x00007fff6004f015 start
--------------------------------------------------------
- build type is release,
- dim = 2,
- use (non-distributed) Triangulation class, or
- run with only one processor.
The error happens inside distribute_dofs(). I'm not sure if I used the wrong classes/functions for parallel or there is a bug in dealii. I'd be very glad to see some examples/tutorials of using hp::* in distributed system, but couldn't find any yet.