initialize some members
This commit is contained in:
@@ -65,7 +65,12 @@ public:
|
||||
int indxI; //!< Running node index in the local I-direction
|
||||
|
||||
//! \brief Default constructor.
|
||||
BlockNodes() { iinod = inc[0] = inc[1] = 0; indxI = 1; }
|
||||
BlockNodes()
|
||||
{
|
||||
memset(ibnod,0,4*sizeof(int));
|
||||
iinod = inc[0] = inc[1] = nnodI = 0;
|
||||
indxI = 1;
|
||||
}
|
||||
//! \brief Returns \a iinod which then is incremented.
|
||||
int next();
|
||||
};
|
||||
|
||||
@@ -84,7 +84,12 @@ public:
|
||||
int indxJ; //!< Running node index in the local J-direction
|
||||
|
||||
//! \brief Default constructor.
|
||||
BlockNodes() { iinod = inc[0] = inc[1] = inc[2] = 0; indxI = indxJ = 1; }
|
||||
BlockNodes()
|
||||
{
|
||||
memset(ibnod,0,8*sizeof(int));
|
||||
iinod = inc[0] = inc[1] = inc[2] = nnodI = nnodJ = 0;
|
||||
indxI = indxJ = 1;
|
||||
}
|
||||
//! \brief Returns \a iinod which then is incremented.
|
||||
int next();
|
||||
};
|
||||
|
||||
@@ -227,10 +227,10 @@ private:
|
||||
|
||||
std::vector<int> MLGN; //!< Process-local-to-global node numbers
|
||||
std::vector<BlockInfo> blocks; //!< Equation mappings for all matrix blocks.
|
||||
int minDof; //!< First DOF we own
|
||||
int maxDof; //!< Last DOF we own
|
||||
int minNode; //!< First node we own
|
||||
int maxNode; //!< Last node we own
|
||||
int minDof = 0; //!< First DOF we own
|
||||
int maxDof = 0; //!< Last DOF we own
|
||||
int minNode = 0; //!< First node we own
|
||||
int maxNode = 0; //!< Last node we own
|
||||
|
||||
const SAMpatch* sam; //!< The assembly handler the DD is constructed for.
|
||||
};
|
||||
|
||||
@@ -68,7 +68,8 @@ private:
|
||||
bool running; //!< Flag indicating if this task is currently running
|
||||
|
||||
//! \brief The constructor initializes the total times to zero.
|
||||
Profile() : nCalls(0), running(false) { totalCPU = totalWall = 0.0; }
|
||||
Profile() : nCalls(0), running(false)
|
||||
{ startWall = totalCPU = totalWall = 0.0; startCPU = 0; }
|
||||
//! \brief Checks if this profile item have any timing to report.
|
||||
bool haveTime() const { return totalCPU >= 0.005 || totalWall >= 0.005; }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user