fix bug in general triclinic dump refactor reported by @stanmoore1

This commit is contained in:
Axel Kohlmeyer
2024-06-24 19:18:49 -04:00
parent 487a9ae73e
commit bf6e0d59c9

View File

@ -325,13 +325,13 @@ void DumpCustom::init_style()
pack_choice[n] = &DumpCustom::pack_z; pack_choice[n] = &DumpCustom::pack_z;
else if (pack_choice[n] == &DumpCustom::pack_xu_triclinic_general) { else if (pack_choice[n] == &DumpCustom::pack_xu_triclinic_general) {
if (domain->triclinic) pack_choice[n] = &DumpCustom::pack_xu_triclinic; if (domain->triclinic) pack_choice[n] = &DumpCustom::pack_xu_triclinic;
else pack_choice[n] == &DumpCustom::pack_xu; else pack_choice[n] = &DumpCustom::pack_xu;
} else if (pack_choice[n] == &DumpCustom::pack_yu_triclinic_general) { } else if (pack_choice[n] == &DumpCustom::pack_yu_triclinic_general) {
if (domain->triclinic) pack_choice[n] = &DumpCustom::pack_yu_triclinic; if (domain->triclinic) pack_choice[n] = &DumpCustom::pack_yu_triclinic;
else pack_choice[n] == &DumpCustom::pack_yu; else pack_choice[n] = &DumpCustom::pack_yu;
} else if (pack_choice[n] == &DumpCustom::pack_zu_triclinic_general) { } else if (pack_choice[n] == &DumpCustom::pack_zu_triclinic_general) {
if (domain->triclinic) pack_choice[n] = &DumpCustom::pack_zu_triclinic; if (domain->triclinic) pack_choice[n] = &DumpCustom::pack_zu_triclinic;
else pack_choice[n] == &DumpCustom::pack_zu; else pack_choice[n] = &DumpCustom::pack_zu;
} }
else if (pack_choice[n] == &DumpCustom::pack_vx_triclinic_general) else if (pack_choice[n] == &DumpCustom::pack_vx_triclinic_general)