Skip to content

Commit f946fca

Browse files
Merge pull request #258 from sayanbhowmik/master
Minor bug fix in occupation matrix extrapolation in DFT+U
2 parents 380f73a + 0c668a3 commit f946fca

5 files changed

Lines changed: 15 additions & 7 deletions

File tree

ChangeLog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
-Date
33
-Name
44
-changes
5+
6+
--------------
7+
November 25, 2025
8+
Name: Sayan Bhowmik
9+
Changes: (src/xc/hubbard/occupationMatrix.c)
10+
1. Bug fix in the atom counter for occupation matrix extrapolation.
11+
512
--------------
613
November 19, 2025
714
Name: Qihao Cheng

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 November 19, 2025) *\n");
3725+
fprintf(output_fp,"* SPARC (version November 25, 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/xc/hubbard/occupationMatrix.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ void init_occ_mat_scf(SPARC_OBJ *pSPARC) {
116116
}
117117
}
118118
}
119+
atmcount++;
119120
}
120-
atmcount++;
121121
}
122122
}
123123
}
@@ -273,6 +273,7 @@ void occMatExtrapolation(SPARC_OBJ *pSPARC) {
273273
}
274274
}
275275
}
276+
atmcount++;
276277
}
277278
}
278279

tests/SPARC_testing_script.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
import math
1313

1414
# Other parameters to run the test (can be changed by the user)
15-
nprocs_tests = 48 # In default tests are run with 24 processors per node
16-
nnodes_tests = 1 # In default tests are run with 1 node
17-
npbs = 3 # By default (number of script files the tests are distributed to)
15+
nprocs_tests = 12 # In default tests are run with 24 processors per node
16+
nnodes_tests = 4 # In default tests are run with 1 node
17+
npbs = 10 # By default (number of script files the tests are distributed to)
1818
launch_cluster_extension = ".sbatch" # extension of the file used to launch the jobs on the cluster by default it is .sbatch
1919
command_launch_extension = "sbatch" # Command to launch the script to ask for resources on the cluster (example: qsub launch.pbs)
2020
MPI_command = "mpirun -np 48" # MPI command to run the executable on the given cluster

tests/samplescript_cluster

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
22
#SBATCH -J SPARC_testsuite
3-
#SBATCH -A gts-phanish6 # Account name
3+
#SBATCH -A gts-phanish6-coda20 # Account name
44
#SBATCH -p inferno
5-
#SBATCH -N 2 --ntasks-per-node=24
5+
#SBATCH -N 4 --ntasks-per-node=12
66
#SBATCH --mem-per-cpu=7G
77
#SBATCH -t1:00:00
88
cd $SLURM_SUBMIT_DIR

0 commit comments

Comments
 (0)