/[MITgcm]/MITgcm/pkg/ctrl/ctrl_set_fname.F
ViewVC logotype

Annotation of /MITgcm/pkg/ctrl/ctrl_set_fname.F

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


Revision 1.10 - (hide annotations) (download)
Fri Aug 10 19:38:57 2012 UTC (12 years, 1 month ago) by jmc
Branch: MAIN
CVS Tags: checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, checkpoint64, checkpoint65, checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint63r, checkpoint63s, checkpoint65o, checkpoint64y, checkpoint64x, checkpoint64z, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, HEAD
Changes since 1.9: +2 -2 lines
rename CTRL_CPPOPTIONS.h to CTRL_OPTIONS.h

1 edhill 1.5 C
2 jmc 1.10 C $Header: /u/gcmpack/MITgcm/pkg/ctrl/ctrl_set_fname.F,v 1.9 2011/12/02 18:43:03 heimbach Exp $
3 heimbach 1.6 C $Name: $
4 edhill 1.5
5 jmc 1.10 #include "CTRL_OPTIONS.h"
6 heimbach 1.2
7 heimbach 1.6 subroutine ctrl_set_fname( xx_fname, fname, mythid )
8 heimbach 1.2
9     c ==================================================================
10     c SUBROUTINE ctrl_set_fname
11     c ==================================================================
12     c
13     c o get filename for control variable and adjoint thereof
14     c o initialise adjoint field
15     c
16     c started: heimbach@mit.edu, 16-Aug-2001
17     c
18     c ==================================================================
19    
20     implicit none
21    
22     c == global variables ==
23    
24     #include "EEPARAMS.h"
25     #include "SIZE.h"
26     #include "PARAMS.h"
27     #include "GRID.h"
28    
29     #include "ctrl.h"
30     #include "optim.h"
31    
32     c == routine arguments ==
33    
34     character*(MAX_LEN_FNAM) xx_fname
35 heimbach 1.9 character*( 80) fname(3)
36 heimbach 1.2 integer mythid
37    
38     c == local variables ==
39    
40     integer ii
41     integer il
42    
43     c == external ==
44    
45     integer ilnblnk
46     external ilnblnk
47    
48     c == end of interface ==
49    
50     c-- Only the master thread will do I/O.
51     _BEGIN_MASTER( mythid )
52    
53     il=ilnblnk( xx_fname )
54    
55 heimbach 1.6 write(fname(1)(1:80),'(80a)') ' '
56     write(fname(2)(1:80),'(80a)') ' '
57 heimbach 1.9 write(fname(3)(1:80),'(80a)') ' '
58 heimbach 1.2
59 heimbach 1.3 if ( il .GT. 0 .AND. il .LE. 80 ) then
60 heimbach 1.6 write(fname(1)(1:80),'(2a,i10.10)')
61 heimbach 1.3 & xx_fname(1:il) ,'.', optimcycle
62 heimbach 1.6 write(fname(2)(1:80),'(3a,i10.10)')
63 heimbach 1.3 & yadprefix, xx_fname(1:il), '.', optimcycle
64 heimbach 1.9 write(fname(3)(1:80),'(3a,i10.10)')
65     & 'hn', xx_fname(1:il), '.', optimcycle
66 heimbach 1.3 endif
67 heimbach 1.2
68     _END_MASTER( mythid )
69    
70     end

  ViewVC Help
Powered by ViewVC 1.1.22