Skip to content

Commit a4d18f5

Browse files
Merge pull request #242 from StevenZhangCSFM/vdWDF_core
2 parents deee67b + 7335944 commit a4d18f5

8 files changed

Lines changed: 19 additions & 9 deletions

File tree

ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
-Name
44
-changes
55

6+
--------------
7+
April 24, 2025
8+
Name: Boqin Zhang
9+
Changes: src/xc/vdW/vdWDF/, makefile
10+
1. Correct the name of file vdWDFnonlinearCorre.c/h to vdWDFnonlocalCorre.c/h
11+
612
--------------
713
March 20, 2025
814
Name: Shashikant Kumar

src/exchangeCorrelation.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include "isddft.h"
2222
#include "gradVecRoutines.h"
2323
#include "tools.h"
24-
#include "vdWDFnonlinearCorre.h"
24+
#include "vdWDFnonlocalCorre.h"
2525
#include "mGGAtauTransferTauVxc.h"
2626
#include "mGGAscan.h"
2727
#include "mGGArscan.h"

src/initialization.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3664,7 +3664,7 @@ void write_output_init(SPARC_OBJ *pSPARC) {
36643664
}
36653665

36663666
fprintf(output_fp,"***************************************************************************\n");
3667-
fprintf(output_fp,"* SPARC (version Dec 11, 2024) *\n");
3667+
fprintf(output_fp,"* SPARC (version Apr 24, 2025) *\n");
36683668
fprintf(output_fp,"* Copyright (c) 2020 Material Physics & Mechanics Group, Georgia Tech *\n");
36693669
fprintf(output_fp,"* Distributed under GNU General Public License 3 (GPL) *\n");
36703670
fprintf(output_fp,"* Start time: %s *\n",c_time_str);
@@ -4646,13 +4646,17 @@ Exchange Correlation
46464646
options: 1 -- PBE, 2 --PBEsol, 3 -- RPBE 4 --Zhang-Yang RPBE
46474647
"rPW86x" Refitted Perdew & Wang 86 iexch=3
46484648
"scanx" SCAN exchange iexch=4
4649+
"rscanx" rSCAN exchange iexch=5
4650+
"r2scanx" r2SCAN exchange iexch=6
46494651
46504652
Correlation: "noc" none icorr=0
46514653
"pz" Perdew-Zunger icorr=1
46524654
"pw" Perdew-Wang icorr=2
46534655
"pbec" Perdew-Burke-Ernzenhof corr icorr=3
46544656
options: 1 -- PBE, 2 --PBEsol, 3 -- RPBE
46554657
"scanc" SCAN correlation icorr=4
4658+
"rscanc" rSCAN correlation icorr=5
4659+
"r2scanc"r2SCAN correlation icorr=6
46564660
46574661
Meta-GGA: "nom" none imeta=0
46584662
"scan" SCAN-Meta-GGA imeta=1

src/makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ OBJSC = main.o initialization.o readfiles.o atomdata.o parallelization.o relax.o
103103
xc/vdW/d3/d3correction.o xc/vdW/d3/d3findR0ab.o xc/vdW/d3/d3copyC6.o \
104104
xc/vdW/d3/d3initialization.o xc/vdW/d3/d3finalization.o xc/vdW/d3/d3forceStress.o \
105105
xc/vdW/vdWDF/vdWDFinitialization.o xc/vdW/vdWDF/vdWDFfinalization.o \
106-
xc/vdW/vdWDF/vdWDFnonlinearCorre.o xc/vdW/vdWDF/vdWDFreadKernel.o \
106+
xc/vdW/vdWDF/vdWDFnonlocalCorre.o xc/vdW/vdWDF/vdWDFreadKernel.o \
107107
xc/vdW/vdWDF/vdWDFstress.o xc/vdW/vdWDF/vdWDFparallelization.o \
108108
xc/mgga/mGGAscan.o xc/mgga/mGGArscan.o xc/mgga/mGGAr2scan.o xc/mgga/mGGAhamiltonianTerm.o \
109109
xc/mgga/mGGAinitialization.o xc/mgga/mGGAfinalization.o xc/mgga/mGGAtauTransferTauVxc.o \

src/makefile-ibm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ OBJSC = main.o initialization.o readfiles.o atomdata.o parallelization.o relax.o
7373
xc/vdW/d3/d3correction.o xc/vdW/d3/d3findR0ab.o xc/vdW/d3/d3copyC6.o \
7474
xc/vdW/d3/d3initialization.o xc/vdW/d3/d3finalization.o xc/vdW/d3/d3forceStress.o \
7575
xc/vdW/vdWDF/vdWDFinitialization.o xc/vdW/vdWDF/vdWDFfinalization.o \
76-
xc/vdW/vdWDF/vdWDFexchangeLinearCorre.o xc/vdW/vdWDF/vdWDFnonlinearCorre.o \
76+
xc/vdW/vdWDF/vdWDFexchangeLinearCorre.o xc/vdW/vdWDF/vdWDFnonlocalCorre.o \
7777
xc/vdW/vdWDF/vdWDFstress.o xc/vdW/vdWDF/vdWDFgenerateKernelSpline.o \
7878
xc/mgga/MGGAscan.o xc/mgga/MGGASscan.o xc/mgga/MGGAhamiltonianTerm.o xc/mgga/MGGAstress.o \
7979
xc/mgga/MGGAinitialization.o xc/mgga/MGGAfinalization.o xc/mgga/MGGAtauTransferTauVxc.o \

src/xc/vdW/vdWDF/include/vdWDFnonlinearCorre.h renamed to src/xc/vdW/vdWDF/include/vdWDFnonlocalCorre.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @file vdWDFnonlinearCorre.h
2+
* @file vdWDFnonlocalCorre.h
33
* @brief This file contains the function declarations for non-linear correlation part of vdF-DF1 and vdW-DF2 functional.
44
*
55
* @authors Boqin Zhang <bzhang376@gatech.edu>
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @file vdWDFnonlinearCorre.c
2+
* @file vdWDFnonlocalCorre.c
33
* @brief This file contains the functions for vdF-DF1 and vdW-DF2 functional.
44
*
55
* @authors Boqin Zhang <bzhang376@gatech.edu>
@@ -39,7 +39,7 @@
3939
#include "initialization.h"
4040
#include "tools.h"
4141
#include "parallelization.h"
42-
#include "vdWDFnonlinearCorre.h"
42+
#include "vdWDFnonlocalCorre.h"
4343
#include "vdWDFparallelization.h"
4444
#include "gradVecRoutines.h"
4545

@@ -69,7 +69,7 @@
6969
#endif
7070

7171
/*
72-
Structure of functions in vdWDFNonlinearCorre.c
72+
Structure of functions in vdWDFNonlocalCorre.c
7373
7474
├──get_q0_Grid
7575
| ├──pw

src/xc/vdW/vdWDF/vdWDFstress.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
+ 1/2*sum_{alpha}sum_{beta}(intint(theta_alpha(r_1) * d(phi_{alphabeta}(|r_2 - r_1|))/dF_xy * theta_beta(r_2))d(r_1)d(r_2))
3636
+ 1/2*sum_{alpha}sum_{beta}(intint(theta_alpha(r_1) * phi_{alphabeta}(|r_2 - r_1|) * d(theta_beta(r_2))/dF_xy)d(r_1)d(r_2))
3737
38-
Structure of functions in vdWDFNonlinearCorre.c
38+
Structure of functions in vdWDFstress.c
3939
Calculate_XC_stress_vdWDF // Compute stress of vdWDF, called by Calculate_XC_stress in stress.c and Calculate_XC_pressure in pressure.c
4040
├──vdWDF_stress_gradient
4141
└──vdWDF_stress_kernel

0 commit comments

Comments
 (0)