/[MITgcm]/MITgcm/pkg/dic/fe_chem.F
ViewVC logotype

Annotation of /MITgcm/pkg/dic/fe_chem.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.5 - (hide annotations) (download)
Mon Oct 18 16:01:13 2004 UTC (20 years, 8 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint57t_post, checkpoint57o_post, checkpoint57m_post, checkpoint57s_post, checkpoint57k_post, checkpoint57d_post, checkpoint57g_post, checkpoint57b_post, checkpoint57c_pre, checkpoint55j_post, checkpoint56b_post, checkpoint57i_post, checkpoint57e_post, checkpoint55h_post, checkpoint57g_pre, checkpoint56c_post, checkpoint57f_pre, checkpoint57a_post, checkpoint57r_post, checkpoint57a_pre, checkpoint55i_post, checkpoint57, checkpoint56, eckpoint57e_pre, checkpoint57h_done, checkpoint57n_post, checkpoint57p_post, checkpint57u_post, checkpoint57f_post, checkpoint57q_post, checkpoint57c_post, checkpoint57j_post, checkpoint57h_pre, checkpoint57l_post, checkpoint57h_post, checkpoint56a_post
Changes since 1.4: +3 -3 lines
ifort does not want to compile empty file

1 jmc 1.5 C $Header: /u/gcmpack/MITgcm/pkg/dic/fe_chem.F,v 1.4 2004/07/13 18:03:31 jmc Exp $
2 jmc 1.4 C $Name: $
3    
4 edhill 1.3 #include "DIC_OPTIONS.h"
5 stephd 1.1 #include "GCHEM_OPTIONS.h"
6    
7     CStartOfInterFace
8     SUBROUTINE Fe_CHEM(
9     I bi,bj,iMin,iMax,jMin,jMax,
10     I fe, freefe,
11     I myIter, myThid )
12     C /==========================================================\
13     C | SUBROUTINE Fe_chem |
14     C | |
15     C | o Calculate L,FeL,Fe concentration |
16     C |==========================================================|
17     IMPLICIT NONE
18    
19     C == GLobal variables ==
20     #include "SIZE.h"
21     #include "DYNVARS.h"
22     #include "EEPARAMS.h"
23     #include "PARAMS.h"
24     #include "GRID.h"
25     #include "DIC_BIOTIC.h"
26 jmc 1.4 #include "PTRACERS_SIZE.h"
27 stephd 1.1 #include "PTRACERS.h"
28    
29     C == Routine arguments ==
30     C bi, bj, iMin, iMax, jMin, jMax - Range of points for which calculation
31     C results will be set.
32     C myThid - Instance number for this innvocation of CALC_GT
33     _RL freefe(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
34     _RL fe(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
35     INTEGER bi,bj,iMin,iMax,jMin,jMax
36     INTEGER myIter,myThid
37     CEndOfInterface
38    
39 jmc 1.5 #ifdef ALLOW_FE
40 stephd 1.1
41     INTEGER I,J,K
42     _RL lig, FeL
43    
44     CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCc
45     CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCc
46     CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCc
47     CC
48     CC ADAPTED FROM PAYAL
49     CC
50     CC
51     CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCc
52     CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCc
53     CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCc
54    
55     C ligand balance in surface layer
56     C in surface layer
57    
58     DO j=jMin,jMax
59     DO i=iMin,iMax
60     DO k=1,nR
61     IF(hFacC(i,j,k,bi,bj) .gt. 0.0)THEN
62    
63     C Ligand,FeL,Fe calculation
64    
65     lig=(-ligand_stab*fe (i,j,k,bi,bj)+
66     & ligand_stab*ligand_tot-1
67     & +((ligand_stab*fe (i,j,k,bi,bj)
68     & -ligand_stab*ligand_tot+1)**2+4
69     & *ligand_stab*ligand_tot)**0.5)/(2*ligand_stab)
70    
71     FeL = ligand_tot-lig
72     freefe(i,j,k,bi,bj) = fe (i,j,k,bi,bj)-FeL
73     END IF
74     ENDDO
75     ENDDO
76     ENDDO
77     c
78 jmc 1.5 #endif
79 stephd 1.1 RETURN
80     END

  ViewVC Help
Powered by ViewVC 1.1.22