Skip to content

Commit 26055ca

Browse files
committed
NEB: Fix file number padding (Vedran Miletic)
svn-origin-rev: 15867
1 parent 4ecd19e commit 26055ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/motion/neb_io.F

+1-1
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ FUNCTION get_replica_project_name(rep_env, n_rep, j) RESULT(replica_proj_name)
531531
! Setup new replica project name and output file
532532
replica_proj_name = rep_env%original_project_name
533533
! Find padding
534-
ndigits = CEILING(LOG10(REAL(n_rep,KIND=dp)))-&
534+
ndigits = CEILING(LOG10(REAL(n_rep+1,KIND=dp)))-&
535535
CEILING(LOG10(REAL(j+1,KIND=dp)))
536536
padding = ""
537537
DO i = 1, ndigits

0 commit comments

Comments
 (0)