Skip to content

Commit

Permalink
CP2K_FLAGS output regularized (#2009)
Browse files Browse the repository at this point in the history
  • Loading branch information
juerghutter committed Mar 16, 2022
1 parent 0ecbbe5 commit 75771c7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/environment.F
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,10 @@ SUBROUTINE cp2k_init(para_env, output_unit, globenv, input_file_name, wdir)

CHARACTER(LEN=10*default_string_length) :: cp_flags
CHARACTER(LEN=default_string_length) :: dev_flag
INTEGER :: ilen, my_output_unit
INTEGER :: i, ilen, my_output_unit
TYPE(cp_logger_type), POINTER :: logger

! create a timer_env
! create a timer_env

CALL add_timer_env()

Expand Down Expand Up @@ -193,8 +193,10 @@ SUBROUTINE cp2k_init(para_env, output_unit, globenv, input_file_name, wdir)
WRITE (UNIT=my_output_unit, FMT="(T2,A)") &
"CP2K| "//cp_flags(1:73)
IF (ilen > 73) THEN
WRITE (UNIT=my_output_unit, FMT="(T2,A)") &
"CP2K| "//TRIM(cp_flags(74:))
DO i = 0, (ilen - 75)/61
WRITE (UNIT=my_output_unit, FMT="(T2,A)") &
"CP2K| "//TRIM(cp_flags(74 + i*61:MIN(74 + (i + 1)*61, ilen)))
END DO
END IF
WRITE (UNIT=my_output_unit, FMT="(T2,A,T41,A40)") &
"CP2K| is freely available from ", &
Expand Down

0 comments on commit 75771c7

Please sign in to comment.