Skip to content

Commit a12ccf8

Browse files
[pre-commit.ci lite] apply automatic fixes
1 parent 98cdfff commit a12ccf8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

source/module_lr/dm_trans/dmr_complex.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ namespace elecstate
4242
}
4343
#endif
4444
// loop over k-points
45-
if (PARAM.inp.nspin != 4)
45+
if (PARAM.inp.nspin != 4) {
4646
for (int ik = 0; ik < this->_nk; ++ik)
4747
{
4848
// cal k_phase
@@ -70,9 +70,11 @@ namespace elecstate
7070
tmp_DMR_pointer += this->_paraV->get_col_size(iat2);
7171
}
7272
}
73+
}
7374
// treat DMR as pauli matrix when NSPIN=4
74-
if (PARAM.inp.nspin == 4)
75+
if (PARAM.inp.nspin == 4) {
7576
throw std::runtime_error("complex DM(R) with NSPIN=4 is not implemented yet");
77+
}
7678
}
7779
}
7880
}

0 commit comments

Comments
 (0)