Commit ab2345e7 by Francois Gygi

print warning msg only on task 0


git-svn-id: http://qboxcode.org/svn/qb/trunk@560 cba15fb0-1239-40c8-b417-11db7ca47a34
parent 0ad52808
......@@ -3,7 +3,7 @@
// Basis.C
//
////////////////////////////////////////////////////////////////////////////////
// $Id: Basis.C,v 1.16 2007-10-31 04:56:57 fgygi Exp $
// $Id: Basis.C,v 1.17 2007-12-15 00:57:41 fgygi Exp $
#include "Basis.h"
#include "Context.h"
......@@ -392,8 +392,11 @@ bool BasisImpl::resize(const UnitCell& cell, const UnitCell& refcell,
const D3vector kp = kpx*b0 + kpy*b1 + kpz*b2;
if ( !cell.in_bz(kp) )
cout << " Basis::resize: warning: " << kpoint_
<< " out of the BZ: " << kp << endl;
{
if ( ctxt_.onpe0() )
cout << " Basis::resize: warning: " << kpoint_
<< " out of the BZ: " << kp << endl;
}
const double fac = sqrt(two_ecut) / twopi;
......
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