/[MITgcm]/MITgcm_contrib/ecco_utils/ecco_v4_release3_optimization/lsopt/lswri.F
ViewVC logotype

Annotation of /MITgcm_contrib/ecco_utils/ecco_v4_release3_optimization/lsopt/lswri.F

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


Revision 1.1 - (hide annotations) (download)
Wed Jan 3 17:13:48 2018 UTC (7 years, 6 months ago) by ou.wang
Branch: MAIN
CVS Tags: HEAD
Check in the optimization used in ECCO v4r3

1 ou.wang 1.1
2     subroutine lswri( isize, phniter, NN, xx, gg, lphprint )
3    
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     INTEGER isize, phniter, NN
23     real*4 xx(NN), gg(NN)
24     cph DOUBLE PRECISION xx(NN), gg(NN)
25     LOGICAL lphprint
26    
27     cph CHARACTER yitnum*3
28     c
29    
30     C ========= Local variables ========================================
31    
32    
33     C=======================================================================
34    
35     c if (lphprint)
36     c & print *, 'pathei: formatted output of xx, gg, in lswri: ',
37     c & phniter
38     c
39     c open(95,
40     c & FILE='PH_X.dat',
41     c & FORM='UNFORMATTED',
42     c & ACCESS='DIRECT',
43     c & RECL=NN*isize)
44     c write(95,REC=phniter+1) xx
45     c close(95)
46     c
47     c open(95,
48     c & FILE='PH_G.dat',
49     c & FORM='UNFORMATTED',
50     c & ACCESS='DIRECT',
51     c & RECL=NN*isize)
52     c write(95,REC=phniter+1) gg
53     c close(95)
54    
55     end

  ViewVC Help
Powered by ViewVC 1.1.22