Skip to content

Commit 9069932

Browse files
Merge pull request #250 from tiangroup-uofa/master
2 parents e32dd04 + 6ae1cde commit 9069932

6 files changed

Lines changed: 22 additions & 6 deletions

File tree

.conda/activate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
export SPARC_PSP_PATH="${CONDA_PREFIX}/share/sparc/psps"
2-
export SPARC_DOC_PATH="${CONDA_PREFIX}/doc/sparc"
2+
export SPARC_DOC_PATH="${CONDA_PREFIX}/doc/sparc/doc/.LaTeX"

.conda/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ echo "Moving sparc psp into $PREFIX/share/sparc/psps"
1313
mkdir -p $PREFIX/share/sparc/psps
1414
cp ../psps/* $PREFIX/share/sparc/psps/
1515
mkdir -p $PREFIX/doc/sparc
16-
cp -r ../doc/ $PREFIX/doc/sparc/
16+
cp -R ../doc/* $PREFIX/doc/sparc/
17+
cp -R ../doc/.[!.]* $PREFIX/doc/sparc/
1718
echo "Finish compiling sparc!"
1819

1920
# Copy activate and deactivate scripts

ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
-Date
33
-Name
44
-changes
5+
--------------
6+
September 03, 2025
7+
Name: Tian Tian
8+
Changes: src/initialization.c, src/socket/driver.c, src/socket/driver.h
9+
1. Add references to functions to avoid implicit function declarationerror in newer gcc compilation toolchains
10+
511
--------------
612
July 17, 2025
713
Name: Sayan Bhowmik

src/initialization.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3722,7 +3722,7 @@ void write_output_init(SPARC_OBJ *pSPARC) {
37223722
}
37233723

37243724
fprintf(output_fp,"***************************************************************************\n");
3725-
fprintf(output_fp,"* SPARC (version June 17, 2025) *\n");
3725+
fprintf(output_fp,"* SPARC (version September 03, 2025) *\n");
37263726
fprintf(output_fp,"* Copyright (c) 2020 Material Physics & Mechanics Group, Georgia Tech *\n");
37273727
fprintf(output_fp,"* Distributed under GNU General Public License 3 (GPL) *\n");
37283728
fprintf(output_fp,"* Start time: %s *\n",c_time_str);

src/socket/driver.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,16 @@
2020
#include "libunixsocket.h"
2121

2222
#include "initialization.h"
23-
/* #include "orbitalElecDensInit.h" */
2423
#include "electronicGroundState.h"
2524
#include "relax.h"
26-
/* #include "md.h" */
25+
#include "eigenSolver.h" // Mesh2Cheb
26+
#include "electrostatics.h" // Calculate_PseudochargeCutoff
27+
2728

2829
/* Tools to be used in socket interface. Don't need #ifdef switches */
30+
int write_message_to_socket(SPARC_OBJ *pSPARC, char *message);
31+
void map_atom_coord(SPARC_OBJ *pSPARC);
32+
2933

3034
int split_socket_name(const char *str, char *host, int *port, int *inet)
3135
{
@@ -1011,7 +1015,7 @@ void print_socket_error_info(SPARC_OBJ *pSPARC)
10111015

10121016
FILE *output_fp = fopen(pSPARC->OutFilename,"w");
10131017
if (output_fp == NULL) {
1014-
printf(stderr, "\nCannot open file \"%s\"\n",pSPARC->OutFilename);
1018+
fprintf(stderr, "\nCannot open file \"%s\"\n",pSPARC->OutFilename);
10151019
exit(EXIT_FAILURE);
10161020
}
10171021

src/socket/driver.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ int close_Socket(SPARC_OBJ *pSPARC);
4747
**/
4848
void main_Socket(SPARC_OBJ *pSPARC);
4949

50+
/**
51+
* @brief Print static file information when socket is present
52+
**/
53+
void socket_static_print_atom_pos(SPARC_OBJ *pSPARC);
54+
5055
// IPI constants
5156

5257
#define IPI_HEADERLEN 12

0 commit comments

Comments
 (0)