Commit 70ef409d authored by Alvarez, Gonzalo's avatar Alvarez, Gonzalo
Browse files

DmrgSerializer: bug fix in write

parent aeb95be5
......@@ -205,7 +205,7 @@ public:
for (SizeType i = 0; i < nsectors; ++i) {
const SizeType nexcited = wavefunction_[i].size();
io.createGroup(prefix + "/WaveFunction/" + ttos(i));
io.write(nsectors, prefix + "/WaveFunction/" + ttos(i) + "/Size");
io.write(nexcited, prefix + "/WaveFunction/" + ttos(i) + "/Size");
for (SizeType j = 0; j < nexcited; ++j)
wavefunction_[i][j]->write(io, prefix + "/WaveFunction/" + ttos(i) + "/" + ttos(j));
}
......
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