Skip to content

Commit

Permalink
Improved printing of the residual
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippeDevloo committed Jul 3, 2024
1 parent 6d900c6 commit 749b548
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Analysis/TPZAnalysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1394,6 +1394,7 @@ void TPZAnalysis::PrintVectorByElement(std::ostream &out, TPZFMatrix<STATE> &vec
if (hasgeometry) {
out << " Gel " << gel->Index() << " matid " << gel->MaterialId() << " Center " << xcenter << std::endl;
}
TPZManVector<REAL,3> xco(3);
for (ic = 0; ic<nc; ic++) {
TPZManVector<STATE> connectsol;
int64_t cindex = cel->ConnectIndex(ic);
Expand All @@ -1408,7 +1409,13 @@ void TPZAnalysis::PrintVectorByElement(std::ostream &out, TPZFMatrix<STATE> &vec
connectsol[i] = 0.;
}
}
out << ic << " index " << cindex << " values " << connectsol << std::endl;
if(gel && ic < gel->NCornerNodes()) {
gel->NodePtr(ic)->GetCoordinates(xco);
out << "co " << xco << " ic ";
}
if(connectsol.size()) {
out << ic << " index " << cindex << " values " << connectsol << std::endl;
}
}
}

Expand Down

0 comments on commit 749b548

Please sign in to comment.