File indexing completed on 2018-03-02 18:37:51 UTC
view on githubraw file Latest commit add29e06 on 2018-01-31 20:35:05 UTC
97d49af5d4 Jean*0001 #include "AUTODIFF_OPTIONS.h"
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
db46a9c7cf Jean*0015
97d49af5d4 Jean*0016
0017
0018
0019
0020
0021
0022 SUBROUTINE ACTIVE_READ_GEN_RL(
0023 I activeVar_file,
0024 O active_var,
0025 I arrShape, myNr,
0026 I iRec,
0027 I globalFile,
0028 I useCurrentDir,
0029 I lAdInit,
0030 I myOptimIter,
0031 I myThid,
0032 I dummy )
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045 IMPLICIT NONE
0046
0047
0048 #include "EEPARAMS.h"
0049
0050
0051
0052
0053
0054
0055
0056
0057
0058
0059
0060
0061
0062
0063
0064 CHARACTER*(*) activeVar_file
0065 _RL active_var(*)
0066 CHARACTER*(2) arrShape
0067 INTEGER myNr
0068 INTEGER iRec
0069 LOGICAL globalFile
0070 LOGICAL useCurrentDir
0071 LOGICAL lAdInit
0072 INTEGER myOptimIter
0073 INTEGER myThid
0074 _RL dummy
0075
0076
0077
0078
0079 IF ( arrShape.EQ.'XY' ) THEN
0080
0081 CALL ACTIVE_READ_3D_RL(
0082 & activeVar_file, active_var, globalFile,
0083 & useCurrentDir, lAdInit, iRec, myNr,
0084 & FORWARD_SIMULATION, myOptimIter, myThid )
0085
0086 ELSEIF ( arrShape.EQ.'XZ' ) THEN
0087
0088 CALL ACTIVE_READ_XZ_RL(
0089 & activeVar_file, active_var, globalFile,
0090 & useCurrentDir, lAdInit, iRec, myNr,
0091 & FORWARD_SIMULATION, myOptimIter, myThid )
0092
0093 ELSEIF ( arrShape.EQ.'YZ' ) THEN
0094
0095 CALL ACTIVE_READ_YZ_RL(
0096 & activeVar_file, active_var, globalFile,
0097 & useCurrentDir, lAdInit, iRec, myNr,
0098 & FORWARD_SIMULATION, myOptimIter, myThid )
0099
0100 ELSE
0101 STOP
0102 & 'ABNORMAL END: S/R ACTIVE_READ_GEN_RL: invalid arrShape'
0103 ENDIF
0104
0105 RETURN
0106 END
0107
0108
0109
0110
0111
0112 SUBROUTINE ACTIVE_READ_GEN_RS(
0113 I activeVar_file,
0114 O active_var,
0115 I arrShape, myNr,
0116 I iRec,
0117 I globalFile,
0118 I useCurrentDir,
0119 I lAdInit,
0120 I myOptimIter,
0121 I myThid,
0122 I dummy )
0123
0124
0125
0126
0127
0128
0129
0130
0131
0132
0133
0134
0135 IMPLICIT NONE
0136
0137
0138 #include "EEPARAMS.h"
0139
0140
0141
0142
0143
0144
0145
0146
0147
0148
0149
0150
0151
0152
0153
0154 CHARACTER*(*) activeVar_file
0155 _RS active_var(*)
0156 CHARACTER*(2) arrShape
0157 INTEGER myNr
0158 INTEGER iRec
0159 LOGICAL globalFile
0160 LOGICAL useCurrentDir
0161 LOGICAL lAdInit
0162 INTEGER myOptimIter
0163 INTEGER myThid
0164 _RS dummy
0165
0166
0167
0168
0169 IF ( arrShape.EQ.'XY' ) THEN
0170
0171 CALL ACTIVE_READ_3D_RS(
0172 & activeVar_file, active_var, globalFile,
0173 & useCurrentDir, lAdInit, iRec, myNr,
0174 & FORWARD_SIMULATION, myOptimIter, myThid )
0175
0176 ELSEIF ( arrShape.EQ.'XZ' ) THEN
0177
0178 CALL ACTIVE_READ_XZ_RS(
0179 & activeVar_file, active_var, globalFile,
0180 & useCurrentDir, lAdInit, iRec, myNr,
0181 & FORWARD_SIMULATION, myOptimIter, myThid )
0182
0183 ELSEIF ( arrShape.EQ.'YZ' ) THEN
0184
0185 CALL ACTIVE_READ_YZ_RS(
0186 & activeVar_file, active_var, globalFile,
0187 & useCurrentDir, lAdInit, iRec, myNr,
0188 & FORWARD_SIMULATION, myOptimIter, myThid )
0189
0190 ELSE
0191 STOP
0192 & 'ABNORMAL END: S/R ACTIVE_READ_GEN_RS: invalid arrShape'
0193 ENDIF
0194
0195 RETURN
0196 END
0197
0198
0199
0200
0201
0202 SUBROUTINE ACTIVE_WRITE_GEN_RL(
0203 I activeVar_file,
0204 I active_var,
0205 I arrShape, myNr,
0206 I iRec,
0207 I useCurrentDir,
0208 I myOptimIter,
0209 I myThid,
0210 I dummy )
0211
0212
0213
0214
0215
0216
0217
0218
0219
0220
0221
0222
0223 IMPLICIT NONE
0224
0225
0226 #include "EEPARAMS.h"
0227
0228
0229
0230
0231
0232
0233
0234
0235
0236
0237
0238
0239 CHARACTER*(*) activeVar_file
0240 _RL active_var(*)
0241 CHARACTER*(2) arrShape
0242 INTEGER myNr
0243 INTEGER iRec
0244 LOGICAL useCurrentDir
0245 INTEGER myOptimIter
0246 INTEGER myThid
0247 _RL dummy
0248
0249
0250
0251 LOGICAL globalFile
0252
0253
0254 globalFile = .FALSE.
0255 IF ( arrShape.EQ.'XY' ) THEN
0256
0257 CALL ACTIVE_WRITE_3D_RL(
0258 & activeVar_file, active_var, globalFile,
0259 & useCurrentDir, iRec, myNr,
0260 & FORWARD_SIMULATION, myOptimIter, myThid )
0261
0262 ELSEIF ( arrShape.EQ.'XZ' ) THEN
0263
0264 CALL ACTIVE_WRITE_XZ_RL(
0265 & activeVar_file, active_var, globalFile,
0266 & useCurrentDir, iRec, myNr,
0267 & FORWARD_SIMULATION, myOptimIter, myThid )
0268
0269 ELSEIF ( arrShape.EQ.'YZ' ) THEN
0270
0271 CALL ACTIVE_WRITE_YZ_RL(
0272 & activeVar_file, active_var, globalFile,
0273 & useCurrentDir, iRec, myNr,
0274 & FORWARD_SIMULATION, myOptimIter, myThid )
0275
0276 ELSE
0277 STOP
0278 & 'ABNORMAL END: S/R ACTIVE_WRITE_GEN_RL: invalid arrShape'
0279 ENDIF
0280
0281 RETURN
0282 END
0283
0284
0285
0286
0287
0288 SUBROUTINE ACTIVE_WRITE_GEN_RS(
0289 I activeVar_file,
0290 I active_var,
0291 I arrShape, myNr,
0292 I iRec,
0293 I useCurrentDir,
0294 I myOptimIter,
0295 I myThid,
0296 I dummy )
0297
0298
0299
0300
0301
0302
0303
0304
0305
0306
0307
0308
0309 IMPLICIT NONE
0310
0311
0312 #include "EEPARAMS.h"
0313
0314
0315
0316
0317
0318
0319
0320
0321
0322
0323
0324
0325 CHARACTER*(*) activeVar_file
0326 _RS active_var(*)
0327 CHARACTER*(2) arrShape
0328 INTEGER myNr
0329 INTEGER iRec
0330 LOGICAL useCurrentDir
0331 INTEGER myOptimIter
0332 INTEGER myThid
0333 _RS dummy
0334
0335
0336
0337 LOGICAL globalFile
0338
0339
0340 globalFile = .FALSE.
0341 IF ( arrShape.EQ.'XY' ) THEN
0342
0343 CALL ACTIVE_WRITE_3D_RS(
0344 & activeVar_file, active_var, globalFile,
0345 & useCurrentDir, iRec, myNr,
0346 & FORWARD_SIMULATION, myOptimIter, myThid )
0347
0348 ELSEIF ( arrShape.EQ.'XZ' ) THEN
0349
0350 CALL ACTIVE_WRITE_XZ_RS(
0351 & activeVar_file, active_var, globalFile,
0352 & useCurrentDir, iRec, myNr,
0353 & FORWARD_SIMULATION, myOptimIter, myThid )
0354
0355 ELSEIF ( arrShape.EQ.'YZ' ) THEN
0356
0357 CALL ACTIVE_WRITE_YZ_RS(
0358 & activeVar_file, active_var, globalFile,
0359 & useCurrentDir, iRec, myNr,
0360 & FORWARD_SIMULATION, myOptimIter, myThid )
0361
0362 ELSE
0363 STOP
0364 & 'ABNORMAL END: S/R ACTIVE_WRITE_GEN_RS: invalid arrShape'
0365 ENDIF
0366
0367 RETURN
0368 END