Skip to content
Snippets Groups Projects
Commit 07ee217a authored by Dominic Kempf's avatar Dominic Kempf Committed by Steffen Müthing
Browse files

add buffer to overflowsize

parent 942bb517
No related branches found
No related tags found
No related merge requests found
......@@ -270,8 +270,7 @@ namespace Dune {
class BCRSMatrix
{
friend struct MatrixDimension<BCRSMatrix>;
private:
public:
enum BuildStage {
/** @brief Matrix is not built at all. */
notbuilt=0,
......@@ -284,8 +283,6 @@ namespace Dune {
built=2
};
public:
//===== type definitions and constants
//! export the type representing the field
......@@ -1071,9 +1068,6 @@ namespace Dune {
std::ptrdiff_t offset = end - r[row].getindexptr();
B* apos = r[row].getptr() + offset;
//placement new to call constructor of B
new (apos) B;
//increase rowsize
r[row].setsize(r[row].getsize()+1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment