UPP (develop)
Loading...
Searching...
No Matches
SCLFLD.f
Go to the documentation of this file.
1
25!-------------------------------------------------------------
33 SUBROUTINE sclfld(FLD,SCALE,IMO,JMO)
34!
35
36!
37 use params_mod, only: small
38 use ctlblk_mod, only: jsta, jend, spval, ista, iend
39!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
40 implicit none
41!
42! DECLARE VARIABLES.
43!
44 integer,intent(in) :: IMO,JMO
45 REAL,intent(in) :: SCALE
46 REAL,dimension(ista:iend,jsta:jend),intent(inout) :: FLD
47 integer I,J
48!
49!
50!***********************************************************************
51! START SCLFLD HERE
52!
53! MULTIPLY EACH ELEMENT OF FLD BY SCALE.
54!
55!$omp parallel do
56 DO j=jsta,jend
57 DO i=ista,iend
58 IF(abs(fld(i,j)-spval)>small) fld(i,j)=scale*fld(i,j)
59 ENDDO
60 ENDDO
61!
62! END OF ROUTINE.
63!
64 RETURN
65 END
subroutine sclfld(fld, scale, imo, jmo)
sclfld() scale array element by constant.
Definition SCLFLD.f:34