1 parent c4939c7 commit eb4ddf7Copy full SHA for eb4ddf7
1 file changed
source/source_relax/relax_driver.cpp
@@ -172,6 +172,14 @@ void Relax_Driver::relax_driver(
172
++istep;
173
} // end while (istep <= inp.relax_nmax && !stop)
174
175
+ // output the final relaxed structure in CIF format
176
+ if (inp.calculation == "relax" || inp.calculation == "cell-relax")
177
+ {
178
+ ModuleIO::CifParser::write(PARAM.globalv.global_out_dir + "STRU_FINAL.cif",
179
+ ucell,
180
+ "# Generated by ABACUS ModuleIO::CifParser",
181
+ "data_?");
182
+ }
183
184
if (inp.calculation == "relax" || inp.calculation == "cell-relax")
185
{
0 commit comments