/[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.1 - (hide annotations) (download)
Tue Feb 5 20:23:58 2002 UTC (22 years, 4 months ago) by heimbach
Branch: ecco-branch
CVS Tags: ecco_c44_e19, ecco_c44_e18, ecco_c44_e17, ecco_c44_e16, ecco_c44_e20, ecco-branch-mod1, ecco-branch-mod2, ecco-branch-mod3, ecco-branch-mod4, ecco-branch-mod5
Changes since 1.1: +78 -0 lines
Starting from ecco-branch, replacing packages
cost, ctrl, ecco, obcs by ECCO packages.
Will create tag ecco-branch-mod1 after this modif.

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     & xx_fname(1:il),'.',optimcycle
73     write(adfname(1:80),'(3a,i10.10)')
74     & yadmark,xx_fname(1:il),'.',optimcycle
75    
76     _END_MASTER( mythid )
77    
78     end

  ViewVC Help
Powered by ViewVC 1.1.22