Parent Directory | Revision Log | Revision Graph
o first check-in for the "branch-genmake2" merge o verification suite as run on shelley (gcc 3.2.2): Wed Oct 8 23:42:29 EDT 2003 T S U V G D M c m s m s m s m s E p a R g m m e . m m e . m m e . m m e . N n k u 2 i a a d i a a d i a a d i a a d 2 d e n d n x n . n x n . n x n . n x n . OPTFILE=NONE Y Y Y Y 13 16 16 16 0 16 16 16 16 16 16 16 16 13 12 0 0 pass adjustment.128x64x1 Y Y Y Y 16 16 16 16 0 16 16 16 16 16 16 0 0 16 16 0 0 pass adjustment.cs-32x32x1 Y Y Y Y 16 16 16 16 0 16 16 16 16 16 16 22 0 16 16 22 0 pass adjust_nlfs.cs-32x32x1 Y Y Y Y -- 13 13 16 16 13 13 13 13 16 16 16 16 16 16 16 16 N/O advect_cs Y Y Y Y -- 22 16 16 16 16 16 16 13 16 16 16 16 16 16 16 16 N/O advect_xy Y Y Y Y -- 13 16 13 16 16 16 16 16 16 16 22 16 16 16 16 16 N/O advect_xz Y Y Y Y 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 pass aim.5l_cs Y Y Y Y 14 16 16 16 16 16 16 16 16 13 16 16 16 16 16 13 16 pass aim.5l_Equatorial_Channel Y Y Y Y 16 16 16 16 16 16 16 16 16 16 16 13 16 16 13 13 16 pass aim.5l_LatLon Y Y Y Y 13 16 16 16 16 16 16 16 16 16 13 12 13 13 16 13 16 pass exp0 Y Y Y Y 14 16 16 16 16 16 16 16 22 16 16 16 13 16 16 22 16 pass exp1 Y Y Y Y 13 13 16 13 16 16 16 16 16 13 13 16 16 13 13 13 13 pass exp2 Y Y Y Y 16 16 16 16 16 16 16 16 22 16 16 16 16 16 16 16 16 pass exp4 Y Y Y Y 16 16 16 16 16 16 16 16 16 16 16 22 16 16 16 22 16 pass exp5 Y Y Y Y 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 pass front_relax Y Y Y Y 14 16 16 13 13 16 16 13 13 16 13 13 16 12 13 13 16 pass global_ocean.90x40x15 Y Y Y Y 10 16 16 13 13 16 13 16 16 13 13 13 13 16 16 13 16 FAIL global_ocean.cs32x15 Y Y Y Y 6 11 12 13 13 12 13 16 13 9 9 9 9 10 9 9 11 FAIL global_ocean_pressure Y Y Y Y 14 16 16 13 16 16 16 13 13 13 13 13 16 12 16 13 16 pass global_with_exf Y Y Y Y 14 16 16 16 16 16 16 16 16 11 13 22 13 16 16 9 16 pass hs94.128x64x5 Y Y Y Y 13 16 16 16 16 16 16 16 16 11 16 16 16 13 16 22 13 pass hs94.1x64x5 Y Y Y Y 14 16 16 16 16 16 16 16 16 13 16 13 13 16 16 22 13 pass hs94.cs-32x32x5 Y Y Y Y 10 10 16 13 13 16 16 16 22 16 13 13 13 13 13 22 13 FAIL ideal_2D_oce Y Y Y Y 8 16 16 16 16 16 16 16 16 13 13 8 16 16 16 16 16 FAIL internal_wave Y Y Y Y 14 16 16 16 16 16 16 16 16 13 13 22 13 13 13 22 16 pass inverted_barometer Y Y Y Y 12 16 16 16 16 16 16 16 16 16 13 12 13 13 13 13 13 FAIL lab_sea Y Y Y Y 11 16 16 16 16 16 16 16 13 13 13 12 13 16 13 12 13 FAIL natl_box Y Y Y Y 16 16 16 16 16 16 16 16 22 16 16 16 16 16 16 16 16 pass plume_on_slope Y Y Y Y 13 16 16 16 16 13 16 16 16 16 16 16 16 13 16 16 16 pass solid-body.cs-32x32x1
1 | #include "DIC_OPTIONS.h" |
2 | #include "GCHEM_OPTIONS.h" |
3 | |
4 | CStartOfInterFace |
5 | SUBROUTINE PHOS_FLUX( bioac, pflux, |
6 | I bi,bj,imin,imax,jmin,jmax, |
7 | I myIter,myTime,myThid) |
8 | |
9 | C /==========================================================\ |
10 | C | SUBROUTINE PHOS_FORCING | |
11 | C | o Calculate the PO4 flux to depth from bio activity |
12 | C |==========================================================| |
13 | IMPLICIT NONE |
14 | |
15 | C == GLobal variables == |
16 | #include "SIZE.h" |
17 | #include "DYNVARS.h" |
18 | #include "EEPARAMS.h" |
19 | #include "PARAMS.h" |
20 | #include "GRID.h" |
21 | #include "DIC_BIOTIC.h" |
22 | |
23 | C == Routine arguments == |
24 | INTEGER myIter |
25 | _RL myTime |
26 | INTEGER myThid |
27 | _RL bioac(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr) |
28 | _RL pflux(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr) |
29 | _RL zbase |
30 | INTEGER imin, imax, jmin, jmax, bi, bj |
31 | |
32 | #ifdef ALLOW_PTRACERS |
33 | #ifdef DIC_BIOTIC |
34 | C == Local variables == |
35 | _RL bexport(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
36 | INTEGER I,J,k, ko |
37 | _RL depth_u, depth_l |
38 | _RL flux_u, flux_l |
39 | c |
40 | c calculate PO4 flux from base of each layer |
41 | DO j=1-OLy,sNy+OLy |
42 | DO i=1-OLx,sNx+OLx |
43 | DO k=1,nlev |
44 | if (hFacC(i,j,k,bi,bj).gt.0.d0) then |
45 | c flux out of layer k |
46 | bexport(i,j)=bioac(i,j,k)*(1.0-DOPfraction)* |
47 | & drF(k)*hFacC(i,j,k,bi,bj) |
48 | c calculate flux to each layer from base of k |
49 | zbase=-rF(k+1) |
50 | Do ko=k+1,Nr |
51 | if (hFacC(i,j,ko,bi,bj).gt.0.d0) then |
52 | depth_u=-rF(ko) |
53 | depth_l=depth_u+ |
54 | & drF(ko)*hFacC(i,j,ko,bi,bj) |
55 | c |
56 | flux_u=bexport(i,j)*((depth_u/zbase)**(-Kremin)) |
57 | c no flux to ocean bottom |
58 | if (ko.eq.Nr) then |
59 | flux_l=0.d0 |
60 | else |
61 | if (hFacC(i,j,ko+1,bi,bj).eq.0.d0) then |
62 | flux_l=0.d0 |
63 | else |
64 | flux_l=bexport(i,j)*((depth_l/zbase)**(-Kremin)) |
65 | endif |
66 | endif |
67 | pflux(i,j,ko)=pflux(i,j,ko) + |
68 | & ( (Flux_u-Flux_l)/(drF(ko)*hFacC(i,j,ko,bi,bj)) ) |
69 | else |
70 | c if no layer below initial layer, remineralize in place |
71 | if (ko.eq.k+1) pflux(i,j,k)=pflux(i,j,k) |
72 | & +bioac(i,j,k)*(1.0-DOPfraction) |
73 | endif |
74 | ENDDO |
75 | endif |
76 | ENDDO |
77 | ENDDO |
78 | ENDDO |
79 | c |
80 | #endif |
81 | #endif |
82 | RETURN |
83 | END |
ViewVC Help | |
Powered by ViewVC 1.1.22 |