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