Skip to content

Commit f729619

Browse files
authored
Merge pull request #651 from wrf-model/release-v4.0.1
Finalize WRFV4.0.1 by merging bug fixes from release-v4.0.1 branch onto master. See the annotation of the v4.0.1 tag for full release notes (git show v4.0.1).
2 parents a41f34e + 07f50a4 commit f729619

20 files changed

+170
-89
lines changed

README

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
WRF Model Version 4.0 (June 8, 2018)
2-
http://wrf-model.org/users/users.php
1+
WRF Model Version 4.0.1 (October 2, 2018)
2+
3+
http://www2.mmm.ucar.edu/wrf/users/
34

45
------------------------
56
WRF PUBLIC DOMAIN NOTICE
@@ -40,6 +41,12 @@ doc/README.rsl_output
4041
doc/README.windturbine
4142
doc/README_test_cases
4243

44+
V4.0.1 Release Notes (10/2/2018):
45+
-------------------
46+
47+
- For more information on the WRF V4.0.1 release, visit the WRF GitHub Release Page:
48+
https://github.com/wrf-model/WRF/releases
49+
4350
V4.0 Release Notes (6/8/2018):
4451
-------------------
4552

@@ -299,7 +306,7 @@ WRF update history:
299306
How to compile and run?
300307
-----------------------
301308

302-
- In WRFV3 directory, type 'configure' - this will create a configure.wrf
309+
- In WRF directory, type 'configure' - this will create a configure.wrf
303310
file that has appropriate compile options for the supported computers.
304311

305312
Note: WRF requires netCDF library. If your netCDF library is installed in

Registry/Registry.EM_COMMON.var

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ state real tlp_strat - misc - - i02rh "t
303303
state real p_strat - misc - - i02rh "p_strat" "BASE STATE PRESSURE AT BOTTOM OF STRATOSPHERE" "Pa"
304304
state real max_msftx - misc - - rh "max_mstfx" "Max map factor in domain" ""
305305
state real max_msfty - misc - - rh "max_mstfy" "Max map factor in domain" ""
306+
state logical v4_metgrid - misc - - - "v4_metgrid" "for real, T/F: identify if this is v4 metgrid data" ""
306307

307308
state real RAINC ij misc 1 - rhdu "RAINC" "ACCUMULATED TOTAL CUMULUS PRECIPITATION" "mm"
308309
state real RAINNC ij misc 1 - rhdu "RAINNC" "ACCUMULATED TOTAL GRID SCALE PRECIPITATION" "mm"

compile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ foreach a ( $argv )
8181
set prev_was_j = true
8282
else if ( "$prev_was_j" == "true" ) then
8383
set prev_was_j = false
84+
else if ( "$a" == "emi_conv" ) then
85+
set arglist = ( $arglist $a )
86+
set ZAP = ( chem/convert_emiss.exe )
8487
else
8588
echo "This option is not recognized: $a"
8689
exit ( 1 )

doc/README.DA

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ WRFDA update history:
492492
- V3.8.1: Aug 12, 2016
493493
- V3.9: Apr 17, 2017
494494
- V3.9.1: Aug 17, 2017
495-
- V4.0: Jun 7, 2018
495+
- V4.0: Jun 8, 2018
496496
======================================
497497

498498
How to compile and run?

dyn_em/module_small_step_em.F

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ SUBROUTINE small_step_prep( u_1, u_2, v_1, v_2, w_1, w_2, &
260260
DO k=k_start, k_end
261261
DO i=i_start, i_end
262262
t_save(i,k,j) = t_2(i,k,j)
263-
t_2(i,k,j) = (c1f(k)*muts(i,j)+c2f(k))*t_1(i,k,j)-(c1f(k)*mut(i,j)+c2f(k))*t_2(i,k,j)
263+
t_2(i,k,j) = (c1h(k)*muts(i,j)+c2h(k))*t_1(i,k,j)-(c1h(k)*mut(i,j)+c2h(k))*t_2(i,k,j)
264264
ENDDO
265265
ENDDO
266266
ENDDO
@@ -409,7 +409,7 @@ SUBROUTINE small_step_finish( u_2, u_1, v_2, v_1, w_2, w_1, &
409409
DO j = j_start, j_end
410410
DO k = kds, kde-1
411411
DO i = i_start, i_end
412-
t_2(i,k,j) = (t_2(i,k,j) + t_save(i,k,j)*(c1f(k)*mut(i,j)+c2f(k)))/(c1f(k)*muts(i,j)+c2f(k))
412+
t_2(i,k,j) = (t_2(i,k,j) + t_save(i,k,j)*(c1h(k)*mut(i,j)+c2h(k)))/(c1h(k)*muts(i,j)+c2h(k))
413413
ENDDO
414414
ENDDO
415415
ENDDO
@@ -418,8 +418,8 @@ SUBROUTINE small_step_finish( u_2, u_1, v_2, v_1, w_2, w_1, &
418418
DO j = j_start, j_end
419419
DO k = kds, kde-1
420420
DO i = i_start, i_end
421-
t_2(i,k,j) = (t_2(i,k,j) - dts*number_of_small_timesteps*(c1f(k)*mut(i,j)+c2f(k))*h_diabatic(i,k,j) &
422-
+ t_save(i,k,j)*(c1f(k)*mut(i,j)+c2f(k)))/(c1f(k)*muts(i,j)+c2f(k))
421+
t_2(i,k,j) = (t_2(i,k,j) - dts*number_of_small_timesteps*(c1h(k)*mut(i,j)+c2h(k))*h_diabatic(i,k,j) &
422+
+ t_save(i,k,j)*(c1h(k)*mut(i,j)+c2h(k)))/(c1h(k)*muts(i,j)+c2h(k))
423423
ENDDO
424424
ENDDO
425425
ENDDO

dyn_em/start_em.F

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -773,13 +773,21 @@ SUBROUTINE start_domain_em ( grid, allowed_to_read &
773773
DO i=its,min(ite,ide-1)
774774
#if ( WRFPLUS == 1 )
775775
IF ( .NOT. config_flags%var4d_run ) THEN
776-
qvf = 1.+rvovrd*moist(i,k,j,P_QV)
776+
IF ( config_flags%use_theta_m == 0 ) THEN
777+
qvf = 1.+rvovrd*moist(i,k,j,P_QV)
778+
ELSE
779+
qvf = 1
780+
END IF
777781
grid%p(i,k,j)=p1000mb*( (r_d*(t0+grid%t_1(i,k,j))*qvf)/ &
778782
(p1000mb*(grid%al(i,k,j)+grid%alb(i,k,j))) )**cpovcv &
779783
-grid%pb(i,k,j)
780784
END IF
781785
#else
782-
qvf = 1.+rvovrd*moist(i,k,j,P_QV)
786+
IF ( config_flags%use_theta_m == 0 ) THEN
787+
qvf = 1.+rvovrd*moist(i,k,j,P_QV)
788+
ELSE
789+
qvf = 1
790+
END IF
783791
grid%p(i,k,j)=p1000mb*( (r_d*(t0+grid%t_1(i,k,j))*qvf)/ &
784792
(p1000mb*(grid%al(i,k,j)+grid%alb(i,k,j))) )**cpovcv &
785793
-grid%pb(i,k,j)

inc/version_decl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
CHARACTER (LEN=10) :: release_version = 'V4.0 '
1+
CHARACTER (LEN=10) :: release_version = 'V4.0.1 '

0 commit comments

Comments
 (0)