Commit 8d2318f9 by Francois Gygi

cleanup comments, reorder declarations, removed unneeded debug statements


git-svn-id: http://qboxcode.org/svn/qb/trunk@1816 cba15fb0-1239-40c8-b417-11db7ca47a34
parent 9a27be39
......@@ -238,6 +238,8 @@ class Context
// this process is not part of the context
MPI_Comm comm(void) const;
void print(std::ostream& os) const;
// Constructors
// single-row Context
......@@ -248,12 +250,8 @@ class Context
explicit Context(MPI_Comm comm, int nprow, int npcol):
rep(new ContextRep(comm,nprow,npcol)), pcount(new int(1)) {}
// Context(ContextRep* pp) : rep(pp), pcount(new int(1)) {}
Context(const Context& c) : rep(c.rep), pcount(c.pcount) { (*pcount)++; }
void print(std::ostream& os) const;
Context& operator=(const Context& c)
{
if ( rep == c.rep ) return *this;
......@@ -270,10 +268,6 @@ class Context
~Context(void)
{
if ( pcount == 0 )
{
std::cerr << "~Context: pcount = 0\n";
}
if ( --(*pcount) == 0 )
{
delete rep;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment