File indexing completed on 2023-07-14 05:10:07 UTC
view on githubraw file Latest commit de57a2ec on 2023-07-13 16:55:13 UTC
6d54cf9ca1 Ed H*0001 #include "AUTODIFF_OPTIONS.h"
22f0d78f5f Patr*0002
1c93ccf46e Jean*0003
0004
0005
0006
0007
0008
0009
0010
0011
04904a066e Timo*0012
1c93ccf46e Jean*0013
0014
0015
0016
0017
04904a066e Timo*0018
1c93ccf46e Jean*0019
0020
0021
0022
0023
0024
04904a066e Timo*0025
0026
1c93ccf46e Jean*0027
0028
0029
22f0d78f5f Patr*0030
0031
0032
0033 subroutine g_active_read_xy(
0034 I active_var_file,
0035 O active_var,
35d16297ce Patr*0036 I g_active_var,
1c93ccf46e Jean*0037 I iRec,
22f0d78f5f Patr*0038 I doglobalread,
0039 I lAdInit,
0040 I myOptimIter,
1c93ccf46e Jean*0041 I myThid,
438282c1af Patr*0042 I dummy,
0043 I g_dummy
22f0d78f5f Patr*0044 & )
0045
0046
1c93ccf46e Jean*0047
0048
0049
0050
0051
0052
0053
0054
22f0d78f5f Patr*0055
0056
0057
1c93ccf46e Jean*0058 IMPLICIT NONE
22f0d78f5f Patr*0059
1c93ccf46e Jean*0060
22f0d78f5f Patr*0061 #include "EEPARAMS.h"
0062 #include "SIZE.h"
0063
0064
04904a066e Timo*0065
0066
0067
0068
0069
0070
0071
0072
0073
0074
1c93ccf46e Jean*0075 CHARACTER*(*) active_var_file
0076 _RL active_var(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
0077 _RL g_active_var(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
0078 INTEGER iRec
0079 LOGICAL doglobalread
0080 LOGICAL lAdInit
04904a066e Timo*0081 INTEGER myOptimIter
0082 INTEGER myThid
438282c1af Patr*0083 _RL dummy, g_dummy
22f0d78f5f Patr*0084
0085
1c93ccf46e Jean*0086 CHARACTER*(2) pref
de57a2ec4b Mart*0087 CHARACTER*(MAX_LEN_FNAM) fname
1c93ccf46e Jean*0088 INTEGER myNr
0089 LOGICAL useCurrentDir
22f0d78f5f Patr*0090
0091
0092 pref = 'g_'
f9d7cbfb72 Ou W*0093 CALL ADD_PREFIX( pref, active_var_file, fname )
1c93ccf46e Jean*0094 myNr = 1
0095 useCurrentDir = .FALSE.
0096
0097 CALL ACTIVE_READ_3D_RL(
0098 & active_var_file, active_var, doglobalread,
0099 & useCurrentDir, lAdInit, iRec, myNr,
0100 & FORWARD_SIMULATION, myOptimIter, myThid )
0101
0102 CALL ACTIVE_READ_3D_RL(
0103 & fname, g_active_var, doglobalread,
0104 & useCurrentDir, lAdInit, iRec, myNr,
0105 & TANGENT_SIMULATION, myOptimIter, myThid )
0106
0107 RETURN
0108 END
0109
0110
22f0d78f5f Patr*0111
0112
0113
0114 subroutine g_active_read_xyz(
0115 I active_var_file,
0116 O active_var,
35d16297ce Patr*0117 I g_active_var,
1c93ccf46e Jean*0118 I iRec,
22f0d78f5f Patr*0119 I doglobalread,
0120 I lAdInit,
0121 I myOptimIter,
1c93ccf46e Jean*0122 I myThid,
438282c1af Patr*0123 I dummy,
0124 I g_dummy
22f0d78f5f Patr*0125 & )
0126
0127
1c93ccf46e Jean*0128
0129
0130
0131
0132
0133
0134
0135
22f0d78f5f Patr*0136
0137
0138
1c93ccf46e Jean*0139 IMPLICIT NONE
22f0d78f5f Patr*0140
1c93ccf46e Jean*0141
22f0d78f5f Patr*0142 #include "EEPARAMS.h"
0143 #include "SIZE.h"
0144
0145
04904a066e Timo*0146
0147
0148
0149
0150
0151
0152
0153
0154
0155
1c93ccf46e Jean*0156 CHARACTER*(*) active_var_file
0157 _RL active_var(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
0158 _RL g_active_var(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
0159 INTEGER iRec
0160 LOGICAL doglobalread
0161 LOGICAL lAdInit
04904a066e Timo*0162 INTEGER myOptimIter
0163 INTEGER myThid
438282c1af Patr*0164 _RL dummy, g_dummy
22f0d78f5f Patr*0165
0166
1c93ccf46e Jean*0167 CHARACTER*(2) pref
de57a2ec4b Mart*0168 CHARACTER*(MAX_LEN_FNAM) fname
1c93ccf46e Jean*0169 INTEGER myNr
0170 LOGICAL useCurrentDir
22f0d78f5f Patr*0171
0172
0173 pref = 'g_'
f9d7cbfb72 Ou W*0174 CALL ADD_PREFIX( pref, active_var_file, fname )
1c93ccf46e Jean*0175 myNr = Nr
0176 useCurrentDir = .FALSE.
0177
0178 CALL ACTIVE_READ_3D_RL(
0179 & active_var_file, active_var, doglobalread,
0180 & useCurrentDir, lAdInit, iRec, myNr,
0181 & FORWARD_SIMULATION, myOptimIter, myThid )
0182
0183 CALL ACTIVE_READ_3D_RL(
0184 & fname, g_active_var, doglobalread,
0185 & useCurrentDir, lAdInit, iRec, myNr,
0186 & TANGENT_SIMULATION, myOptimIter, myThid )
0187
0188 RETURN
0189 END
0190
0191
22f0d78f5f Patr*0192
0193
0194
0195 subroutine g_active_read_xz(
0196 I active_var_file,
0197 O active_var,
35d16297ce Patr*0198 I g_active_var,
1c93ccf46e Jean*0199 I iRec,
22f0d78f5f Patr*0200 I doglobalread,
0201 I lAdInit,
0202 I myOptimIter,
1c93ccf46e Jean*0203 I myThid,
438282c1af Patr*0204 I dummy,
0205 I g_dummy
22f0d78f5f Patr*0206 & )
0207
0208
1c93ccf46e Jean*0209
0210
0211
0212
0213
0214
0215
0216
22f0d78f5f Patr*0217
0218
0219
1c93ccf46e Jean*0220 IMPLICIT NONE
22f0d78f5f Patr*0221
1c93ccf46e Jean*0222
22f0d78f5f Patr*0223 #include "EEPARAMS.h"
0224 #include "SIZE.h"
0225
0226
04904a066e Timo*0227
0228
0229
0230
0231
0232
0233
0234
0235
0236
1c93ccf46e Jean*0237 CHARACTER*(*) active_var_file
04904a066e Timo*0238 _RL active_var(1-OLx:sNx+OLx,Nr,nSx,nSy)
0239 _RL g_active_var(1-OLx:sNx+OLx,Nr,nSx,nSy)
1c93ccf46e Jean*0240 INTEGER iRec
0241 LOGICAL doglobalread
0242 LOGICAL lAdInit
04904a066e Timo*0243 INTEGER myOptimIter
0244 INTEGER myThid
438282c1af Patr*0245 _RL dummy, g_dummy
22f0d78f5f Patr*0246
0247
1c93ccf46e Jean*0248 CHARACTER*(2) pref
de57a2ec4b Mart*0249 CHARACTER*(MAX_LEN_FNAM) fname
1c93ccf46e Jean*0250 INTEGER myNr
0251 LOGICAL useCurrentDir
22f0d78f5f Patr*0252
0253
0254 pref = 'g_'
f9d7cbfb72 Ou W*0255 CALL ADD_PREFIX( pref, active_var_file, fname )
1c93ccf46e Jean*0256 myNr = Nr
0257 useCurrentDir = .FALSE.
0258
0259 CALL ACTIVE_READ_XZ_RL(
0260 & active_var_file, active_var, doglobalread,
0261 & useCurrentDir, lAdInit, iRec, myNr,
0262 & FORWARD_SIMULATION, myOptimIter, myThid )
0263
0264 CALL ACTIVE_READ_XZ_RL(
0265 & fname, g_active_var, doglobalread,
0266 & useCurrentDir, lAdInit, iRec, myNr,
0267 & TANGENT_SIMULATION, myOptimIter, myThid )
0268
0269 RETURN
0270 END
0271
0272
22f0d78f5f Patr*0273
0274
0275
0276 subroutine g_active_read_yz(
0277 I active_var_file,
0278 O active_var,
35d16297ce Patr*0279 I g_active_var,
1c93ccf46e Jean*0280 I iRec,
22f0d78f5f Patr*0281 I doglobalread,
0282 I lAdInit,
0283 I myOptimIter,
1c93ccf46e Jean*0284 I myThid,
438282c1af Patr*0285 I dummy,
0286 I g_dummy
22f0d78f5f Patr*0287 & )
0288
0289
1c93ccf46e Jean*0290
0291
0292
0293
0294
0295
0296
0297
22f0d78f5f Patr*0298
0299
0300
1c93ccf46e Jean*0301 IMPLICIT NONE
22f0d78f5f Patr*0302
1c93ccf46e Jean*0303
22f0d78f5f Patr*0304 #include "EEPARAMS.h"
0305 #include "SIZE.h"
0306
0307
04904a066e Timo*0308
0309
0310
0311
0312
0313
0314
0315
0316
0317
1c93ccf46e Jean*0318 CHARACTER*(*) active_var_file
04904a066e Timo*0319 _RL active_var(1-OLy:sNy+OLy,Nr,nSx,nSy)
0320 _RL g_active_var(1-OLy:sNy+OLy,Nr,nSx,nSy)
1c93ccf46e Jean*0321 INTEGER iRec
0322 LOGICAL doglobalread
0323 LOGICAL lAdInit
04904a066e Timo*0324 INTEGER myOptimIter
0325 INTEGER myThid
438282c1af Patr*0326 _RL dummy, g_dummy
22f0d78f5f Patr*0327
0328
1c93ccf46e Jean*0329 CHARACTER*(2) pref
de57a2ec4b Mart*0330 CHARACTER*(MAX_LEN_FNAM) fname
1c93ccf46e Jean*0331 INTEGER myNr
0332 LOGICAL useCurrentDir
22f0d78f5f Patr*0333
0334
0335 pref = 'g_'
f9d7cbfb72 Ou W*0336 CALL ADD_PREFIX( pref, active_var_file, fname )
1c93ccf46e Jean*0337 myNr = Nr
0338 useCurrentDir = .FALSE.
0339
0340 CALL ACTIVE_READ_YZ_RL(
0341 & active_var_file, active_var, doglobalread,
0342 & useCurrentDir, lAdInit, iRec, myNr,
0343 & FORWARD_SIMULATION, myOptimIter, myThid )
0344
0345 CALL ACTIVE_READ_YZ_RL(
0346 & fname, g_active_var, doglobalread,
0347 & useCurrentDir, lAdInit, iRec, myNr,
0348 & TANGENT_SIMULATION, myOptimIter, myThid )
0349
0350 RETURN
0351 END
0352
0353
22f0d78f5f Patr*0354
04904a066e Timo*0355
0356
0357 subroutine g_active_read_1d(
0358 I active_var_file,
0359 O active_var,
0360 I g_active_var,
0361 I active_var_length,
0362 I iRec,
0363 I lAdInit,
0364 I myOptimIter,
0365 I myThid,
0366 I dummy,
0367 I g_dummy
0368 & )
0369
0370
0371
0372
0373
0374
0375
0376
0377
0378
0379
0380
0381
0382 IMPLICIT NONE
0383
0384
0385 #include "EEPARAMS.h"
0386 #include "SIZE.h"
0387
0388
0389
0390
0391
0392
0393
0394
0395
0396
0397
0398 CHARACTER*(*) active_var_file
0399 _RL active_var(*)
0400 _RL g_active_var(*)
0401 INTEGER active_var_length
0402 INTEGER iRec
0403 LOGICAL lAdInit
0404 INTEGER myOptimIter
0405 INTEGER myThid
0406 _RL dummy
0407 _RL g_dummy
0408
0409
0410 INTEGER ILNBLNK
0411 EXTERNAL ILNBLNK
0412
0413
0414 CHARACTER*(2) pref
de57a2ec4b Mart*0415 CHARACTER*(MAX_LEN_FNAM) fname
04904a066e Timo*0416 INTEGER il
0417
0418
0419 pref = 'g_'
0420 il = ILNBLNK( active_var_file )
de57a2ec4b Mart*0421 WRITE(fname,'(2A)') pref, active_var_file(1:il)
04904a066e Timo*0422
0423 CALL ACTIVE_READ_1D_RL(
0424 & active_var_file, active_var, active_var_length,
0425 & lAdInit, iRec,
0426 & FORWARD_SIMULATION, myOptimIter, myThid )
0427
0428 CALL ACTIVE_READ_1D_RL(
0429 & fname, g_active_var, active_var_length,
0430 & lAdInit, iRec,
0431 & TANGENT_SIMULATION, myOptimIter, myThid )
0432
0433 RETURN
0434 END
0435
0436
0437
22f0d78f5f Patr*0438
0439
0440 subroutine g_active_write_xy(
0441 I active_var_file,
0442 I active_var,
35d16297ce Patr*0443 I g_active_var,
1c93ccf46e Jean*0444 I iRec,
22f0d78f5f Patr*0445 I myOptimIter,
1c93ccf46e Jean*0446 I myThid,
7109a141b2 Patr*0447 I dummy,
0448 I g_dummy
22f0d78f5f Patr*0449 & )
0450
0451
1c93ccf46e Jean*0452
0453
0454
0455
0456
0457
0458
0459
22f0d78f5f Patr*0460
0461
0462
1c93ccf46e Jean*0463 IMPLICIT NONE
22f0d78f5f Patr*0464
1c93ccf46e Jean*0465
22f0d78f5f Patr*0466 #include "EEPARAMS.h"
0467 #include "SIZE.h"
0468
1c93ccf46e Jean*0469
04904a066e Timo*0470
0471
0472
0473
0474
0475
1c93ccf46e Jean*0476 CHARACTER*(*) active_var_file
0477 _RL active_var(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
0478 _RL g_active_var(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
0479 INTEGER iRec
0480 INTEGER myOptimIter
0481 INTEGER myThid
22f0d78f5f Patr*0482 _RL dummy
7109a141b2 Patr*0483 _RL g_dummy
22f0d78f5f Patr*0484
0485
1c93ccf46e Jean*0486 CHARACTER*(2) pref
de57a2ec4b Mart*0487 CHARACTER*(MAX_LEN_FNAM) fname
1c93ccf46e Jean*0488 INTEGER myNr
0489 LOGICAL globalFile
0490 LOGICAL useCurrentDir
22f0d78f5f Patr*0491
0492
0493 pref = 'g_'
f9d7cbfb72 Ou W*0494 CALL ADD_PREFIX( pref, active_var_file, fname )
1c93ccf46e Jean*0495 myNr = 1
0496 globalFile = .FALSE.
0497 useCurrentDir = .FALSE.
0498
0499 CALL ACTIVE_WRITE_3D_RL(
0500 & active_var_file, active_var, globalFile,
0501 & useCurrentDir, iRec, myNr,
0502 & FORWARD_SIMULATION, myOptimIter, myThid )
0503
0504 CALL ACTIVE_WRITE_3D_RL(
0505 & fname, g_active_var, globalFile,
0506 & useCurrentDir, iRec, myNr,
0507 & TANGENT_SIMULATION, myOptimIter, myThid )
0508
0509 RETURN
0510 END
0511
0512
22f0d78f5f Patr*0513
0514
0515
0516 subroutine g_active_write_xyz(
0517 I active_var_file,
0518 I active_var,
35d16297ce Patr*0519 I g_active_var,
1c93ccf46e Jean*0520 I iRec,
22f0d78f5f Patr*0521 I myOptimIter,
1c93ccf46e Jean*0522 I myThid,
7109a141b2 Patr*0523 I dummy,
0524 I g_dummy
22f0d78f5f Patr*0525 & )
0526
0527
1c93ccf46e Jean*0528
0529
0530
0531
0532
0533
0534
0535
22f0d78f5f Patr*0536
0537
0538
1c93ccf46e Jean*0539 IMPLICIT NONE
22f0d78f5f Patr*0540
1c93ccf46e Jean*0541
22f0d78f5f Patr*0542 #include "EEPARAMS.h"
0543 #include "SIZE.h"
0544
1c93ccf46e Jean*0545
04904a066e Timo*0546
0547
0548
0549
0550
0551
1c93ccf46e Jean*0552 CHARACTER*(*) active_var_file
0553 _RL active_var(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
0554 _RL g_active_var(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
0555 INTEGER iRec
0556 INTEGER myOptimIter
0557 INTEGER myThid
22f0d78f5f Patr*0558 _RL dummy
7109a141b2 Patr*0559 _RL g_dummy
22f0d78f5f Patr*0560
0561
1c93ccf46e Jean*0562 CHARACTER*(2) pref
de57a2ec4b Mart*0563 CHARACTER*(MAX_LEN_FNAM) fname
1c93ccf46e Jean*0564 INTEGER myNr
0565 LOGICAL globalFile
0566 LOGICAL useCurrentDir
22f0d78f5f Patr*0567
0568
0569 pref = 'g_'
f9d7cbfb72 Ou W*0570 CALL ADD_PREFIX( pref, active_var_file, fname )
1c93ccf46e Jean*0571 myNr = Nr
0572 globalFile = .FALSE.
0573 useCurrentDir = .FALSE.
0574
0575 CALL ACTIVE_WRITE_3D_RL(
0576 & active_var_file, active_var, globalFile,
0577 & useCurrentDir, iRec, myNr,
0578 & FORWARD_SIMULATION, myOptimIter, myThid )
0579
0580 CALL ACTIVE_WRITE_3D_RL(
0581 & fname, g_active_var, globalFile,
0582 & useCurrentDir, iRec, myNr,
0583 & TANGENT_SIMULATION, myOptimIter, myThid )
0584
0585 RETURN
0586 END
0587
0588
22f0d78f5f Patr*0589
0590
0591
0592 subroutine g_active_write_xz(
0593 I active_var_file,
0594 I active_var,
35d16297ce Patr*0595 I g_active_var,
1c93ccf46e Jean*0596 I iRec,
22f0d78f5f Patr*0597 I myOptimIter,
1c93ccf46e Jean*0598 I myThid,
7109a141b2 Patr*0599 I dummy,
0600 I g_dummy
22f0d78f5f Patr*0601 & )
0602
0603
1c93ccf46e Jean*0604
0605
0606
0607
0608
0609
0610
0611
22f0d78f5f Patr*0612
0613
0614
1c93ccf46e Jean*0615 IMPLICIT NONE
22f0d78f5f Patr*0616
1c93ccf46e Jean*0617
22f0d78f5f Patr*0618 #include "EEPARAMS.h"
0619 #include "SIZE.h"
0620
1c93ccf46e Jean*0621
04904a066e Timo*0622
0623
0624
0625
0626
0627
1c93ccf46e Jean*0628 CHARACTER*(*) active_var_file
04904a066e Timo*0629 _RL active_var(1-OLx:sNx+OLx,Nr,nSx,nSy)
0630 _RL g_active_var(1-OLx:sNx+OLx,Nr,nSx,nSy)
1c93ccf46e Jean*0631 INTEGER iRec
0632 INTEGER myOptimIter
0633 INTEGER myThid
22f0d78f5f Patr*0634 _RL dummy
7109a141b2 Patr*0635 _RL g_dummy
22f0d78f5f Patr*0636
0637
1c93ccf46e Jean*0638 CHARACTER*(2) pref
de57a2ec4b Mart*0639 CHARACTER*(MAX_LEN_FNAM) fname
1c93ccf46e Jean*0640 INTEGER myNr
0641 LOGICAL globalFile
0642 LOGICAL useCurrentDir
22f0d78f5f Patr*0643
0644
0645 pref = 'g_'
f9d7cbfb72 Ou W*0646 CALL ADD_PREFIX( pref, active_var_file, fname )
1c93ccf46e Jean*0647 myNr = Nr
0648 globalFile = .FALSE.
0649 useCurrentDir = .FALSE.
0650
0651 CALL ACTIVE_WRITE_XZ_RL(
0652 & active_var_file, active_var, globalFile,
0653 & useCurrentDir, iRec, myNr,
0654 & FORWARD_SIMULATION, myOptimIter, myThid )
0655
0656 CALL ACTIVE_WRITE_XZ_RL(
0657 & fname, g_active_var, globalFile,
0658 & useCurrentDir, iRec, myNr,
0659 & TANGENT_SIMULATION, myOptimIter, myThid )
0660
0661 RETURN
0662 END
0663
0664
22f0d78f5f Patr*0665
0666
0667
0668 subroutine g_active_write_yz(
0669 I active_var_file,
0670 I active_var,
35d16297ce Patr*0671 I g_active_var,
1c93ccf46e Jean*0672 I iRec,
22f0d78f5f Patr*0673 I myOptimIter,
1c93ccf46e Jean*0674 I myThid,
7109a141b2 Patr*0675 I dummy,
0676 I g_dummy
22f0d78f5f Patr*0677 & )
0678
0679
1c93ccf46e Jean*0680
0681
0682
0683
0684
0685
0686
0687
22f0d78f5f Patr*0688
0689
0690
1c93ccf46e Jean*0691 IMPLICIT NONE
22f0d78f5f Patr*0692
1c93ccf46e Jean*0693
22f0d78f5f Patr*0694 #include "EEPARAMS.h"
0695 #include "SIZE.h"
0696
1c93ccf46e Jean*0697
04904a066e Timo*0698
0699
0700
0701
0702
0703
1c93ccf46e Jean*0704 CHARACTER*(*) active_var_file
04904a066e Timo*0705 _RL active_var(1-OLy:sNy+OLy,Nr,nSx,nSy)
0706 _RL g_active_var(1-OLy:sNy+OLy,Nr,nSx,nSy)
1c93ccf46e Jean*0707 INTEGER iRec
0708 INTEGER myOptimIter
0709 INTEGER myThid
22f0d78f5f Patr*0710 _RL dummy
7109a141b2 Patr*0711 _RL g_dummy
22f0d78f5f Patr*0712
0713
1c93ccf46e Jean*0714 CHARACTER*(2) pref
de57a2ec4b Mart*0715 CHARACTER*(MAX_LEN_FNAM) fname
1c93ccf46e Jean*0716 INTEGER myNr
0717 LOGICAL globalFile
0718 LOGICAL useCurrentDir
22f0d78f5f Patr*0719
0720
0721 pref = 'g_'
f9d7cbfb72 Ou W*0722 CALL ADD_PREFIX( pref, active_var_file, fname )
1c93ccf46e Jean*0723 myNr = Nr
0724 globalFile = .FALSE.
0725 useCurrentDir = .FALSE.
0726
0727 CALL ACTIVE_WRITE_YZ_RL(
0728 & active_var_file, active_var, globalFile,
0729 & useCurrentDir, iRec, myNr,
0730 & FORWARD_SIMULATION, myOptimIter, myThid )
0731
0732 CALL ACTIVE_WRITE_YZ_RL(
0733 & fname, g_active_var, globalFile,
0734 & useCurrentDir, iRec, myNr,
0735 & TANGENT_SIMULATION, myOptimIter, myThid )
0736
0737 RETURN
0738 END
04904a066e Timo*0739
0740
0741
0742
0743
0744 subroutine g_active_write_1d(
0745 I active_var_file,
0746 I active_var,
0747 I g_active_var,
0748 I active_var_length,
0749 I iRec,
0750 I myOptimIter,
0751 I myThid,
0752 I dummy,
0753 I g_dummy
0754 & )
0755
0756
0757
0758
0759
0760
0761
0762
0763
0764
0765
0766
0767
0768 IMPLICIT NONE
0769
0770
0771 #include "EEPARAMS.h"
0772 #include "SIZE.h"
0773
0774
0775
0776
0777
0778
0779
0780
0781
0782 CHARACTER*(*) active_var_file
0783 _RL active_var(*)
0784 _RL g_active_var(*)
0785 INTEGER active_var_length
0786 INTEGER iRec
0787 INTEGER myOptimIter
0788 INTEGER myThid
0789 _RL dummy
0790 _RL g_dummy
0791
0792
0793 INTEGER ILNBLNK
0794 EXTERNAL ILNBLNK
0795
0796
0797 CHARACTER*(2) pref
de57a2ec4b Mart*0798 CHARACTER*(MAX_LEN_FNAM) fname
04904a066e Timo*0799 INTEGER il
0800
0801
0802 pref = 'g_'
0803 il = ILNBLNK( active_var_file )
de57a2ec4b Mart*0804 WRITE(fname,'(2A)') pref, active_var_file(1:il)
04904a066e Timo*0805
0806 CALL ACTIVE_WRITE_1D_RL(
0807 & active_var_file, active_var, active_var_length,
0808 & iRec, FORWARD_SIMULATION, myOptimIter, myThid )
0809
0810 CALL ACTIVE_WRITE_1D_RL(
0811 & fname, g_active_var, active_var_length,
0812 & iRec, TANGENT_SIMULATION, myOptimIter, myThid )
0813
0814 RETURN
0815 END