Skip to content
Snippets Groups Projects
Commit fc619e37 authored by Siqi Ling's avatar Siqi Ling
Browse files

change in function matvecassemble to get rid of: Da stimmt was nicht

parent 1c8e6e76
No related branches found
No related tags found
No related merge requests found
......@@ -341,19 +341,21 @@ namespace AMDiS {
TEST_EXIT(rowFeSpace->getBasisFcts() == colFeSpace->getBasisFcts())
("Works only for equal basis functions for different components!\n");
TEST_EXIT(operat->uhOld->getFeSpace()->getMesh() == auxElInfo->getMesh())
("Da stimmt was nicht!\n");
Element *mainEl = mainElInfo->getElement();
Element *auxEl = auxElInfo->getElement();
Element *usedEl = nullptr;
if (operat->uhOld->getFeSpace()->getMesh() == auxElInfo->getMesh())
usedEl = auxElInfo->getElement();
else if (operat->uhOld->getFeSpace()->getMesh() == mainElInfo->getMesh())
usedEl = mainElInfo->getElement();
else
ERROR("Mesh is incorrect.\n");
const BasisFunction *basFcts = rowFeSpace->getBasisFcts();
int nBasFcts = basFcts->getNumber();
ElementVector uhOldLoc(nBasFcts);
operat->uhOld->getLocalVector(auxEl, uhOldLoc);
operat->uhOld->getLocalVector(usedEl, uhOldLoc);
if (mainEl != lastMatEl) {
if (mainElInfo->getElement() != lastMatEl) {
set_to_zero(elementMatrix);
calculateElementMatrix(mainElInfo, auxElInfo, smallElInfo, largeElInfo,
false, elementMatrix);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment