- Timestamp:
- Aug 13, 2025, 7:53:49 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/aeronostd/photochemistry_asis.F90
r3701 r3893 132 132 print*,'set jonline=.false. in callphys.def' 133 133 print*,'or set photolysis reactions in monoreact file' 134 call abort 134 call abort_physic("photochemistry","Jonline cannot run without photolysis",1) 135 135 end if 136 136 call init_photolysis(nlayer,nreact) ! on-line photolysis … … 296 296 call dgesv(nesp,1,mat,nesp,indx,cnew,nesp,code) 297 297 #else 298 write(*,*) "photochemistry_asis error, missing LAPACK routine dgesv" 299 call abort 298 call abort_physic("photochemistry","missing LAPACK routine dgesv",1) 300 299 #endif 301 300 … … 412 411 call dgesv(nesp,1,mat,nesp,indx,cnew,nesp,code) 413 412 #else 414 write(*,*) "photochemistry_asis error, missing LAPACK routine dgesv" 415 call abort 413 call abort_physic("photochemistry","missing LAPACK routine dgesv",1) 416 414 #endif 417 415 … … 568 566 print*, 'Please check the reaction ',ireact 569 567 if (ireact>nreact) print*, 'Please check the reaction count into the code beacause ireact > nreact is not possible' 570 call abort 568 call abort_physic("photochemistry","ireact>nreact is not possible",1) 571 569 end if 572 570 … … 599 597 print*, 'Please check the reaction ',ireact 600 598 if (ireact>nreact) print*, 'Please check the reaction count into the code beacause ireact > nreact is not possible' 601 call abort 599 call abort_physic("photochemistry","ireact>nreact is not possible",1) 602 600 end if 603 601 … … 625 623 print*, 'n4_hard_coding = ', n4_hard_coding 626 624 print*, 'n3_hard_coding = ', n3_hard_coding 627 call abort 625 call abort_physic("photochemistry","wrong dimensions in reactionrates",1) 628 626 end if 629 627 if ((nb_hv /= nb_hv_max) .or. & … … 640 638 print*, 'nb_pfunc2_max = ', nb_pfunc2_max 641 639 print*, 'nb_pfunc3_max = ', nb_pfunc3_max 642 call abort 640 call abort_physic("photochemistry","wrong dimensions in reaction rates",1) 643 641 end if 644 642 firstcall = .false. … … 913 911 print*, 'WARNING: ', chemnoms(iq),' is only destroy' 914 912 else 915 print*, 'Error in indice: bad value in specheckr or specheckp' 916 call abort 913 call abort_physic("photochemistry", "Error in indice: bad value in specheckr or specheckp",1) 917 914 end if 918 915 end if … … 950 947 print*, 'nb_phot_hv_max = ', nb_phot_hv_max 951 948 print*, 'nb_hv_max = ', nb_hv_max 952 call abort 949 call abort_physic("photochemistry","wrong dimensions in indice",1) 953 950 end if 954 951 … … 1079 1076 n = n + 1 1080 1077 if (n>nmax) then 1081 print*,'Error in split_str: to much words'1078 print*,'Error in split_str: too much words' 1082 1079 print*,'limit = ',nmax 1083 1080 print*,'change it, if you want, with increasing nmax' 1084 1081 print*,'line is:',line 1085 call abort 1082 call abort_physic("photochemistry","too much words in split_str",1) 1086 1083 end if 1087 1084 read(line,*,iostat=ios) buf(1:n) ! use list-directed input … … 1141 1138 vtype = "v4" 1142 1139 else 1143 print*,'Error in photochemistry_asis (find_vtype):' 1144 print*,'3 different reactants not implemented' 1145 call abort 1140 call abort_physic("photochemistry","(find_vtype): 3 different reactants not implemented",1) 1146 1141 end if 1147 1142 else 1148 print*,'Error in photochemistry_asis (find_vtype):' 1149 print*,'more than 2 different reactants not implemented' 1150 call abort 1143 call abort_physic("photochemistry","(find_vtype): more than 2 different reactants not implemented",1) 1151 1144 end if 1152 1145 … … 1192 1185 write(*,*)'28/03/2025: New default value is network.def (in simulation folder)' 1193 1186 write(*,*)'Former default is chemnetwork/reactfile' 1194 call abort 1187 call abort_physic("photochemistry","Unable to open chemical reaction file",1) 1195 1188 end if 1196 1189 … … 1227 1220 .and. trim(words(2))/=trim(words(3))) nb_reaction_3 = nb_reaction_3 + 1 1228 1221 else 1229 print*,'Error in photochemistry_asis (count_react):' 1230 print*,'vtype not found' 1231 call abort 1222 call abort_physic("photochemistry","(count_react): vtype not found",1) 1232 1223 end if 1233 1224 … … 1250 1241 print*, 'It should be 0 for photolysis reations and 1 or 2 for the others' 1251 1242 print*, 'And not : ', typerate 1252 call abort 1243 call abort_physic("photochemistry","wrong index coefficient rate line",1) 1253 1244 end if 1254 1245 … … 1314 1305 write(*,*)'28/03/2025: New default value is network.def (in simulation folder)' 1315 1306 write(*,*)'Former default is chemnetwork/reactfile' 1316 call abort 1307 call abort_physic("photochemistry","Unable to open chemical reaction file",1) 1317 1308 end if 1318 1309 … … 1337 1328 nb_phot = nb_phot + 1 1338 1329 else 1339 print*,'Error in photochemistry_asis (get_react):' 1340 print*,'vtype not found' 1341 call abort 1330 call abort_physic("photochemistry","(get_react): vtype not found",1) 1342 1331 end if 1343 1332 … … 1345 1334 if (trim(paramline)=='') then 1346 1335 print*, 'Error in reactfile: where are the parameters - line',ilines 1347 call abort 1336 call abort_physic("photochemistry","Error in reactfile, the parameters - line not found",1) 1348 1337 else 1349 1338 read(paramline,*) reactions(ireact)%rtype … … 1393 1382 else 1394 1383 print*, 'Error in reactfile: just only one specie can be after M corresponding to the third body - line',ilines 1395 call abort 1384 call abort_physic("Error in reactfile","just only one specie can be after M corresponding to the third body - line",1) 1396 1385 end if 1397 1386 end if … … 1509 1498 print*,'Error in photochemistry_asis (get_react):' 1510 1499 print*,'vtype',reactions(ireact)%vtype,' not implemented' 1511 call abort 1500 call abort_physic("Error in photochemistry_asis (get_react)", "vtype',reactions(ireact)%vtype,' not implemented",1) 1512 1501 end if 1513 1502
Note: See TracChangeset
for help on using the changeset viewer.
