Skip to content

Commit

Permalink
Merge pull request SPARC-X#169 from YaphetS-jx/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
phanish-suryanarayana committed Apr 11, 2023
2 parents c68b0ae + e6124be commit 7d12d3d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
-Name
-changes

--------------
Apr 11, 2023
Name: Xin Jing
Changes: (eigenSolver.c, eigenSolverKpt.c)
1. Chane SPARCX_ACCEL flag

--------------
Apr 10, 2023
Name: Boqin Zhang
Expand Down
4 changes: 2 additions & 2 deletions src/eigenSolver.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ void CheFSI(SPARC_OBJ *pSPARC, double lambda_cutoff, double *x0, int count, int
} else {
#endif
#ifdef SPARCX_ACCEL
if (pSPARC->useACCEL == 1 && pSPARC->spin_typ == 0 && pSPARC->cell_typ < 20 && pSPARC->usefock <=1 && pSPARC->Nd_d_dmcomm == pSPARC->Nd)
if (pSPARC->useACCEL == 1 && pSPARC->cell_typ < 20 && pSPARC->usefock <=1 && pSPARC->Nd_d_dmcomm == pSPARC->Nd)
{
ACCEL_ChebyshevFiltering(pSPARC, pSPARC->DMVertices_dmcomm, pSPARC->Xorb + spn_i*size_s,
pSPARC->Yorb, pSPARC->Nband_bandcomm,
Expand Down Expand Up @@ -961,7 +961,7 @@ void DP_Project_Hamiltonian(SPARC_OBJ *pSPARC, int *DMVertices, double *Y, doubl
double *HY = pSPARC->Xorb + spn_i * size_s;
st = MPI_Wtime();
#ifdef SPARCX_ACCEL
if (pSPARC->useACCEL == 1 && pSPARC->spin_typ == 0 && pSPARC->cell_typ < 20 && pSPARC->usefock <=1 && pSPARC->Nd_d_dmcomm == pSPARC->Nd)
if (pSPARC->useACCEL == 1 && pSPARC->cell_typ < 20 && pSPARC->usefock <=1 && pSPARC->Nd_d_dmcomm == pSPARC->Nd)
{
}
else
Expand Down
4 changes: 2 additions & 2 deletions src/eigenSolverKpt.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ void CheFSI_kpt(SPARC_OBJ *pSPARC, double lambda_cutoff, double _Complex *x0, in
t1 = MPI_Wtime();

#ifdef SPARCX_ACCEL
if (pSPARC->useACCEL == 1 && pSPARC->spin_typ == 0 && pSPARC->cell_typ < 20 && pSPARC->usefock <=1 && pSPARC->Nd_d_dmcomm == pSPARC->Nd)
if (pSPARC->useACCEL == 1 && pSPARC->cell_typ < 20 && pSPARC->usefock <=1 && pSPARC->SOC_Flag == 0 && pSPARC->Nd_d_dmcomm == pSPARC->Nd)
{
ACCEL_ChebyshevFiltering_kpt(pSPARC, pSPARC->DMVertices_dmcomm, pSPARC->Xorb_kpt + kpt*size_k + spn_i*size_s,
pSPARC->Yorb_kpt, pSPARC->Nband_bandcomm,
Expand Down Expand Up @@ -733,7 +733,7 @@ void DP_Project_Hamiltonian_kpt(SPARC_OBJ *pSPARC, int *DMVertices, double _Comp
double _Complex *HY = pSPARC->Xorb_kpt + kpt*size_k + spn_i*size_s;
st = MPI_Wtime();
#ifdef SPARCX_ACCEL
if (pSPARC->useACCEL == 1 && pSPARC->spin_typ == 0 && pSPARC->cell_typ < 20 && pSPARC->usefock <=1 && pSPARC->Nd_d_dmcomm == pSPARC->Nd)
if (pSPARC->useACCEL == 1 && pSPARC->cell_typ < 20 && pSPARC->usefock <=1 && pSPARC->SOC_Flag == 0 && pSPARC->Nd_d_dmcomm == pSPARC->Nd)
{
}
else
Expand Down
2 changes: 1 addition & 1 deletion src/initialization.c
Original file line number Diff line number Diff line change
Expand Up @@ -3154,7 +3154,7 @@ void write_output_init(SPARC_OBJ *pSPARC) {
}

fprintf(output_fp,"***************************************************************************\n");
fprintf(output_fp,"* SPARC (version Apr 10, 2023) *\n");
fprintf(output_fp,"* SPARC (version Apr 11, 2023) *\n");
fprintf(output_fp,"* Copyright (c) 2020 Material Physics & Mechanics Group, Georgia Tech *\n");
fprintf(output_fp,"* Distributed under GNU General Public License 3 (GPL) *\n");
fprintf(output_fp,"* Start time: %s *\n",c_time_str);
Expand Down

0 comments on commit 7d12d3d

Please sign in to comment.