UPP (develop)
Loading...
Searching...
No Matches
BOUND.f
Go to the documentation of this file.
1
24!---------------------------------------------------------------------------------------
31 SUBROUTINE bound(FLD,FMIN,FMAX)
32
33!
34 use ctlblk_mod, only: jsta, jend, spval, im, jm, ista, iend
35!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
36 implicit none
37!
38! DECLARE VARIABLES.
39 REAL,intent(in) :: FMAX, FMIN
40 REAL,intent(inout) :: FLD(IM,JM)
41 integer i,j
42!
43!
44!**********************************************************************
45! START BOUND HERE.
46!
47! BOUND ARRAY.
48!$omp parallel do private(i,j)
49 DO j=jsta,jend
50 DO i=ista,iend
51 if(fld(i,j) /= spval) then
52 fld(i,j) = min(fmax, max(fmin,fld(i,j)))
53 end if
54 ENDDO
55 ENDDO
56!
57! END OF ROUTINE.
58!
59 RETURN
60 END
subroutine bound(fld, fmin, fmax)
Clips data in passed array.
Definition BOUND.f:37