/[MITgcm]/MITgcm/pkg/aim_v23/aim_write_local.F
ViewVC logotype

Contents of /MITgcm/pkg/aim_v23/aim_write_local.F

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


Revision 1.1 - (show annotations) (download)
Fri Nov 22 17:17:03 2002 UTC (21 years, 5 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint51k_post, checkpoint47e_post, checkpoint57m_post, checkpoint52l_pre, hrcube4, hrcube5, checkpoint57g_pre, checkpoint50c_post, checkpoint57s_post, checkpoint58b_post, checkpoint57b_post, checkpoint52d_pre, checkpoint57g_post, checkpoint48e_post, checkpoint56b_post, checkpoint50c_pre, checkpoint57y_post, checkpoint52j_pre, checkpoint51o_pre, checkpoint54d_post, checkpoint54e_post, checkpoint51l_post, checkpoint48i_post, checkpoint57r_post, checkpoint57d_post, checkpoint57i_post, checkpoint50d_pre, checkpoint52k_post, checkpoint59, checkpoint58, checkpoint55, checkpoint54, checkpoint57, checkpoint56, checkpoint51, checkpoint50, checkpoint53, checkpoint52, checkpoint50d_post, checkpoint58f_post, checkpoint52f_post, checkpoint57n_post, checkpoint58d_post, checkpoint58a_post, checkpoint50b_pre, checkpoint57z_post, checkpoint54f_post, checkpoint51f_post, checkpoint58y_post, checkpoint48b_post, checkpoint51d_post, checkpoint48c_pre, checkpoint47d_pre, checkpoint51t_post, checkpoint58t_post, checkpoint51n_post, checkpoint55i_post, checkpoint58m_post, checkpoint57l_post, checkpoint52i_pre, hrcube_1, hrcube_2, hrcube_3, checkpoint51s_post, checkpoint47a_post, checkpoint57t_post, checkpoint55c_post, checkpoint48d_pre, checkpoint51j_post, checkpoint47i_post, checkpoint52e_pre, checkpoint57v_post, checkpoint57f_post, checkpoint52e_post, checkpoint51n_pre, checkpoint47d_post, checkpoint53d_post, checkpoint60, checkpoint61, checkpoint57a_post, checkpoint48d_post, checkpoint57h_pre, checkpoint48f_post, checkpoint52b_pre, checkpoint54b_post, checkpoint58w_post, checkpoint57h_post, checkpoint51l_pre, checkpoint52m_post, checkpoint57y_pre, checkpoint55g_post, checkpoint48h_post, checkpoint51q_post, checkpoint51b_pre, checkpoint47g_post, checkpoint52b_post, checkpoint52c_post, checkpoint51h_pre, checkpoint58o_post, checkpoint48a_post, checkpoint57c_post, checkpoint50f_post, checkpoint50a_post, checkpoint50f_pre, checkpoint58p_post, checkpoint58q_post, checkpoint52f_pre, checkpoint55d_post, checkpoint58e_post, checkpoint47j_post, checkpoint54a_pre, checkpoint53c_post, checkpoint55d_pre, checkpoint57c_pre, checkpoint58r_post, checkpoint55j_post, branch-exfmods-tag, branchpoint-genmake2, checkpoint54a_post, checkpoint55h_post, checkpoint58n_post, checkpoint51r_post, checkpoint48c_post, checkpoint51i_post, checkpoint57e_post, checkpoint55b_post, checkpoint51b_post, checkpoint51c_post, checkpoint53a_post, checkpoint47b_post, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint55f_post, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint59j, checkpoint52d_post, checkpoint53g_post, checkpoint57p_post, checkpint57u_post, checkpoint50g_post, checkpoint57q_post, eckpoint57e_pre, checkpoint58k_post, checkpoint52a_pre, checkpoint58v_post, checkpoint50h_post, checkpoint52i_post, checkpoint50e_pre, checkpoint50i_post, checkpoint51i_pre, checkpoint52h_pre, checkpoint56a_post, checkpoint58l_post, checkpoint53f_post, checkpoint57h_done, checkpoint52j_post, checkpoint47f_post, checkpoint50e_post, checkpoint57j_post, checkpoint57f_pre, checkpoint61f, checkpoint58g_post, branch-netcdf, checkpoint52l_post, checkpoint58x_post, checkpoint61n, checkpoint52n_post, checkpoint53b_pre, checkpoint58h_post, checkpoint56c_post, checkpoint58j_post, checkpoint51e_post, checkpoint57a_pre, checkpoint55a_post, checkpoint48, checkpoint49, checkpoint57o_post, checkpoint51o_post, checkpoint57k_post, checkpoint51f_pre, checkpoint53b_post, checkpoint47h_post, checkpoint52a_post, checkpoint57w_post, checkpoint61e, checkpoint58i_post, checkpoint51g_post, ecco_c52_e35, checkpoint57x_post, checkpoint50b_post, checkpoint58c_post, checkpoint58u_post, checkpoint51m_post, checkpoint53d_pre, checkpoint58s_post, checkpoint55e_post, checkpoint61g, checkpoint61d, checkpoint54c_post, checkpoint61b, checkpoint61c, checkpoint61a, checkpoint51a_post, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint51p_post, checkpoint48g_post, checkpoint51u_post
Branch point for: branch-exfmods-curt, branch-genmake2, branch-nonh, tg2-branch, netcdf-sm0, checkpoint51n_branch
new aim pkg: adapted from Franco Molteni SPEEDY code, ver23

1 C $Header: $
2 C $Name: $
3
4 #include "AIM_OPTIONS.h"
5
6 CBOP
7 C !ROUTINE: AIM_WRITE_LOCAL
8 C !INTERFACE:
9 SUBROUTINE AIM_WRITE_LOCAL(
10 I pref,suff,nNr,field,bi,bj,iRec,myIter,myThid)
11 C !DESCRIPTION: \bv
12 C *==========================================================*
13 C | SUBROUTINE AIM_WRITE_LOCAL
14 C | o Write local variable from AIM physics (=> no overlap)
15 C | and reverse K index.
16 C *==========================================================*
17 C !USES
18 IMPLICIT NONE
19
20 C == Global variables ===
21 #include "AIM_SIZE.h"
22
23 #include "EEPARAMS.h"
24 c #include "PARAMS.h"
25
26 C !INPUT/OUTPUT PARAMETERS:
27 C == Routine arguments ==
28 C pref = Prefix of the output file name
29 C suff = Suffix of the output file name
30 C Nr = 3rd dim. of the input field
31 C field = Field (from aim-physics) to write
32 C bi,bj = Tile index
33 C iRec = reccord number in the output file
34 C myIter - Current iteration number in simulation
35 C myThid - Thread number for this instance of the routine
36 CHARACTER*(*) pref,suff
37 INTEGER nNr
38 _RL field(sNx,sNy,nNr)
39 INTEGER bi, bj, iRec, myIter, myThid
40
41 #ifdef ALLOW_AIM
42
43 C !LOCAL VARIABLES:
44 CHARACTER*(MAX_LEN_MBUF) msgBuf
45 _RL tmpFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr)
46 INTEGER i,j,k,Katm
47
48 CEOP
49
50 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
51
52 C- Copy the input field into tempo. array:
53 IF (nNr.EQ.Nr) THEN
54 C- Reverse K index:
55 DO k=1,Nr
56 Katm = _KD2KA( k )
57 DO j=1,sNy
58 DO i=1,sNx
59 tmpFld(i,j,k) = field(i,j,Katm)
60 ENDDO
61 ENDDO
62 ENDDO
63 ELSEIF (nNr.LT.Nr) THEN
64 DO k=1,nNr
65 DO j=1,sNy
66 DO i=1,sNx
67 tmpFld(i,j,k) = field(i,j,k)
68 ENDDO
69 ENDDO
70 ENDDO
71 ELSE
72 WRITE(msgBuf,'(A,I4,A,I4)')
73 & 'AIM_WRITE_LOCAL: 3rd dim.(field)=',nNr,' has to be <',Nr
74 CALL PRINT_ERROR( msgBuf , myThid)
75 STOP 'ABNORMAL END: S/R AIM_WRITE_LOCAL'
76 ENDIF
77
78 C- Write to file:
79 CALL WRITE_LOCAL_RL(pref,suff,nNr,tmpFld,
80 & bi,bj,iRec,myIter,myThid)
81
82 #endif /* ALLOW_AIM */
83 RETURN
84 END

  ViewVC Help
Powered by ViewVC 1.1.22