Commit 2cd7d794 by Francois Gygi

Modified operator= to allow for assignment for unequal unit cells.

Needed for variable cell calculations.


git-svn-id: http://qboxcode.org/svn/qb/trunk@1349 cba15fb0-1239-40c8-b417-11db7ca47a34
parent ce96f449
......@@ -871,10 +871,11 @@ Wavefunction& Wavefunction::operator=(const Wavefunction& wf)
assert(nspin_ == wf.nspin_);
assert(nrowmax_ == wf.nrowmax_);
assert(deltaspin_ == wf.deltaspin_);
assert(cell_ == wf.cell_);
//!!assert(cell_ == wf.cell_);
assert(refcell_ == wf.refcell_);
assert(ecut_ == wf.ecut_);
cell_ = wf.cell_;
weight_ = wf.weight_;
kpoint_ = wf.kpoint_;
......
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