And ROMS has three ways to calculate longwave radiation.
When we calculate net longwave radiation internally (with LONGWAVE defined)
ROMS requests humidity(RH, 412 line in bulk_flux.F) and this time ROMS does not know wheather this humidity is a relative or specific one. So there is a need to add if condition. I saw below code in Kate Version.
IF(RH.lt.2.0_r8) THEN
cff=(0.7859_r8+0.03477_r8*TairC(i))/ &
& (1.0_r8+0.00412_r8*TairC(i))
e_sat=10.0_r8**cff
vap_p=e_sat*RH
ELSE
vap_p=0.001_r8*PairM*RH/(1.0_r8+0.000378_r8*RH)
ENDIF
cff2=TairK(i)*TairK(i)*TairK(i)
cff1=cff2*TairK(i)
LRad(i,j)=-emmiss*StefBo* &
& (cff1*(0.39_r8-0.05_r8*SQRT(0.01_r8*vap_p))* &
& (1.0_r8-0.6823_r8*cloud(i,j)*cloud(i,j))+ &
& cff2*4.0_r8*(TseaK(i)-TairK(i)))