/[MITgcm]/MITgcm/lsopt/lswri.F
ViewVC logotype

Annotation of /MITgcm/lsopt/lswri.F

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


Revision 1.3 - (hide annotations) (download)
Thu Sep 9 15:51:26 2004 UTC (19 years, 8 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint57m_post, checkpoint57g_pre, checkpoint57b_post, checkpoint57g_post, checkpoint56b_post, checkpoint57d_post, checkpoint57i_post, checkpoint55, checkpoint57, checkpoint56, checkpoint57n_post, checkpoint54f_post, checkpoint55i_post, checkpoint57l_post, checkpoint55c_post, checkpoint57f_post, checkpoint57a_post, checkpoint57h_pre, checkpoint57h_post, checkpoint55g_post, checkpoint57c_post, checkpoint55d_post, checkpoint55d_pre, checkpoint57c_pre, checkpoint55j_post, checkpoint55h_post, checkpoint57e_post, checkpoint55b_post, checkpoint55f_post, checkpoint57p_post, checkpoint57q_post, eckpoint57e_pre, checkpoint56a_post, checkpoint57h_done, checkpoint57j_post, checkpoint57f_pre, checkpoint56c_post, checkpoint57a_pre, checkpoint55a_post, checkpoint57o_post, checkpoint57k_post, checkpoint55e_post
Changes since 1.2: +8 -7 lines
Small modifs and fixes
(mostly change to real*4 for large-scale ECCO runs)

1 heimbach 1.2
2 heimbach 1.3 subroutine lswri( isize, phniter, NN, xx, gg, lphprint )
3 heimbach 1.2
4     c ==================================================================
5     c SUBROUTINE lswri
6     c ==================================================================
7     c
8     c o writes formatted output of updated controls and
9     c adjoint variables
10     c
11     c o started: Patrick Heimbach, MIT/EAPS
12     c 01-Apr-1999
13     c
14     c ==================================================================
15     c SUBROUTINE lswri
16     c ==================================================================
17    
18     implicit none
19    
20     C ========= Routine arguments ======================================
21    
22 heimbach 1.3 INTEGER isize, phniter, NN
23     real*4 xx(NN), gg(NN)
24     cph DOUBLE PRECISION xx(NN), gg(NN)
25 heimbach 1.2 LOGICAL lphprint
26    
27     cph CHARACTER yitnum*3
28     c
29    
30     C ========= Local variables ========================================
31    
32    
33     C=======================================================================
34    
35     if (lphprint)
36 heimbach 1.3 & print *, 'pathei: formatted output of xx, gg, in lswri: ',
37     & phniter
38 heimbach 1.2 c
39     open(95,
40     & FILE='PH_X.dat',
41     & FORM='UNFORMATTED',
42     & ACCESS='DIRECT',
43 heimbach 1.3 & RECL=NN*isize)
44 heimbach 1.2 write(95,REC=phniter+1) xx
45     close(95)
46     c
47     open(95,
48     & FILE='PH_G.dat',
49     & FORM='UNFORMATTED',
50     & ACCESS='DIRECT',
51 heimbach 1.3 & RECL=NN*isize)
52 heimbach 1.2 write(95,REC=phniter+1) gg
53     close(95)
54    
55     end

  ViewVC Help
Powered by ViewVC 1.1.22