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