Skip to content

Commit

Permalink
fix: initialize D_temp in Pairs_from_File()
Browse files Browse the repository at this point in the history
  • Loading branch information
Puerling committed Nov 7, 2024
1 parent 5741e54 commit b24501c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/io/hamiltonian/Pairs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ try
&geometry]( const PairTableParser::read_row_t & row ) -> std::tuple<Pair, scalar, Vector3, scalar>
{
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
Expand Down

0 comments on commit b24501c

Please sign in to comment.