/[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.1.2.2 - (hide annotations) (download)
Thu Apr 4 10:24:47 2002 UTC (23 years, 3 months ago) by heimbach
Branch: ecco-branch
CVS Tags: icebear5, icebear4, icebear3, icebear2, ecco_ice2, ecco_ice1, ecco_c44_e22, ecco_c44_e25, ecco_c44_e23, ecco_c44_e21, ecco_c44_e26, ecco_c44_e27, ecco_c44_e24
Branch point for: c24_e25_ice, icebear
Changes since 1.1.2.1: +2 -2 lines
o modified to enable ctrl field swapping
o bug fix for global sum of ncvarlength in ctrl_init
o no more call to ctrl_unpack from ctrl_init
o no more write of ctrl vector in ctrl_pack
  however, init. of control vector from ctrl_unpack
o various nug fixes & consistent nobcs handling in
  ctrl_pack/unpack routines.

1 heimbach 1.1.2.1 #include "CTRL_CPPOPTIONS.h"
2    
3    
4     subroutine ctrl_set_fname(
5     I xx_fname,fname, adfname, mythid )
6    
7     c ==================================================================
8     c SUBROUTINE ctrl_set_fname
9     c ==================================================================
10     c
11     c o get filename for control variable and adjoint thereof
12     c o initialise adjoint field
13     c
14     c started: heimbach@mit.edu, 16-Aug-2001
15     c
16     c ==================================================================
17    
18     implicit none
19    
20     c == global variables ==
21    
22     #include "EEPARAMS.h"
23     #include "SIZE.h"
24     #include "PARAMS.h"
25     #include "GRID.h"
26    
27     #include "cal.h"
28     #include "ecco.h"
29     #include "ctrl.h"
30     #include "cost.h"
31    
32     #ifdef ALLOW_ECCO_OPTIMIZATION
33     #include "optim.h"
34     #endif
35    
36     c == routine arguments ==
37    
38     character*(MAX_LEN_FNAM) xx_fname
39     character*( 80) fname
40     character*( 80) adfname
41     integer mythid
42    
43     c == local variables ==
44    
45     #ifndef ALLOW_ECCO_OPTIMIZATION
46     integer optimcycle
47     #endif
48    
49     integer ii
50     integer il
51    
52     c == external ==
53    
54     integer ilnblnk
55     external ilnblnk
56    
57     c == end of interface ==
58    
59     #ifndef ALLOW_ECCO_OPTIMIZATION
60     optimcycle = 0
61     #endif
62    
63     c-- Only the master thread will do I/O.
64     _BEGIN_MASTER( mythid )
65    
66     il=ilnblnk( xx_fname )
67    
68     write( fname(1:80),'(80a)') ' '
69     write(adfname(1:80),'(80a)') ' '
70    
71     write(fname(1:80),'(2a,i10.10)')
72 heimbach 1.1.2.2 & xx_fname(1:il) ,'.', optimcycle
73 heimbach 1.1.2.1 write(adfname(1:80),'(3a,i10.10)')
74 heimbach 1.1.2.2 & yadprefix, xx_fname(1:il), '.', optimcycle
75 heimbach 1.1.2.1
76     _END_MASTER( mythid )
77    
78     end

  ViewVC Help
Powered by ViewVC 1.1.22