UPP  11.0.0
 All Data Structures Files Functions Variables Pages
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:33