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

Contents of /MITgcm/lsopt/instore.F

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


Revision 1.2 - (show annotations) (download)
Fri Nov 15 04:03:24 2002 UTC (21 years, 5 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint51k_post, checkpoint47e_post, checkpoint52l_pre, hrcube4, hrcube5, checkpoint47c_post, checkpoint50c_post, checkpoint52d_pre, checkpoint48e_post, checkpoint50c_pre, checkpoint52j_pre, checkpoint51o_pre, checkpoint54d_post, checkpoint54e_post, checkpoint51l_post, checkpoint48i_post, checkpoint50d_pre, checkpoint52k_post, checkpoint54, checkpoint51, checkpoint50, checkpoint53, checkpoint52, checkpoint50d_post, checkpoint52f_post, checkpoint50b_pre, checkpoint51f_post, checkpoint48b_post, checkpoint51d_post, checkpoint48c_pre, checkpoint47d_pre, checkpoint51t_post, checkpoint51n_post, checkpoint52i_pre, hrcube_1, hrcube_2, hrcube_3, checkpoint51s_post, checkpoint47a_post, checkpoint48d_pre, checkpoint51j_post, checkpoint47i_post, checkpoint52e_pre, checkpoint52e_post, checkpoint51n_pre, checkpoint47d_post, checkpoint53d_post, checkpoint48d_post, checkpoint48f_post, checkpoint52b_pre, checkpoint54b_post, checkpoint51l_pre, checkpoint52m_post, checkpoint48h_post, checkpoint51q_post, checkpoint51b_pre, checkpoint47g_post, checkpoint52b_post, checkpoint52c_post, checkpoint51h_pre, checkpoint48a_post, checkpoint50f_post, checkpoint50a_post, checkpoint50f_pre, checkpoint52f_pre, checkpoint47j_post, checkpoint54a_pre, checkpoint53c_post, branch-exfmods-tag, branchpoint-genmake2, checkpoint54a_post, checkpoint51r_post, checkpoint48c_post, checkpoint51i_post, checkpoint51b_post, checkpoint51c_post, checkpoint53a_post, checkpoint47b_post, checkpoint52d_post, checkpoint53g_post, checkpoint50g_post, checkpoint52a_pre, checkpoint50h_post, checkpoint52i_post, checkpoint50e_pre, checkpoint50i_post, checkpoint51i_pre, checkpoint52h_pre, checkpoint53f_post, checkpoint52j_post, checkpoint47f_post, checkpoint50e_post, branch-netcdf, checkpoint52l_post, checkpoint52n_post, checkpoint53b_pre, checkpoint51e_post, checkpoint47, checkpoint48, checkpoint49, checkpoint51o_post, checkpoint51f_pre, checkpoint48g_post, checkpoint53b_post, checkpoint47h_post, checkpoint52a_post, checkpoint51g_post, ecco_c52_e35, checkpoint50b_post, checkpoint51m_post, checkpoint53d_pre, checkpoint54c_post, checkpoint51a_post, checkpoint51p_post, checkpoint51u_post
Branch point for: branch-exfmods-curt, branch-genmake2, branch-nonh, tg2-branch, netcdf-sm0, checkpoint51n_branch
Changes since 1.1: +56 -0 lines
o Incorporating QNVS line search routines into MITgcm
  (this is separate code, not compiled with MITgcm,
  and therefore not under pkg)
  - lsopt/
  - optim/

1 subroutine instore( n, fc, gnorm0, is, m, jmin, jmax,
2 & cold, ifail )
3 c
4 c arguments
5 c
6 integer n, is, m, jmin, jmax, ifail
7 double precision fc, gnorm0
8 logical cold
9 c----
10 c
11 common /xxstore/ itape, ntape, isize
12 integer itape, ntape, isize
13
14 ifail = 0
15 itape = 91
16 ntape = 92
17 isize = is
18 cold = .true.
19
20 cc one record = two arrays of real*(isize)
21
22 open( itape
23 $ , file = 'OPWARMI'
24 $ , status = 'unknown'
25 $ , form = 'formatted'
26 $ , access = 'sequential'
27 $ )
28
29 read( itape, *, end=800, err=900 ) n, fc, gnorm0,
30 $ isize, m, jmin, jmax
31 cold = .false.
32
33 800 continue
34 close(itape)
35
36 print*
37 write(*,'(a,i10,a,i2)')
38 $ ' opening direct access with recl = ',n,' * ',isize
39 print*
40
41 open( ntape
42 $ , file = 'OPWARMD'
43 $ , status = 'unknown'
44 $ , form = 'unformatted'
45 $ , access = 'direct'
46 $ , recl = n * isize
47 $ )
48
49 return
50
51 900 continue
52 close(itape)
53 ifail = 1
54
55 return
56 end

  ViewVC Help
Powered by ViewVC 1.1.22