Changeset 2323
- Timestamp:
- Jul 26, 2017 12:57:38 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/wind_turbine_model_mod.f90
r2322 r2323 26 26 ! ----------------- 27 27 ! $Id$ 28 ! Change unit number of file WTM_DATA from 201 to 90 29 ! 30 ! 2322 2017-07-26 08:30:28Z Giersch 28 31 ! Bugfix of error message and assign error numbers 29 32 ! … … 1096 1099 !-- layout of the rotor blade and the lift and drag tables: 1097 1100 1098 OPEN ( 201, FILE='WTM_DATA', STATUS='OLD', FORM='FORMATTED', IOSTAT=ierrn )1101 OPEN ( 90, FILE='WTM_DATA', STATUS='OLD', FORM='FORMATTED', IOSTAT=ierrn ) 1099 1102 1100 1103 IF ( ierrn /= 0 ) THEN … … 1107 1110 dlen = 0 1108 1111 1109 READ ( 201, '(3/)' )1112 READ ( 90, '(3/)' ) 1110 1113 1111 1114 rloop3: DO 1112 READ ( 201, *, IOSTAT=ierrn ) chmess1115 READ ( 90, *, IOSTAT=ierrn ) chmess 1113 1116 IF ( ierrn < 0 .OR. chmess == '#' .OR. chmess == '') EXIT rloop3 1114 1117 dlen = dlen + 1 … … 1118 1121 1119 1122 DO jj = 1,dlen+1 1120 BACKSPACE ( 201, IOSTAT=ierrn )1123 BACKSPACE ( 90, IOSTAT=ierrn ) 1121 1124 ENDDO 1122 1125 1123 1126 DO jj = 1,dlen 1124 READ ( 201, * ) trad1(jj), trad2(jj), ttoint1(jj), ttoint2(jj)1127 READ ( 90, * ) trad1(jj), trad2(jj), ttoint1(jj), ttoint2(jj) 1125 1128 ENDDO 1126 1129 … … 1130 1133 dlen = 0 1131 1134 1132 READ ( 201, '(3/)')1135 READ ( 90, '(3/)') 1133 1136 1134 1137 rloop1: DO 1135 READ ( 201, *, IOSTAT=ierrn ) chmess1138 READ ( 90, *, IOSTAT=ierrn ) chmess 1136 1139 IF ( ierrn < 0 .OR. chmess == '#' .OR. chmess == '') EXIT rloop1 1137 1140 dlen = dlen + 1 … … 1140 1143 ALLOCATE( lrd(1:dlen), ard(1:dlen), crd(1:dlen) ) 1141 1144 DO jj = 1, dlen+1 1142 BACKSPACE ( 201, IOSTAT=ierrn )1145 BACKSPACE ( 90, IOSTAT=ierrn ) 1143 1146 ENDDO 1144 1147 DO jj = 1, dlen 1145 READ ( 201, * ) lrd(jj), ard(jj), crd(jj)1148 READ ( 90, * ) lrd(jj), ard(jj), crd(jj) 1146 1149 ENDDO 1147 1150 … … 1151 1154 dlen = 0 1152 1155 1153 READ ( 201, '(3/)' )1156 READ ( 90, '(3/)' ) 1154 1157 1155 1158 rloop2: DO 1156 READ ( 201, *, IOSTAT=ierrn ) chmess1159 READ ( 90, *, IOSTAT=ierrn ) chmess 1157 1160 IF ( ierrn < 0 .OR. chmess == '#' .OR. chmess == '') EXIT rloop2 1158 1161 dlen = dlen + 1 … … 1163 1166 1164 1167 DO jj = 1,dlen+1 1165 BACKSPACE ( 201, IOSTAT=ierrn )1168 BACKSPACE ( 90, IOSTAT=ierrn ) 1166 1169 ENDDO 1167 1170 1168 1171 DO jj = 1,dlen 1169 READ ( 201, * ) read_cl_cd1172 READ ( 90, * ) read_cl_cd 1170 1173 alpha_attack_tab(jj) = read_cl_cd(1) 1171 1174 DO ii= 1, nairfoils … … 1178 1181 dlenbl = dlen 1179 1182 1180 CLOSE ( 201)1183 CLOSE ( 90 ) 1181 1184 1182 1185 !
Note: See TracChangeset
for help on using the changeset viewer.