Skip to content

Commit

Permalink
Fixed some typos in code comments and abort messages
Browse files Browse the repository at this point in the history
  • Loading branch information
hfp committed Feb 29, 2024
1 parent 17b9f55 commit 5d0137b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/efield_utils.F
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ MODULE efield_utils

! **************************************************************************************************
!> \brief Replace the original implementation of the electric-electronic
!> interaction in the lenght gauge. This calculation is no longer done in
!> interaction in the length gauge. This calculation is no longer done in
!> the grid but using matrices to match the velocity gauge implementation.
!> Note: The energy is store in energy%core and computed later on.
!> Note: The energy is stored in energy%core and computed later on.
!> \param qs_env ...
!> \author Guillaume Le Breton (02.23)
! **************************************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion src/motion/mc/mc_moves.F
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,7 @@ SUBROUTINE mc_volume_move(mc_par, force_env, moves, move_updates, &
IF (ionode) rand = rng_stream%next()
CALL group%bcast(rand, source)
! find the test cell lenghts for the discrete volume move
! find the test cell lengths for the discrete volume move
IF (ldiscrete) THEN
IF (rand .LT. 0.5_dp) THEN
lincrease = .TRUE.
Expand Down
2 changes: 1 addition & 1 deletion src/start/input_cp2k_motion.F
Original file line number Diff line number Diff line change
Expand Up @@ -1039,7 +1039,7 @@ SUBROUTINE create_cell_opt_section(section)

CALL keyword_create( &
keyword, __LOCATION__, name="KEEP_ANGLES", &
description="Keep angles between the cell vectors constant, but allow the lenghts of the"// &
description="Keep angles between the cell vectors constant, but allow the lengths of the"// &
" cell vectors to change independently."// &
" Albeit general, this is most useful for triclinic cells, to enforce higher symmetry, see KEEP_SYMMETRY.", &
usage="KEEP_ANGLES TRUE", default_l_val=.FALSE., lone_keyword_l_val=.TRUE.)
Expand Down
2 changes: 1 addition & 1 deletion src/tmc/input_cp2k_tmc.F
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ SUBROUTINE create_TMC_ana_kinds(section)
CALL keyword_create(keyword, __LOCATION__, &
name="G_R", &
description="Radial Distribution Function for each pair of atoms "// &
"using the amount of specified bins within MAX(cell_lenght)/2", &
"using the amount of specified bins within MAX(cell_length)/2", &
usage="G_R or G_R {INTEGER}", &
default_i_val=-1, lone_keyword_i_val=-1)
CALL section_add_keyword(section, keyword)
Expand Down
2 changes: 1 addition & 1 deletion src/tmc/tmc_setup.F
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ SUBROUTINE tmc_read_input(input, tmc_env)
IF (SIZE(r_arr_tmp) .NE. tmc_env%params%dim_per_elem) &
CPABORT("The entered sub box sizes does not fit in number of dimensions.")
IF (ANY(r_arr_tmp .LE. 0.0_dp)) &
CPABORT("The entered sub box lenghts should be greater than 0.")
CPABORT("The entered sub box lengths should be greater than 0.")
DO itmp = 1, SIZE(tmc_env%params%sub_box_size)
tmc_env%params%sub_box_size(itmp) = r_arr_tmp(itmp)/au2a
END DO
Expand Down

0 comments on commit 5d0137b

Please sign in to comment.