File indexing completed on 2024-10-29 05:11:02 UTC
view on githubraw file Latest commit c9bf1633 on 2024-10-29 03:40:17 UTC
367ecbf006 Gael*0001 #include "PROFILES_OPTIONS.h"
6e4c90fea3 Patr*0002
c9bf163375 Ivan*0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022 SUBROUTINE G_ACTIVE_READ_PROFILE(
6e4c90fea3 Patr*0023 I active_num_file,
0024 I nactive_var,
0025 O active_var,
c9bf163375 Ivan*0026 I g_active_var,
6e4c90fea3 Patr*0027 I active_varnum,
0028 I irec,
0029 I lAdInit,
0030 I myOptimIter,
71a5587721 Gael*0031 I bi,
0032 I bj,
c9bf163375 Ivan*0033 I myThid,
0034 I dummy
6e4c90fea3 Patr*0035 & )
0036
c9bf163375 Ivan*0037
0038
0039
6e4c90fea3 Patr*0040
c9bf163375 Ivan*0041
0042 IMPLICIT NONE
6e4c90fea3 Patr*0043
0044 #include "EEPARAMS.h"
0045 #include "SIZE.h"
0046 #ifdef ALLOW_PROFILES
6328b73337 Gael*0047 # include "PROFILES_SIZE.h"
0048 # include "profiles.h"
6e4c90fea3 Patr*0049 #endif
0050
c9bf163375 Ivan*0051
0052
0053
0054
0055
0056
0057
0058
0059
0060 INTEGER active_num_file
0061 INTEGER nactive_var
0062 INTEGER active_varnum
0063 INTEGER irec
0064 INTEGER myOptimIter
0065 INTEGER bi, bj, myThid
0066 LOGICAL lAdInit
0067
0068 _RL active_var(nactive_var)
0069 _RL g_active_var(nactive_var)
6e4c90fea3 Patr*0070 _RL dummy
0071
0072 #ifdef ALLOW_PROFILES
c9bf163375 Ivan*0073
6e4c90fea3 Patr*0074
c9bf163375 Ivan*0075 CALL ACTIVE_READ_PROFILE_RL( fidforward(active_num_file,bi,bj),
6e4c90fea3 Patr*0076 & active_num_file,
71a5587721 Gael*0077 & nactive_var, active_var, active_varnum, lAdInit,
0078 & irec, prof_ind_glob(active_num_file,irec,bi,bj),
c9bf163375 Ivan*0079 & FORWARD_SIMULATION, myOptimIter, bi, bj, myThid )
6e4c90fea3 Patr*0080
c9bf163375 Ivan*0081 CALL ACTIVE_READ_PROFILE_RL( fidtangent(active_num_file,bi,bj),
6e4c90fea3 Patr*0082 & active_num_file,
71a5587721 Gael*0083 & nactive_var, g_active_var,active_varnum, lAdInit,
0084 & irec, prof_ind_glob(active_num_file,irec,bi,bj),
c9bf163375 Ivan*0085 & TANGENT_SIMULATION, myOptimIter, bi, bj, myThid )
6e4c90fea3 Patr*0086
0087 #endif
0088
c9bf163375 Ivan*0089 RETURN
0090 END
6e4c90fea3 Patr*0091
c9bf163375 Ivan*0092
0093
0094
0095
0096 SUBROUTINE G_ACTIVE_WRITE_PROFILE(
6e4c90fea3 Patr*0097 I active_num_file,
0098 I nactive_var,
0099 I active_var,
c9bf163375 Ivan*0100 I g_active_var,
6e4c90fea3 Patr*0101 I active_varnum,
0102 I irec,
0103 I myOptimIter,
71a5587721 Gael*0104 I bi,
0105 I bj,
c9bf163375 Ivan*0106 I myThid,
6e4c90fea3 Patr*0107 I dummy,
0108 I g_dummy
0109 & )
0110
c9bf163375 Ivan*0111
0112
0113
6e4c90fea3 Patr*0114
c9bf163375 Ivan*0115
0116 IMPLICIT NONE
6e4c90fea3 Patr*0117
0118 #include "EEPARAMS.h"
0119 #include "SIZE.h"
0120 #ifdef ALLOW_PROFILES
6328b73337 Gael*0121 # include "PROFILES_SIZE.h"
0122 # include "profiles.h"
6e4c90fea3 Patr*0123 #endif
0124
c9bf163375 Ivan*0125
0126
0127
0128
0129
0130
0131
0132 INTEGER nactive_var,active_num_file
0133 _RL active_var(nactive_var)
0134 _RL g_active_var(nactive_var)
0135 INTEGER irec,active_varnum
0136 INTEGER myOptimIter
0137 INTEGER bi,bj,myThid
6e4c90fea3 Patr*0138 _RL dummy
0139 _RL g_dummy
c9bf163375 Ivan*0140
6e4c90fea3 Patr*0141
0142 #ifdef ALLOW_PROFILES
c9bf163375 Ivan*0143
6e4c90fea3 Patr*0144
c9bf163375 Ivan*0145 CALL ACTIVE_WRITE_PROFILE_RL( fidforward(active_num_file,bi,bj),
6e4c90fea3 Patr*0146 & active_num_file,
71a5587721 Gael*0147 & nactive_var, active_var, active_varnum,
0148 & irec, prof_ind_glob(active_num_file,irec,bi,bj),
c9bf163375 Ivan*0149 & FORWARD_SIMULATION, myOptimIter, bi, bj, myThid )
6e4c90fea3 Patr*0150
c9bf163375 Ivan*0151 CALL ACTIVE_WRITE_PROFILE_RL( fidtangent(active_num_file,bi,bj),
6e4c90fea3 Patr*0152 & active_num_file,
71a5587721 Gael*0153 & nactive_var, g_active_var, active_varnum,
0154 & irec, prof_ind_glob(active_num_file,irec,bi,bj),
c9bf163375 Ivan*0155 & TANGENT_SIMULATION, myOptimIter, bi, bj, myThid )
6e4c90fea3 Patr*0156
0157 #endif
0158
c9bf163375 Ivan*0159 RETURN
0160 END