From 16c14aacef7e2c1ff6fab60684f92e020beddc17 Mon Sep 17 00:00:00 2001 From: chn Date: Thu, 12 Sep 2024 04:32:18 +0800 Subject: [PATCH] packages.biu: fix --- packages/ufo/src/unfold.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/ufo/src/unfold.cpp b/packages/ufo/src/unfold.cpp index 299060bd..a61e5eec 100644 --- a/packages/ufo/src/unfold.cpp +++ b/packages/ufo/src/unfold.cpp @@ -468,10 +468,8 @@ void ufo::unfold(std::string config_file) input.PrimativeCell, super_cell_multiplier, super_cell_deformation, projection_coefficient, qpoint_data, output_file.SelectedAtoms ); - if (output_file.OutputAsYaml.value_or(false)) - std::ofstream(output_file.Filename, std::ios::binary) << biu::serialize(output); - else - std::ofstream(output_file.Filename) << YAML::Node(output); + if (output_file.OutputAsYaml.value_or(false)) std::ofstream(output_file.Filename) << YAML::Node(output); + else std::ofstream(output_file.Filename, std::ios::binary) << biu::serialize(output); } std::clog << "Done." << std::endl; }