From b24501c1b44fe2ba9f93c8291c227d3de33c0ca6 Mon Sep 17 00:00:00 2001 From: puerling Date: Thu, 7 Nov 2024 11:51:21 +0100 Subject: [PATCH] fix: initialize `D_temp` in `Pairs_from_File()` --- core/src/io/hamiltonian/Pairs.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/io/hamiltonian/Pairs.cpp b/core/src/io/hamiltonian/Pairs.cpp index 904954c72..481dc3c5a 100644 --- a/core/src/io/hamiltonian/Pairs.cpp +++ b/core/src/io/hamiltonian/Pairs.cpp @@ -46,7 +46,8 @@ try &geometry]( const PairTableParser::read_row_t & row ) -> std::tuple { auto [i, j, da, db, dc, Dij, Dijx, Dijy, Dijz, Dija, Dijb, Dijc, Jij] = row; - Vector3 D_temp; + + Vector3 D_temp = Vector3::Zero(); if( DMI_xyz ) D_temp = { Dijx, Dijy, Dijz }; // Anisotropy vector orientation