Skip to content

Commit

Permalink
FROSch : compile error..
Browse files Browse the repository at this point in the history
  • Loading branch information
iyamazaki committed Sep 12, 2024
1 parent 17f1019 commit 1ba71f5
Showing 1 changed file with 14 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,27 +121,20 @@ namespace FROSch {
int HarmonicCoarseOperator<SC,LO,GO,NO>::addZeroCoarseSpaceBlock(ConstXMapPtr dofsMap)
{
FROSCH_DETAILTIMER_START_LEVELID(addZeroCoarseSpaceBlockTime,"HarmonicCoarseOperator::addZeroCoarseSpaceBlock");
/////
int blockId = NumberOfBlocks_-1;

// Process the parameter list
stringstream blockIdStringstream;
blockIdStringstream << blockId+1;
string blockIdString = blockIdStringstream.str();
RCP<ParameterList> coarseSpaceList = sublist(sublist(this->ParameterList_,"Blocks"),blockIdString.c_str());
bool useForCoarseSpace = coarseSpaceList->get("Use For Coarse Space",true);

if (useForCoarseSpace) {
// Das könnte man noch ändern
GammaDofs_->resize(GammaDofs_.size()+1);
IDofs_->resize(IDofs_.size()+1);
InterfaceCoarseSpaces_->resize(InterfaceCoarseSpaces_.size()+1);
DofsMaps_->resize(DofsMaps_.size()+1);
DofsPerNode_->resize(DofsPerNode_.size()+1);

NumberOfBlocks_++;

/////
int blockId = NumberOfBlocks_-1;

// Process the parameter list
stringstream blockIdStringstream;
blockIdStringstream << blockId+1;
string blockIdString = blockIdStringstream.str();
RCP<ParameterList> coarseSpaceList = sublist(sublist(this->ParameterList_,"Blocks"),blockIdString.c_str());

GammaDofs_[blockId] = LOVecPtr(0);

XMultiVectorPtr mVPhiGamma;
Expand All @@ -162,6 +155,12 @@ namespace FROSch {
}
}

GammaDofs_->resize(GammaDofs_.size()+1);
IDofs_->resize(IDofs_.size()+1);
InterfaceCoarseSpaces_->resize(InterfaceCoarseSpaces_.size()+1);
DofsMaps_->resize(DofsMaps_.size()+1);
DofsPerNode_->resize(DofsPerNode_.size()+1);

IDofs_[blockId] = LOVecPtr(0);

if (useForCoarseSpace) {
Expand Down

0 comments on commit 1ba71f5

Please sign in to comment.