[Dune] parallelamgtest

Bernd Flemisch bernd at iws.uni-stuttgart.de
Wed Jun 25 09:39:22 CEST 2008


Dear Dune,

I am trying to run parallelamgtest in istl/paamg/test. In order to 
really test the AMG, I uncommented lines 153-176, commented lines 
178-188, and changed the construction of amg in line 153 to
AMG amg(fop, criterion, smootherArgs, 1, 2, 2, false, comm);
I also attached the file.

Even running sequentially, I get a segmentation fault, see below. 
Running in parallel does not make it better. I run into the same problem 
in dune-dd/nonoverlappingclassic if I try to include the AMG.

Can you help me to get it to run?

Thank you very much. All the best
Bernd



#0  0x000000000047c908 in std::_Base_bitset<1ul>::_M_do_or 
(this=0xffff81fc2460, __x=@0x7fffc1509b60) at 
/usr/include/c++/4.2.1/bitset:387
#1  0x000000000047caed in std::bitset<2ul>::operator|= 
(this=0xffff81fc2460, __rhs=@0x7fffc1509b60) at 
/usr/include/c++/4.2.1/bitset:804
#2  0x000000000047ce37 in Dune::Amg::EdgeProperties::setInfluences 
(this=0xffff81fc2460) at ../../../dune/istl/paamg/dependency.hh:325
#3  0x000000000049c123 in 
Dune::Amg::SymmetricDependency<Dune::BCRSMatrix<Dune::FieldMatrix<double, 
1, 1>, Dune::ISTLAllocator>, 
Dune::Amg::FirstDiagonal>::examine<Dune::Amg::PropertiesGraph<Dune::Amg::SubGraph<Dune::Amg::MatrixGraph<Dune::BCRSMatrix<Dune::FieldMatrix<double, 
1, 1>, Dune::ISTLAllocator> const>, std::vector<bool, 
std::allocator<bool> > >, Dune::Amg::VertexProperties, 
Dune::Amg::EdgeProperties, Dune::IdentityMap, 
Dune::Amg::SubGraph<Dune::Amg::MatrixGraph<Dune::BCRSMatrix<Dune::FieldMatrix<double, 
1, 1>, Dune::ISTLAllocator> const>, std::vector<bool, 
std::allocator<bool> > >::EdgeIndexMap> > (this=0x7fffc1509d60, 
graph=@0x77df70, edge=@0x7fffc1509c00, col=@0x7fffc1509c20) at 
../../../dune/istl/paamg/aggregates.hh:1212
#4  0x00000000004ab0f6 in 
Dune::Amg::Aggregator<Dune::Amg::PropertiesGraph<Dune::Amg::SubGraph<Dune::Amg::MatrixGraph<Dune::BCRSMatrix<Dune::FieldMatrix<double, 
1, 1>, Dune::ISTLAllocator> const>, std::vector<bool, 
std::allocator<bool> > >, Dune::Amg::VertexProperties, 
Dune::Amg::EdgeProperties, Dune::IdentityMap, 
Dune::Amg::SubGraph<Dune::Amg::MatrixGraph<Dune::BCRSMatrix<Dune::FieldMatrix<double, 
1, 1>, Dune::ISTLAllocator> const>, std::vector<bool, 
std::allocator<bool> > >::EdgeIndexMap> 
 >::buildDependency<Dune::Amg::CoarsenCriterion<Dune::Amg::SymmetricCriterion<Dune::BCRSMatrix<Dune::FieldMatrix<double, 
1, 1>, Dune::ISTLAllocator>, Dune::Amg::FirstDiagonal> > > 
(this=0x7fffc1509f60, graph=@0x77df70, matrix=@0x7fffc150a990, 
criterion={<Dune::Amg::SymmetricCriterion<Dune::BCRSMatrix<Dune::FieldMatrix<double, 
1, 1>, Dune::ISTLAllocator>,Dune::Amg::FirstDiagonal>> = 
{<Dune::Amg::AggregationCriterion<Dune::Amg::SymmetricDependency<Dune::BCRSMatrix<Dune::FieldMatrix<double, 
1, 1>, Dune::ISTLAllocator>, Dune::Amg::FirstDiagonal> >> = 
{<Dune::Amg::SymmetricDependency<Dune::BCRSMatrix<Dune::FieldMatrix<double, 
1, 1>, Dune::ISTLAllocator>,Dune::Amg::FirstDiagonal>> = 
{<Dune::Amg::DependencyParameters> = {alpha_ = 0.33333333333333331, 
beta_ = 1.0000000000000001e-05}, matrix_ = 0x7fffc150a990, maxValue_ = 
0.0625, norm_ = {<No data fields>}, row_ = 0, diagonal_ = 4}, 
maxDistance_ = 2, minAggregateSize_ = 4, maxAggregateSize_ = 6, 
connectivity_ = 15, debugLevel_ = 3}, <No data fields>}, maxLevel_ = 15, 
coarsenTarget_ = 200, minCoarsenRate_ = 1.2}) at 
../../../dune/istl/paamg/aggregates.hh:1539
#5  0x00000000004b0364 in 
Dune::Amg::Aggregator<Dune::Amg::PropertiesGraph<Dune::Amg::SubGraph<Dune::Amg::MatrixGraph<Dune::BCRSMatrix<Dune::FieldMatrix<double, 
1, 1>, Dune::ISTLAllocator> const>, std::vector<bool, 
std::allocator<bool> > >, Dune::Amg::VertexProperties, 
Dune::Amg::EdgeProperties, Dune::IdentityMap, 
Dune::Amg::SubGraph<Dune::Amg::MatrixGraph<Dune::BCRSMatrix<Dune::FieldMatrix<double, 
1, 1>, Dune::ISTLAllocator> const>, std::vector<bool, 
std::allocator<bool> > >::EdgeIndexMap> 
 >::build<Dune::BCRSMatrix<Dune::FieldMatrix<double, 1, 1>, 
Dune::ISTLAllocator>, 
Dune::Amg::CoarsenCriterion<Dune::Amg::SymmetricCriterion<Dune::BCRSMatrix<Dune::FieldMatrix<double, 
1, 1>, Dune::ISTLAllocator>, Dune::Amg::FirstDiagonal> > > 
(this=0x7fffc1509f60, m=@0x7fffc150a990, graph=@0x77df70, 
aggregates=@0x762150, c=@0x7fffc150a8e0) at 
../../../dune/istl/paamg/aggregates.hh:1935
#6  0x00000000004b0a11 in 
Dune::Amg::AggregatesMap<int>::buildAggregates<Dune::BCRSMatrix<Dune::FieldMatrix<double, 
1, 1>, Dune::ISTLAllocator>, 
Dune::Amg::PropertiesGraph<Dune::Amg::SubGraph<Dune::Amg::MatrixGraph<Dune::BCRSMatrix<Dune::FieldMatrix<double, 
1, 1>, Dune::ISTLAllocator> const>, std::vector<bool, 
std::allocator<bool> > >, Dune::Amg::VertexProperties, 
Dune::Amg::EdgeProperties, Dune::IdentityMap, 
Dune::Amg::SubGraph<Dune::Amg::MatrixGraph<Dune::BCRSMatrix<Dune::FieldMatrix<double, 
1, 1>, Dune::ISTLAllocator> const>, std::vector<bool, 
std::allocator<bool> > >::EdgeIndexMap>, 
Dune::Amg::CoarsenCriterion<Dune::Amg::SymmetricCriterion<Dune::BCRSMatrix<Dune::FieldMatrix<double, 
1, 1>, Dune::ISTLAllocator>, Dune::Amg::FirstDiagonal> > > 
(this=0x762150, matrix=@0x7fffc150a990, graph=@0x77df70, 
criterion=@0x7fffc150a8e0) at ../../../dune/istl/paamg/aggregates.hh:1915
#7  0x00000000004b0ec4 in 
Dune::Amg::MatrixHierarchy<Dune::OverlappingSchwarzOperator<Dune::BCRSMatrix<Dune::FieldMatrix<double, 
1, 1>, Dune::ISTLAllocator>, Dune::BlockVector<Dune::FieldVector<double, 
1>, Dune::ISTLAllocator>, Dune::BlockVector<Dune::FieldVector<double, 
1>, Dune::ISTLAllocator>, Dune::OwnerOverlapCopyCommunication<int, int> 
 >, Dune::OwnerOverlapCopyCommunication<int, int>, 
std::allocator<Dune::BlockVector<Dune::FieldVector<double, 1>, 
Dune::ISTLAllocator> > 
 >::build<Dune::EnumItem<Dune::OwnerOverlapCopyAttributeSet::AttributeSet, 
0>, 
Dune::Amg::CoarsenCriterion<Dune::Amg::SymmetricCriterion<Dune::BCRSMatrix<Dune::FieldMatrix<double, 
1, 1>, Dune::ISTLAllocator>, Dune::Amg::FirstDiagonal> > > 
(this=0x7377c0, criterion=@0x7fffc150a8e0) at 
../../../dune/istl/paamg/hierarchy.hh:610
#8  0x00000000004b1ce7 in 
AMG<Dune::Amg::CoarsenCriterion<Dune::Amg::SymmetricCriterion<Dune::BCRSMatrix<Dune::FieldMatrix<double, 
1, 1>, Dune::ISTLAllocator>, Dune::Amg::FirstDiagonal> > > 
(this=0x7fffc150a840, matrix=@0x7fffc150aa40, criterion=@0x7fffc150a8e0, 
smootherArgs=@0x7fffc150aa20, gamma=1, preSmoothingSteps=2, 
postSmoothingSteps=2, additive_=false, pinfo=@0x7fffc150a550) at 
../../../dune/istl/paamg/amg.hh:208
#9  0x00000000004b2ae9 in testAmg<1> (N=100, coarsenTarget=200) at 
parallelamgtest.cc:153
#10 0x00000000004b2eff in AMGTester<1, 1, 1>::test (N=100, 
coarsenTarget=200) at parallelamgtest.cc:210
#11 0x000000000047bdcf in main (argc=1, argv=0x7fffc150acd8) at 
parallelamgtest.cc:235

-- 
_____________________________________________________________________

Bernd Flemisch                               phone: +49 711 685 69162
IWS, Universität Stuttgart                   fax:   +49 711 685 60430
Pfaffenwaldring 61                  email: bernd at iws.uni-stuttgart.de
D-70569 Stuttgart                       url: www.iws.uni-stuttgart.de
_____________________________________________________________________

-------------- next part --------------
A non-text attachment was scrubbed...
Name: parallelamgtest.cc
Type: text/x-c++src
Size: 6434 bytes
Desc: not available
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20080625/be22b378/attachment.cc>


More information about the Dune mailing list