Skip to content

Commit 7329170

Browse files
authored
fix WRF-CHEM errors for CCE build (#2253)
TYPE: Bug Fix KEYWORDS: CCE, compilation errors, Cray SOURCE: Miroslaw Andrejczuk (HPE) DESCRIPTION OF CHANGES: Problem: There were few errors reported by Cray compiler when building WRF-CHEM code. In chem/module_optical_averaging.F comma after write statements triggered error when building, and for chem/module_mosaic_addemiss.F compiler complained that because subroutine mosaic_dust_gocartemis has an optional argument an interface to this routine is needed in module itself. Solution: Remove commas after write statements in module_optical_averaging.F. Move _END MODULE module_mosaic_addemiss_ statement in the file to include subroutine mosaic_dust_gocartemis in the module definition. ISSUE: For use when this PR closes an issue. Fixes #2252 LIST OF MODIFIED FILES: chem/module_mosaic_addemiss.F chem/module_optical_averaging.F TESTS CONDUCTED: 1. With those changes I can build wrf/em_real with CCE 2. The Jenkins tests are all passing.
1 parent b791a59 commit 7329170

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

chem/module_mosaic_addemiss.F

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1641,7 +1641,6 @@ end subroutine seasalt_emit_feuntes_1bin
16411641
16421642
16431643
1644-
END MODULE module_mosaic_addemiss
16451644
16461645
!----------------------------------------------------------------------
16471646
@@ -2217,6 +2216,8 @@ subroutine mosaic_dust_gocartemis (dt,start_month,num_soil_layers,alt, &
22172216
22182217
22192218
end subroutine mosaic_dust_gocartemis
2219+
2220+
END MODULE module_mosaic_addemiss
22202221
!===========================================================================
22212222
22222223
!----------------------------------------------------------------------

chem/module_optical_averaging.F

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4705,19 +4705,19 @@ subroutine mieaer( &
47054705
! check for refr and refi outside of lookup table range to prevent unstable extrapolation 'binterp' below
47064706
if (refr < refrtabsw(1,ns)) then
47074707
refr = refrtabsw(1,ns)
4708-
write(*,*), 'Warning: refr is smaller than lookup table range and reset to minimum bound at SW band ', ns
4708+
write(*,*) 'Warning: refr is smaller than lookup table range and reset to minimum bound at SW band ', ns
47094709
endif
47104710
if (refr > refrtabsw(prefr,ns)) then
47114711
refr = refrtabsw(prefr,ns)
4712-
write(*,*), 'Warning: refr is larger than lookup table range and reset to maximum bound at SW band ', ns
4712+
write(*,*) 'Warning: refr is larger than lookup table range and reset to maximum bound at SW band ', ns
47134713
endif
47144714
if (refi < refitabsw(1,ns)) then
47154715
refi = refitabsw(1,ns)
4716-
write(*,*), 'Warning: refi is smaller than lookup table range and reset to minimum bound at SW band ', ns
4716+
write(*,*) 'Warning: refi is smaller than lookup table range and reset to minimum bound at SW band ', ns
47174717
endif
47184718
if (refi > refitabsw(prefi,ns)) then
47194719
refi = refitabsw(prefi,ns)
4720-
write(*,*), 'Warning: refi is larger than lookup table range and reset to maximum bound at SW band ', ns
4720+
write(*,*) 'Warning: refi is larger than lookup table range and reset to maximum bound at SW band ', ns
47214721
endif
47224722

47234723
! interpolate coefficients linear in refractive index
@@ -4980,19 +4980,19 @@ subroutine mieaer( &
49804980
! check for refr and refi outside of lookup table range to prevent unstable extrapolation 'binterp' below
49814981
if (refr < refrtablw(1,ns)) then
49824982
refr = refrtablw(1,ns)
4983-
write(*,*), 'Warning: refr is smaller than lookup table range and reset to minimum bound at LW band ', ns
4983+
write(*,*) 'Warning: refr is smaller than lookup table range and reset to minimum bound at LW band ', ns
49844984
endif
49854985
if (refr > refrtablw(prefr,ns)) then
49864986
refr = refrtablw(prefr,ns)
4987-
write(*,*), 'Warning: refr is larger than lookup table range and reset to maximum bound at LW band ', ns
4987+
write(*,*) 'Warning: refr is larger than lookup table range and reset to maximum bound at LW band ', ns
49884988
endif
49894989
if (refi < refitablw(1,ns)) then
49904990
refi = refitablw(1,ns)
4991-
write(*,*), 'Warning: refi is smaller than lookup table range and reset to minimum bound at LW band ', ns
4991+
write(*,*) 'Warning: refi is smaller than lookup table range and reset to minimum bound at LW band ', ns
49924992
endif
49934993
if (refi > refitablw(prefi,ns)) then
49944994
refi = refitablw(prefi,ns)
4995-
write(*,*), 'Warning: refi is larger than lookup table range and reset to maximum bound at LW band ', ns
4995+
write(*,*) 'Warning: refi is larger than lookup table range and reset to maximum bound at LW band ', ns
49964996
endif
49974997
49984998
! interpolate coefficients linear in refractive index

0 commit comments

Comments
 (0)