Ignore:
Timestamp:
Aug 13, 2025, 7:53:49 PM (4 months ago)
Author:
gmilcareck
Message:

Remove all "call abort" and "stop" statement in LMDZ.GENERIC and replacing them by call abort_physic().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/aeronostd/photochemistry_asis.F90

    r3701 r3893  
    132132       print*,'set jonline=.false. in callphys.def'
    133133       print*,'or set photolysis reactions in monoreact file'
    134        call abort
     134       call abort_physic("photochemistry","Jonline cannot run without photolysis",1)
    135135     end if
    136136     call init_photolysis(nlayer,nreact)     ! on-line photolysis
     
    296296   call dgesv(nesp,1,mat,nesp,indx,cnew,nesp,code)
    297297#else
    298    write(*,*) "photochemistry_asis error, missing LAPACK routine dgesv"
    299    call abort
     298   call abort_physic("photochemistry","missing LAPACK routine dgesv",1)
    300299#endif
    301300
     
    412411      call dgesv(nesp,1,mat,nesp,indx,cnew,nesp,code)
    413412#else
    414    write(*,*) "photochemistry_asis error, missing LAPACK routine dgesv"
    415    call abort
     413   call abort_physic("photochemistry","missing LAPACK routine dgesv",1)
    416414#endif
    417415
     
    568566    print*, 'Please check the reaction ',ireact
    569567    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)
    571569  end if
    572570
     
    599597    print*, 'Please check the reaction ',ireact
    600598    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)
    602600  end if
    603601
     
    625623    print*, 'n4_hard_coding    = ', n4_hard_coding
    626624    print*, 'n3_hard_coding    = ', n3_hard_coding
    627     call abort
     625    call abort_physic("photochemistry","wrong dimensions in reactionrates",1)
    628626 end if
    629627 if ((nb_hv /= nb_hv_max)         .or.  &
     
    640638    print*, 'nb_pfunc2_max = ', nb_pfunc2_max
    641639    print*, 'nb_pfunc3_max = ', nb_pfunc3_max
    642     call abort
     640    call abort_physic("photochemistry","wrong dimensions in reaction rates",1)
    643641 end if
    644642firstcall = .false.
     
    913911      print*, 'WARNING: ', chemnoms(iq),' is only destroy'
    914912    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)
    917914    end if
    918915  end if
     
    950947   print*, 'nb_phot_hv_max    = ', nb_phot_hv_max
    951948   print*, 'nb_hv_max         = ', nb_hv_max
    952    call abort
     949   call abort_physic("photochemistry","wrong dimensions in indice",1)
    953950end if 
    954951
     
    10791076            n = n + 1
    10801077            if (n>nmax) then
    1081               print*,'Error in split_str: to much words'
     1078              print*,'Error in split_str: too much words'
    10821079              print*,'limit = ',nmax
    10831080              print*,'change it, if you want, with increasing nmax'
    10841081              print*,'line is:',line
    1085               call abort
     1082              call abort_physic("photochemistry","too much words in split_str",1)
    10861083            end if
    10871084            read(line,*,iostat=ios) buf(1:n)  ! use list-directed input
     
    11411138                vtype = "v4"
    11421139            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)
    11461141            end if
    11471142        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)
    11511144        end if
    11521145
     
    11921185           write(*,*)'28/03/2025: New default value is network.def (in simulation folder)'
    11931186           write(*,*)'Former default is chemnetwork/reactfile'
    1194            call abort
     1187           call abort_physic("photochemistry","Unable to open chemical reaction file",1)
    11951188        end if
    11961189   
     
    12271220                          .and. trim(words(2))/=trim(words(3))) nb_reaction_3 = nb_reaction_3 + 1
    12281221            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)
    12321223            end if
    12331224
     
    12501241              print*, 'It should be 0 for photolysis reations and 1 or 2 for the others'
    12511242              print*, 'And not : ', typerate
    1252               call abort
     1243              call abort_physic("photochemistry","wrong index coefficient rate line",1)
    12531244            end if
    12541245
     
    13141305           write(*,*)'28/03/2025: New default value is network.def (in simulation folder)'
    13151306           write(*,*)'Former default is chemnetwork/reactfile'
    1316            call abort
     1307           call abort_physic("photochemistry","Unable to open chemical reaction file",1)
    13171308        end if
    13181309
     
    13371328                nb_phot = nb_phot + 1
    13381329            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)
    13421331            end if
    13431332
     
    13451334            if (trim(paramline)=='') then
    13461335                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)
    13481337            else
    13491338                read(paramline,*) reactions(ireact)%rtype
     
    13931382                    else
    13941383                        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)
    13961385                    end if
    13971386                end if
     
    15091498                print*,'Error in photochemistry_asis (get_react):'
    15101499                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)
    15121501            end if
    15131502       
Note: See TracChangeset for help on using the changeset viewer.