Commit a672b9a1 by Francois Gygi

allow reading atoms only


git-svn-id: http://qboxcode.org/svn/qb/trunk@495 cba15fb0-1239-40c8-b417-11db7ca47a34
parent cc9031cc
......@@ -3,7 +3,7 @@
// SampleHandler.C
//
////////////////////////////////////////////////////////////////////////////////
// $Id: SampleHandler.C,v 1.5 2004-09-14 22:24:11 fgygi Exp $
// $Id: SampleHandler.C,v 1.6 2007-08-13 21:24:17 fgygi Exp $
#if USE_XERCES
......@@ -20,7 +20,7 @@ using namespace std;
////////////////////////////////////////////////////////////////////////////////
SampleHandler::SampleHandler(Sample& s, DoubleMatrix& gfdata,
Wavefunction& wfvtmp) :
s_(s), gfdata_(gfdata), read_wfv(false), wfvtmp_(wfvtmp) {}
s_(s), gfdata_(gfdata), read_wf(false), read_wfv(false), wfvtmp_(wfvtmp) {}
////////////////////////////////////////////////////////////////////////////////
SampleHandler::~SampleHandler() {}
......
......@@ -3,7 +3,7 @@
// SampleReader.C:
//
////////////////////////////////////////////////////////////////////////////////
// $Id: SampleReader.C,v 1.17 2007-03-17 01:14:00 fgygi Exp $
// $Id: SampleReader.C,v 1.18 2007-08-13 21:24:17 fgygi Exp $
#include "Sample.h"
......@@ -191,7 +191,11 @@ void SampleReader::readSample (Sample& s, const string uri, bool serial)
}
read_wf = s_handler->read_wf;
if ( read_wf )
cout << " wavefunction was read" << endl;
read_wfv = s_handler->read_wfv;
if ( read_wfv )
cout << " wavefunction velocity was read" << endl;
delete s_handler;
delete parser;
......
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