Skip to content

Commit 927babf

Browse files
committed
Merge branch 'fft1' into fft2
2 parents de67f24 + 00dfee5 commit 927babf

25 files changed

+940
-790
lines changed

source/module_base/lapack_connector.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ extern "C"
6161

6262

6363
void dsygvx_(const int* itype, const char* jobz, const char* range, const char* uplo,
64-
const int* n, double* A, const int* lda, double* B, const int* ldb,
65-
const double* vl, const double* vu, const int* il, const int* iu,
66-
const double* abstol, const int* m, double* w, double* Z, const int* ldz,
67-
double* work, int* lwork, int*iwork, int* ifail, int* info);
64+
const int* n, double* A, const int* lda, double* B, const int* ldb,
65+
const double* vl, const double* vu, const int* il, const int* iu,
66+
const double* abstol, const int* m, double* w, double* Z, const int* ldz,
67+
double* work, const int* lwork, int* iwork, int* ifail, int* info);
6868

6969
void chegvx_(const int* itype,const char* jobz,const char* range,const char* uplo,
7070
const int* n,std::complex<float> *a,const int* lda,std::complex<float> *b,

source/module_base/lapack_wrapper.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#ifndef LAPACK_HPP
22
#define LAPACK_HPP
3-
3+
#include <iostream>
44
extern "C"
55
{
66
// =================================================================================
@@ -49,10 +49,10 @@ extern "C"
4949
// =================================================================================
5050
// gvx
5151
void dsygvx_(const int* itype, const char* jobz, const char* range, const char* uplo,
52-
const int* n, double* A, const int* lda, double* B, const int* ldb,
53-
const double* vl, const double* vu, const int* il, const int* iu,
54-
const double* abstol, const int* m, double* w, double* Z, const int* ldz,
55-
double* work, int* lwork, int*iwork, int* ifail, int* info);
52+
const int* n, double* A, const int* lda, double* B, const int* ldb,
53+
const double* vl, const double* vu, const int* il, const int* iu,
54+
const double* abstol, const int* m, double* w, double* Z, const int* ldz,
55+
double* work, const int* lwork, int* iwork, int* ifail, int* info);
5656

5757
void chegvx_(const int* itype,const char* jobz,const char* range,const char* uplo,
5858
const int* n,std::complex<float> *a,const int* lda,std::complex<float> *b,
@@ -424,8 +424,8 @@ class LapackWrapper
424424
int* ifail,
425425
int& info)
426426
{
427-
// dsygvx_(&itype, &jobz, &range, &uplo, &n, a, &lda, b, &ldb, &vl,
428-
// &vu, &il,&iu, &abstol, &m, w, z, &ldz, work, &lwork, rwork, iwork, ifail, &info);
427+
dsygvx_(&itype, &jobz, &range, &uplo, &n, a, &lda, b, &ldb, &vl,
428+
&vu, &il, &iu, &abstol, &m, w, z, &ldz, work, &lwork, iwork, ifail, &info);
429429
}
430430

431431
// wrap function of fortran lapack routine xhegvx ( pointer version ).

source/module_basis/module_pw/module_fft/fft_base.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
11
#include "fft_base.h"
22
namespace ModulePW
33
{
4-
template <typename FPTYPE>
5-
FFT_BASE<FPTYPE>::FFT_BASE()
6-
{
7-
}
8-
template <typename FPTYPE>
9-
FFT_BASE<FPTYPE>::~FFT_BASE()
10-
{
11-
}
12-
134
template FFT_BASE<float>::FFT_BASE();
145
template FFT_BASE<double>::FFT_BASE();
156
template FFT_BASE<float>::~FFT_BASE();

source/module_basis/module_pw/module_fft/fft_base.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ class FFT_BASE
1010
{
1111
public:
1212

13-
FFT_BASE();
14-
virtual ~FFT_BASE();
13+
FFT_BASE(){};
14+
virtual ~FFT_BASE(){};
1515

1616
/**
1717
* @brief Initialize the fft parameters As virtual function.

0 commit comments

Comments
 (0)