OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
fluxlvl.f
Go to the documentation of this file.
1  subroutine fluxlvl(buft,sumg,iflag)
2 c
3 c include the common statements.....................................
4  implicit real*8 (a-h,o-z)
5  include 'common_all.cmn'
6  real*8 buft(4,50,46)
7 c
8 c***********************************************************************
9  if(iflag.eq.1)then
10  m=jjj
11  n=nmum1
12  else
13  m=1
14  n=jjjj
15  endif
16 c
17  anophi=dfloat(nophi)
18  sumg = 0.0d0
19  do 5001 j = m,n
20  psumg = 0.0d0
21  do 4003 k = 1,2
22  psumg=buft(k,j,1)+buft(k,j,jpart)+psumg
23  do 4003 i=2,noph2
24  psumg=psumg+2.0d0*buft(k,j,i)
25  4003 continue
26  sumg=sumg+psumg*dmus2(j)*6.2831854d0/anophi
27  5001 continue
28 c
29  sumg=dabs(sumg)
30  return
31  end
32 c***********************************************************************
subroutine fluxlvl(buft, sumg, iflag)
Definition: fluxlvl.f:2
#define real
Definition: DbAlgOcean.cpp:26