UPP  001
 All Data Structures Files Functions Pages
SCLFLD.f
Go to the documentation of this file.
1 
5 
25  SUBROUTINE sclfld(FLD,SCALE,IMO,JMO)
26 !
27 
28 !
29  use params_mod, only: small
30  use ctlblk_mod, only: jsta, jend, spval
31 !- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
32  implicit none
33 !
34 ! DECLARE VARIABLES.
35 !
36  integer,intent(in) :: imo,jmo
37  REAL,intent(in) :: scale
38  REAL,dimension(imo,jmo),intent(inout) :: fld
39  integer i,j
40 !
41 !
42 !***********************************************************************
43 ! START SCLFLD HERE
44 !
45 ! MULTIPLY EACH ELEMENT OF FLD BY SCALE.
46 !
47 !$omp parallel do
48  DO j=jsta,jend
49  DO i=1,imo
50  IF(abs(fld(i,j)-spval)>small) fld(i,j)=scale*fld(i,j)
51  ENDDO
52  ENDDO
53 !
54 ! END OF ROUTINE.
55 !
56  RETURN
57  END