Hello,
I am trying to recompile WRFv4.5.2 on Derecho after making some small changes to module_bl_ysu.F. For some reason when both YSU and BEP-BEM are active, winds drop to nearly 0 in urban areas (see attached). At fault might be lines 1535-1538 of module_bl_ysu.F:
ad(i,k) = ad(i,k) - a_u2d(i,k)*dt2
ad1(i,k) = ad1(i,k) - a_v2d(i,k)*dt2
f1(i,k) = f1(i,k) + b_u2d(i,k)*dt2
f2(i,k) = f2(i,k) + b_v2d(i,k)*dt2
Where the first half is the already calculated momentum flux and the second half is the addition from bep-bem. I tried changing those lines to this:
if(a_u2d(i,k).and.a_v2d(i,k).ne.0.0) then
ad(i,k) = -a_u2d(i,k)*dt2
ad1(i,k) = -a_v2d(i,k)*dt2
f1(i,k) = b_u2d(i,k)*dt2
f2(i,k) = b_v2d(i,k)*dt2
endif
So that when there is data from bep-bem (in my case only the a_u2d and a_v2d parts exist because of my street directions) only that momentum flux is used instead of adding them together. I'm not sure if this will work to fix the problem, but I can't even test it because making this minor change prevents recompiling WRF (see log, I didn't let it complete once I saw the cascade of errors beginning). I can confirm that with the change reverted WRF compiles fine (option 78, default loaded modules).
The errors- showed up in console, but seemingly not the log:
module_pbl_driver.f90(162): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MODULE_BL_YSU]
USE module_bl_ysu
-------^
module_pbl_driver.f90(1168): error #6632: Keyword arguments are invalid without an explicit interface. [U3D]
U3D=u_phytmp,V3D=v_phytmp,TH3D=th_phy,T3D=t_phy &
---------------^
module_pbl_driver.f90(1168): error #6632: Keyword arguments are invalid without an explicit interface. [V3D]
U3D=u_phytmp,V3D=v_phytmp,TH3D=th_phy,T3D=t_phy &
----------------------------^
module_pbl_driver.f90(1168): error #6632: Keyword arguments are invalid without an explicit interface. [TH3D]
U3D=u_phytmp,V3D=v_phytmp,TH3D=th_phy,T3D=t_phy &
-----------------------------------------^
module_pbl_driver.f90(1168): error #6632: Keyword arguments are invalid without an explicit interface. [T3D]
U3D=u_phytmp,V3D=v_phytmp,TH3D=th_phy,T3D=t_phy &
-----------------------------------------------------^
module_pbl_driver.f90(1169): error #6632: Keyword arguments are invalid without an explicit interface. [QV3D]
,QV3D=qv_curr,QC3D=qc_curr,QI3D=qi_curr &
---------------^
module_pbl_driver.f90(1169): error #6632: Keyword arguments are invalid without an explicit interface. [QC3D]
,QV3D=qv_curr,QC3D=qc_curr,QI3D=qi_curr &
----------------------------^
module_pbl_driver.f90(1169): error #6632: Keyword arguments are invalid without an explicit interface. [QI3D]
,QV3D=qv_curr,QC3D=qc_curr,QI3D=qi_curr &
-----------------------------------------^
module_pbl_driver.f90(1170): error #6632: Keyword arguments are invalid without an explicit interface. [P3D]
,P3D=p_phy,P3DI=p8w,PI3D=pi_phy &
---------------^
module_pbl_driver.f90(1170): error #6632: Keyword arguments are invalid without an explicit interface. [P3DI]
,P3D=p_phy,P3DI=p8w,PI3D=pi_phy &
-------------------------^
module_pbl_driver.f90(1170): error #6632: Keyword arguments are invalid without an explicit interface. [PI3D]
,P3D=p_phy,P3DI=p8w,PI3D=pi_phy &
----------------------------------^
module_pbl_driver.f90(1171): error #6632: Keyword arguments are invalid without an explicit interface. [RUBLTEN]
,RUBLTEN=rublten,RVBLTEN=rvblten &
---------------^
module_pbl_driver.f90(1171): error #6632: Keyword arguments are invalid without an explicit interface. [RVBLTEN]
,RUBLTEN=rublten,RVBLTEN=rvblten &
-------------------------------^
module_pbl_driver.f90(1172): error #6632: Keyword arguments are invalid without an explicit interface. [RTHBLTEN]
,RTHBLTEN=rthblten,RQVBLTEN=rqvblten &
---------------^
module_pbl_driver.f90(1172): error #6632: Keyword arguments are invalid without an explicit interface. [RQVBLTEN]
,RTHBLTEN=rthblten,RQVBLTEN=rqvblten &
---------------------------------^
module_pbl_driver.f90(1173): error #6632: Keyword arguments are invalid without an explicit interface. [RQCBLTEN]
,RQCBLTEN=rqcblten,RQIBLTEN=rqiblten &
---------------^
module_pbl_driver.f90(1173): error #6632: Keyword arguments are invalid without an explicit interface. [RQIBLTEN]
,RQCBLTEN=rqcblten,RQIBLTEN=rqiblten &
---------------------------------^
module_pbl_driver.f90(1174): error #6632: Keyword arguments are invalid without an explicit interface. [FLAG_QI]
,FLAG_QI=flag_qi &
---------------^
module_pbl_driver.f90(1175): error #6632: Keyword arguments are invalid without an explicit interface. [CP]
,CP=cp,G=g,ROVCP=rcp,RD=r_D,ROVG=rovg &
---------------^
module_pbl_driver.f90(1175): error #6632: Keyword arguments are invalid without an explicit interface. [G]
,CP=cp,G=g,ROVCP=rcp,RD=r_D,ROVG=rovg &
---------------------^
module_pbl_driver.f90(1175): error #6632: Keyword arguments are invalid without an explicit interface. [ROVCP]
,CP=cp,G=g,ROVCP=rcp,RD=r_D,ROVG=rovg &
-------------------------^
module_pbl_driver.f90(1175): error #6632: Keyword arguments are invalid without an explicit interface. [RD]
,CP=cp,G=g,ROVCP=rcp,RD=r_D,ROVG=rovg &
-----------------------------------^
module_pbl_driver.f90(1175): error #6632: Keyword arguments are invalid without an explicit interface. [ROVG]
,CP=cp,G=g,ROVCP=rcp,RD=r_D,ROVG=rovg &
------------------------------------------^
module_pbl_driver.f90(1176): error #6632: Keyword arguments are invalid without an explicit interface. [DZ8W]
,DZ8W=dz8w,XLV=XLV,RV=r_v,PSFC=PSFC &
---------------^
module_pbl_driver.f90(1176): error #6632: Keyword arguments are invalid without an explicit interface. [XLV]
,DZ8W=dz8w,XLV=XLV,RV=r_v,PSFC=PSFC &
-------------------------^
module_pbl_driver.f90(1176): error #6632: Keyword arguments are invalid without an explicit interface. [RV]
,DZ8W=dz8w,XLV=XLV,RV=r_v,PSFC=PSFC &
---------------------------------^
module_pbl_driver.f90(1176): error #6632: Keyword arguments are invalid without an explicit interface. [PSFC]
,DZ8W=dz8w,XLV=XLV,RV=r_v,PSFC=PSFC &
----------------------------------------^
module_pbl_driver.f90(1177): error #6632: Keyword arguments are invalid without an explicit interface. [ZNT]
,ZNT=znt,UST=ust,HPBL=pblh &
---------------^
module_pbl_driver.f90(1177): error #6632: Keyword arguments are invalid without an explicit interface. [UST]
,ZNT=znt,UST=ust,HPBL=pblh &
-----------------------^
module_pbl_driver.f90(1177): error #6632: Keyword arguments are invalid without an explicit interface. [HPBL]
,ZNT=znt,UST=ust,HPBL=pblh &
-------------------------------^
module_pbl_driver.f90(2718): catastrophic error: Too many errors, exiting
compilation aborted for module_pbl_driver.f90 (code 1)
Any idea why this tiny change stops WRF from compiling (no option works)? How do I get WRF to compile with the change or something to the same effect?
Thanks,
Roger
I am trying to recompile WRFv4.5.2 on Derecho after making some small changes to module_bl_ysu.F. For some reason when both YSU and BEP-BEM are active, winds drop to nearly 0 in urban areas (see attached). At fault might be lines 1535-1538 of module_bl_ysu.F:
ad(i,k) = ad(i,k) - a_u2d(i,k)*dt2
ad1(i,k) = ad1(i,k) - a_v2d(i,k)*dt2
f1(i,k) = f1(i,k) + b_u2d(i,k)*dt2
f2(i,k) = f2(i,k) + b_v2d(i,k)*dt2
Where the first half is the already calculated momentum flux and the second half is the addition from bep-bem. I tried changing those lines to this:
if(a_u2d(i,k).and.a_v2d(i,k).ne.0.0) then
ad(i,k) = -a_u2d(i,k)*dt2
ad1(i,k) = -a_v2d(i,k)*dt2
f1(i,k) = b_u2d(i,k)*dt2
f2(i,k) = b_v2d(i,k)*dt2
endif
So that when there is data from bep-bem (in my case only the a_u2d and a_v2d parts exist because of my street directions) only that momentum flux is used instead of adding them together. I'm not sure if this will work to fix the problem, but I can't even test it because making this minor change prevents recompiling WRF (see log, I didn't let it complete once I saw the cascade of errors beginning). I can confirm that with the change reverted WRF compiles fine (option 78, default loaded modules).
The errors- showed up in console, but seemingly not the log:
module_pbl_driver.f90(162): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MODULE_BL_YSU]
USE module_bl_ysu
-------^
module_pbl_driver.f90(1168): error #6632: Keyword arguments are invalid without an explicit interface. [U3D]
U3D=u_phytmp,V3D=v_phytmp,TH3D=th_phy,T3D=t_phy &
---------------^
module_pbl_driver.f90(1168): error #6632: Keyword arguments are invalid without an explicit interface. [V3D]
U3D=u_phytmp,V3D=v_phytmp,TH3D=th_phy,T3D=t_phy &
----------------------------^
module_pbl_driver.f90(1168): error #6632: Keyword arguments are invalid without an explicit interface. [TH3D]
U3D=u_phytmp,V3D=v_phytmp,TH3D=th_phy,T3D=t_phy &
-----------------------------------------^
module_pbl_driver.f90(1168): error #6632: Keyword arguments are invalid without an explicit interface. [T3D]
U3D=u_phytmp,V3D=v_phytmp,TH3D=th_phy,T3D=t_phy &
-----------------------------------------------------^
module_pbl_driver.f90(1169): error #6632: Keyword arguments are invalid without an explicit interface. [QV3D]
,QV3D=qv_curr,QC3D=qc_curr,QI3D=qi_curr &
---------------^
module_pbl_driver.f90(1169): error #6632: Keyword arguments are invalid without an explicit interface. [QC3D]
,QV3D=qv_curr,QC3D=qc_curr,QI3D=qi_curr &
----------------------------^
module_pbl_driver.f90(1169): error #6632: Keyword arguments are invalid without an explicit interface. [QI3D]
,QV3D=qv_curr,QC3D=qc_curr,QI3D=qi_curr &
-----------------------------------------^
module_pbl_driver.f90(1170): error #6632: Keyword arguments are invalid without an explicit interface. [P3D]
,P3D=p_phy,P3DI=p8w,PI3D=pi_phy &
---------------^
module_pbl_driver.f90(1170): error #6632: Keyword arguments are invalid without an explicit interface. [P3DI]
,P3D=p_phy,P3DI=p8w,PI3D=pi_phy &
-------------------------^
module_pbl_driver.f90(1170): error #6632: Keyword arguments are invalid without an explicit interface. [PI3D]
,P3D=p_phy,P3DI=p8w,PI3D=pi_phy &
----------------------------------^
module_pbl_driver.f90(1171): error #6632: Keyword arguments are invalid without an explicit interface. [RUBLTEN]
,RUBLTEN=rublten,RVBLTEN=rvblten &
---------------^
module_pbl_driver.f90(1171): error #6632: Keyword arguments are invalid without an explicit interface. [RVBLTEN]
,RUBLTEN=rublten,RVBLTEN=rvblten &
-------------------------------^
module_pbl_driver.f90(1172): error #6632: Keyword arguments are invalid without an explicit interface. [RTHBLTEN]
,RTHBLTEN=rthblten,RQVBLTEN=rqvblten &
---------------^
module_pbl_driver.f90(1172): error #6632: Keyword arguments are invalid without an explicit interface. [RQVBLTEN]
,RTHBLTEN=rthblten,RQVBLTEN=rqvblten &
---------------------------------^
module_pbl_driver.f90(1173): error #6632: Keyword arguments are invalid without an explicit interface. [RQCBLTEN]
,RQCBLTEN=rqcblten,RQIBLTEN=rqiblten &
---------------^
module_pbl_driver.f90(1173): error #6632: Keyword arguments are invalid without an explicit interface. [RQIBLTEN]
,RQCBLTEN=rqcblten,RQIBLTEN=rqiblten &
---------------------------------^
module_pbl_driver.f90(1174): error #6632: Keyword arguments are invalid without an explicit interface. [FLAG_QI]
,FLAG_QI=flag_qi &
---------------^
module_pbl_driver.f90(1175): error #6632: Keyword arguments are invalid without an explicit interface. [CP]
,CP=cp,G=g,ROVCP=rcp,RD=r_D,ROVG=rovg &
---------------^
module_pbl_driver.f90(1175): error #6632: Keyword arguments are invalid without an explicit interface. [G]
,CP=cp,G=g,ROVCP=rcp,RD=r_D,ROVG=rovg &
---------------------^
module_pbl_driver.f90(1175): error #6632: Keyword arguments are invalid without an explicit interface. [ROVCP]
,CP=cp,G=g,ROVCP=rcp,RD=r_D,ROVG=rovg &
-------------------------^
module_pbl_driver.f90(1175): error #6632: Keyword arguments are invalid without an explicit interface. [RD]
,CP=cp,G=g,ROVCP=rcp,RD=r_D,ROVG=rovg &
-----------------------------------^
module_pbl_driver.f90(1175): error #6632: Keyword arguments are invalid without an explicit interface. [ROVG]
,CP=cp,G=g,ROVCP=rcp,RD=r_D,ROVG=rovg &
------------------------------------------^
module_pbl_driver.f90(1176): error #6632: Keyword arguments are invalid without an explicit interface. [DZ8W]
,DZ8W=dz8w,XLV=XLV,RV=r_v,PSFC=PSFC &
---------------^
module_pbl_driver.f90(1176): error #6632: Keyword arguments are invalid without an explicit interface. [XLV]
,DZ8W=dz8w,XLV=XLV,RV=r_v,PSFC=PSFC &
-------------------------^
module_pbl_driver.f90(1176): error #6632: Keyword arguments are invalid without an explicit interface. [RV]
,DZ8W=dz8w,XLV=XLV,RV=r_v,PSFC=PSFC &
---------------------------------^
module_pbl_driver.f90(1176): error #6632: Keyword arguments are invalid without an explicit interface. [PSFC]
,DZ8W=dz8w,XLV=XLV,RV=r_v,PSFC=PSFC &
----------------------------------------^
module_pbl_driver.f90(1177): error #6632: Keyword arguments are invalid without an explicit interface. [ZNT]
,ZNT=znt,UST=ust,HPBL=pblh &
---------------^
module_pbl_driver.f90(1177): error #6632: Keyword arguments are invalid without an explicit interface. [UST]
,ZNT=znt,UST=ust,HPBL=pblh &
-----------------------^
module_pbl_driver.f90(1177): error #6632: Keyword arguments are invalid without an explicit interface. [HPBL]
,ZNT=znt,UST=ust,HPBL=pblh &
-------------------------------^
module_pbl_driver.f90(2718): catastrophic error: Too many errors, exiting
compilation aborted for module_pbl_driver.f90 (code 1)
Any idea why this tiny change stops WRF from compiling (no option works)? How do I get WRF to compile with the change or something to the same effect?
Thanks,
Roger