UPP  V11.0.0
 All Data Structures Files Functions Pages
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