Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ packmol changelog

Version 21.2.1-DEV
--------------
- ![INFO][badge-info] Avoid looping above `maxkeywords` in input file reading of radii.

Version 21.2.0
--------------
Expand Down
12 changes: 4 additions & 8 deletions app/packmol.f90
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,7 @@ program packmol
stop exit_code_input_error
end if
ival = 2
do
if (ival > maxkeywords) exit
do while(ival <= maxkeywords)
read(keyword(iline_atoms,ival),*,iostat=ioerr) iat
if ( ioerr /= 0 ) exit
if ( iat > natoms(itype) ) then
Expand All @@ -440,8 +439,7 @@ program packmol
stop exit_code_input_error
end if
ival = 2
do
if (ival > maxkeywords) exit
do while(ival <= maxkeywords)
read(keyword(iline_atoms,ival),*,iostat=ioerr) iat
if ( ioerr /= 0 ) exit
if ( iat > natoms(itype) ) then
Expand All @@ -463,8 +461,7 @@ program packmol
stop exit_code_input_error
end if
ival = 2
do
if (ival > maxkeywords) exit
do while(ival <= maxkeywords)
read(keyword(iline_atoms,ival),*,iostat=ioerr) iat
if ( ioerr /= 0 ) exit
if ( iat > natoms(itype) ) then
Expand All @@ -487,8 +484,7 @@ program packmol
stop exit_code_input_error
end if
ival = 2
do
if (ival > maxkeywords) exit
do while(ival <= maxkeywords)
read(keyword(iline_atoms,ival),*,iostat=ioerr) iat
if ( ioerr /= 0 ) exit
if ( iat > natoms(itype) ) then
Expand Down
Loading