Skip to content

Commit

Permalink
fix(prp): fix error msg format, improve msg (#2129)
Browse files Browse the repository at this point in the history
The arguments did not match the format, causing a crash. The error message could be improved anyway.
  • Loading branch information
wpbonelli authored Jan 8, 2025
1 parent 17886c0 commit 5f49a19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Model/ParticleTracking/prt-prp.f90
Original file line number Diff line number Diff line change
Expand Up @@ -942,9 +942,9 @@ subroutine prp_read_packagedata(this)
n = ival

if (n < 1 .or. n > this%nreleasepoints) then
write (errmsg, '(a,1x,i0,a)') &
'Release point number must be greater than 0 and less than', &
'or equal to', this%nreleasepoints, '.'
write (errmsg, '(a,i0,a,i0,a)') &
'Expected ', this%nreleasepoints, ' release points. &
&Points must be numbered from 1 to ', this%nreleasepoints, '.'
call store_error(errmsg)
cycle
end if
Expand Down

0 comments on commit 5f49a19

Please sign in to comment.