UPP v11.0.0
Loading...
Searching...
No Matches
SCLFLD.f
Go to the documentation of this file.
1
5
26 SUBROUTINE sclfld(FLD,SCALE,IMO,JMO)
27!
28
29!
30 use params_mod, only: small
31 use ctlblk_mod, only: jsta, jend, spval, ista, iend
32!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
33 implicit none
34!
35! DECLARE VARIABLES.
36!
37 integer,intent(in) :: IMO,JMO
38 REAL,intent(in) :: SCALE
39 REAL,dimension(ista:iend,jsta:jend),intent(inout) :: FLD
40 integer I,J
41!
42!
43!***********************************************************************
44! START SCLFLD HERE
45!
46! MULTIPLY EACH ELEMENT OF FLD BY SCALE.
47!
48!$omp parallel do
49 DO j=jsta,jend
50 DO i=ista,iend
51 IF(abs(fld(i,j)-spval)>small) fld(i,j)=scale*fld(i,j)
52 ENDDO
53 ENDDO
54!
55! END OF ROUTINE.
56!
57 RETURN
58 END
subroutine sclfld(fld, scale, imo, jmo)
This routine multiples (scales) the first IMO*JMO elements of array fld by the real scalar scale.
Definition SCLFLD.f:27