Skip to content

Commit d8064f8

Browse files
author
abacus_fixer
committed
update nonlocal_fs.cpp
1 parent 90dd63d commit d8064f8

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

source/source_lcao/module_operator_lcao/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ add_library(
1010
ekinetic.cpp
1111
nonlocal.cpp
1212
nonlocal_dh.cpp
13+
nonlocal_fs.cpp
1314
td_ekinetic_lcao.cpp
1415
td_nonlocal_lcao.cpp
1516
td_pot_hybrid.cpp

source/source_lcao/module_operator_lcao/nonlocal.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ void hamilt::Nonlocal<hamilt::OperatorLCAO<TK, TR>>::contributeHR()
323323
return;
324324
}
325325

326-
#include "nonlocal_force_stress.hpp"
326+
#include "nonlocal_fs.cpp"
327327
#include "nonlocal_dh.cpp"
328328

329329
template class hamilt::Nonlocal<hamilt::OperatorLCAO<double, double>>;

source/source_lcao/module_operator_lcao/nonlocal_force_stress.hpp renamed to source/source_lcao/module_operator_lcao/nonlocal_fs.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#pragma once
21
#include "nonlocal.h"
32
#include "operator_force_stress_utils.h"
43
#include "source_base/parallel_reduce.h"
@@ -219,7 +218,7 @@ void Nonlocal<OperatorLCAO<TK, TR>>::cal_force_stress(const bool cal_force,
219218
}
220219

221220
template <>
222-
void Nonlocal<OperatorLCAO<std::complex<double>, std::complex<double>>>::cal_force_IJR(const int& iat1,
221+
inline void Nonlocal<OperatorLCAO<std::complex<double>, std::complex<double>>>::cal_force_IJR(const int& iat1,
223222
const int& iat2,
224223
const int& T0,
225224
const Parallel_Orbitals* paraV,
@@ -284,7 +283,7 @@ void Nonlocal<OperatorLCAO<std::complex<double>, std::complex<double>>>::cal_for
284283
}
285284

286285
template <>
287-
void Nonlocal<OperatorLCAO<std::complex<double>, std::complex<double>>>::cal_stress_IJR(const int& iat1,
286+
inline void Nonlocal<OperatorLCAO<std::complex<double>, std::complex<double>>>::cal_stress_IJR(const int& iat1,
288287
const int& iat2,
289288
const int& T0,
290289
const Parallel_Orbitals* paraV,

0 commit comments

Comments
 (0)