C ********************************************************************** C * * C * SOFTWARE LICENSING * C * * C * This program is free software; you can redistribute * C * it and/or modify it under the terms of the GNU * C * General Public License as published by the Free * C * Software Foundation, either Version 2 of the * C * license, or (at your option) any later version. * C * * C * This program is distributed in the hope that it * C * will be useful, but without any warranty; without * C * even the implied warranty of merchantability or * C * fitness for a particular purpose. See the GNU * C * General Public License for more details. * C * * C * A copy of the GNU General Public License is * C * available at http://www.gnu.org/copyleft/gpl.html * C * or by writing to the Free Software Foundation, Inc.,* C * 59 Temple Place - Suite 330, Boston, MA 02111, USA. * C * * C ********************************************************************** SUBROUTINE MAXMIN (F, FMASK, IX, JY, FMAX , FMIN) C VERSION(09/27/90) C SAVE DIMENSION F(IX,JY),FMASK(IX,JY) C BIG=1.E20 C FMAX=-BIG FMIN=BIG DO 220 J=1, JY DO 220 I=1, IX IF(FMASK(I,J).EQ.0.) GO TO 220 FMAX=AMAX1(FMAX,F(I,J)) FMIN=AMIN1(FMIN,F(I,J)) 220 CONTINUE C RETURN END