Dear Sir/Madam,
I compiled WRF-Chem V3.5.1 with KPP successfully and tried to run wrf.exe.
However, I got this error at the beginning of calling kpp_mechanism_driver:
It's related to this file WRFV3/chem/KPP/kpp/kpp-2.1/int/rosenbrock_tlm.f90:
The model fails in solving the chemical equations.
As Gabriele suggested on https://groups.google.com/a/ucar.edu/forum/?hl=en#!topic/wrf-chem-run/xKd6GHTYPQ4, I checked the input files.
I just compiled the WRF-Chem without KPP and used the same input files. It works fine.
So, how to debug what's wrong with KPP?
Versions:
byacc-20180609, flex-2.5.3, ifort-17.0.4.196, netcdf-4.6.2, hdf5-1.8.21
Enviornment:
I compiled WRF-Chem V3.5.1 with KPP successfully and tried to run wrf.exe.
However, I got this error at the beginning of calling kpp_mechanism_driver:
Code:
Forced exit from Rosenbrock due to the following error:
No of steps exceeds maximum bound
T= 72.0000000000000 and H= 72.0000000000000
Forced exit from Rosenbrock due to the following error:
No of steps exceeds maximum bound
T= 72.0000000000000 and H= 72.0000000000000
It's related to this file WRFV3/chem/KPP/kpp/kpp-2.1/int/rosenbrock_tlm.f90:
Code:
565 IF ( Nstp > Max_no_steps ) THEN ! Too many steps
566 CALL ros_ErrorMsg(-6,T,H,IERR)
567 RETURN
568 END IF
569 IF ( ((T+0.1d0*H) == T).OR.(H <= Roundoff) ) THEN ! Step size too small
570 CALL ros_ErrorMsg(-7,T,H,IERR)
571 RETURN
572 END IF
The model fails in solving the chemical equations.
As Gabriele suggested on https://groups.google.com/a/ucar.edu/forum/?hl=en#!topic/wrf-chem-run/xKd6GHTYPQ4, I checked the input files.
I just compiled the WRF-Chem without KPP and used the same input files. It works fine.
So, how to debug what's wrong with KPP?
Versions:
byacc-20180609, flex-2.5.3, ifort-17.0.4.196, netcdf-4.6.2, hdf5-1.8.21
Enviornment:
Code:
((EM_CORE=WRF_EM_CORE=WRF_CHEM=1))
((NMM_CORE=WRF_NMM_CORE=0))
export EM_CORE WRF_EM_CORE WRF_CHEM
export NMM_CORE WRF_NMM_CORE
export NETCDF4=1
export WRFIO_NCD_LARGE_FILE_SUPPORT=1
export PATH="${software}/byacc-20180609:${software}/flex-2.5.3/bin:$PATH"
export YACC="${software}/byacc-20180609/yacc -d"
export FLEX=${software}/flex-2.5.3/bin/flex
export FLEX_LIB_DIR=${software}/flex-2.5.3/lib