Skip to content

Commit

Permalink
Merge pull request SPARC-X#204 from YaphetS-jx/debug
Browse files Browse the repository at this point in the history
  • Loading branch information
phanish-suryanarayana committed Oct 29, 2023
2 parents 41c0022 + b1a499f commit 41d2174
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 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

--------------
Oct 28, 2023
Name: Xin Jing
Changes: (energy.c)
1. Fix a bug in defining type of woccfac

--------------
Oct 19, 2023
Name: Shashikant Kumar
Expand Down
2 changes: 1 addition & 1 deletion src/energy.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ double Calculate_Eband(SPARC_OBJ *pSPARC)

for (spn_i = 0; spn_i < Nspin; spn_i++) {
for (k = 0; k < Nk; k++) {
int woccfac = occfac * pSPARC->kptWts_loc[k];
double woccfac = occfac * pSPARC->kptWts_loc[k];
for (n = 0; n < Ns; n++) {
Eband += woccfac * pSPARC->occ[n+k*Ns+spn_i*Nk*Ns] * pSPARC->lambda[n+k*Ns+spn_i*Nk*Ns];
}
Expand Down
2 changes: 1 addition & 1 deletion src/initialization.c
Original file line number Diff line number Diff line change
Expand Up @@ -3338,7 +3338,7 @@ void write_output_init(SPARC_OBJ *pSPARC) {
}

fprintf(output_fp,"***************************************************************************\n");
fprintf(output_fp,"* SPARC (version Sep 27, 2023) *\n");
fprintf(output_fp,"* SPARC (version Oct 28, 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 41d2174

Please sign in to comment.