Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exit gracefully when index is out of range #69

Closed
wants to merge 1 commit into from
Closed
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
6 changes: 6 additions & 0 deletions src/labeling_related.f90
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,12 @@ SUBROUTINE generate_permutation_labelings(k,n,nD,perm,lab,iConc,parLabel,parDigi
if(is_valid_multiplicity(a,iConc)) then ! We have a valid
! labeling on the tree, mark it in the
call generate_index_from_labeling(a,iConc,idxOrig) ! hash

if(idxOrig < 0) then
! Out of the integer range, exit
stop "Index is too large (integer cannot fit it)"
end if

! table and then mark the symmetry brothers
if(lab(idxOrig)=='') then ! This labeling hasn't been
! generated yet (directly or by
Expand Down