Commit 02d4895e by Francois Gygi

Converted dmat_tmp from valarray to vector


git-svn-id: http://qboxcode.org/svn/qb/trunk@122 cba15fb0-1239-40c8-b417-11db7ca47a34
parent bf4b3a78
......@@ -3,7 +3,7 @@
// SampleReader.C:
//
////////////////////////////////////////////////////////////////////////////////
// $Id: SampleReader.C,v 1.8 2003-10-02 17:38:41 fgygi Exp $
// $Id: SampleReader.C,v 1.9 2003-11-21 19:19:43 fgygi Exp $
// Note: the following #define's must appear before <iostream> and <cstdio>
......@@ -292,7 +292,7 @@ void SampleReader::readSample (Sample& s, const string uri, bool serial)
if ( sd != 0 )
{
// receive density_matrix
valarray<double> dmat_tmp(sd->nst());
vector<double> dmat_tmp(sd->nst());
sd->context().dbcast_recv(sd->nst(),1,&dmat_tmp[0],1,0,0);
sd->set_occ(dmat_tmp);
......
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