c Copyright (C) 2008-2014 Vincent Eymet c c KDISTRIBUTION is free software; you can redistribute it and/or modify c it under the terms of the GNU General Public License as published by c the Free Software Foundation; either version 3, or (at your option) c any later version. c KDISTRIBUTION is distributed in the hope that it will be useful, c but WITHOUT ANY WARRANTY; without even the implied warranty of c MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the c GNU General Public License for more details. c You should have received a copy of the GNU General Public License c along with KDISTRIBUTION; if not, see c subroutine look_for_errors(m,i_min,i_max) implicit none include 'max.inc' integer m,i_min,i_max c label integer strlen character*(Nchar_mx) label label='subroutine look_for_errors' if (i_min.lt.1) then write(*,*) 'Error in data:' write(*,*) 'i_min=',i_min,' is not allowed' stop endif if (i_max.eq.-1) then i_max=m endif if (i_min.gt.m) then write(*,*) 'Error in data:' write(*,*) 'i_max=',i_max,' is not allowed as m=',m stop endif return end