Skip to content

Commit 1de9fb5

Browse files
committed
Remove diago_david dependency on diagh.h
1 parent 1ad461c commit 1de9fb5

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

source/module_hsolver/diago_david.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "diago_david.h"
22

33
#include "module_base/timer.h"
4+
#include "module_base/tool_title.h"
45
#include "module_base/module_device/device.h"
56

67
#include "module_hsolver/kernels/dngvd_op.h"

source/module_hsolver/diago_david.h

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
#ifndef DIAGODAVID_H
22
#define DIAGODAVID_H
33

4-
#include "diagh.h"
4+
#include "module_base/macros.h"
5+
#include "module_base/module_device/device.h"
6+
#include "module_base/module_device/memory_op.h"
7+
58
#include "module_hsolver/diag_comm_info.h"
69

10+
#include <vector>
11+
#include <functional>
12+
713
namespace hsolver
814
{
915

@@ -199,7 +205,7 @@ class DiagoDavid
199205
using syncmem_h2d_op = base_device::memory::synchronize_memory_op<T, Device, base_device::DEVICE_CPU>;
200206
using syncmem_d2h_op = base_device::memory::synchronize_memory_op<T, base_device::DEVICE_CPU, Device>;
201207

202-
using hpsi_info = typename hamilt::Operator<T, Device>::hpsi_info;
208+
// using hpsi_info = typename hamilt::Operator<T, Device>::hpsi_info; // Dependence of hpsi removed
203209

204210
const T *one = nullptr, *zero = nullptr, *neg_one = nullptr;
205211
const T one_ = static_cast<T>(1.0), zero_ = static_cast<T>(0.0), neg_one_ = static_cast<T>(-1.0);

0 commit comments

Comments
 (0)