mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 03:18:45 +08:00
packages.biu: fix
This commit is contained in:
parent
cca2feb57f
commit
16c14aacef
@ -468,10 +468,8 @@ void ufo::unfold(std::string config_file)
|
|||||||
input.PrimativeCell, super_cell_multiplier, super_cell_deformation,
|
input.PrimativeCell, super_cell_multiplier, super_cell_deformation,
|
||||||
projection_coefficient, qpoint_data, output_file.SelectedAtoms
|
projection_coefficient, qpoint_data, output_file.SelectedAtoms
|
||||||
);
|
);
|
||||||
if (output_file.OutputAsYaml.value_or(false))
|
if (output_file.OutputAsYaml.value_or(false)) std::ofstream(output_file.Filename) << YAML::Node(output);
|
||||||
std::ofstream(output_file.Filename, std::ios::binary) << biu::serialize<char>(output);
|
else std::ofstream(output_file.Filename, std::ios::binary) << biu::serialize<char>(output);
|
||||||
else
|
|
||||||
std::ofstream(output_file.Filename) << YAML::Node(output);
|
|
||||||
}
|
}
|
||||||
std::clog << "Done." << std::endl;
|
std::clog << "Done." << std::endl;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user