Skip to content

Commit

Permalink
Change usage of RWORDSIZE in build to use DOUBLE_PRECISION definition
Browse files Browse the repository at this point in the history
  • Loading branch information
islas committed Aug 24, 2024
1 parent eaf8ace commit ef76c68
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ em_real : wrf
ln -sf ../../run/ishmael-qi-qr.bin . ; \
ln -sf ../../run/BROADBAND_CLOUD_GODDARD.bin . ; \
ln -sf ../../run/STOCHPERT.TBL . ; \
if [ $(RWORDSIZE) -eq 8 ] ; then \
if [ -n $(DOUBLE_PRECISION) ] ; then \
ln -sf ../../run/ETAMPNEW_DATA_DBL ETAMPNEW_DATA ; \
ln -sf ../../run/ETAMPNEW_DATA.expanded_rain_DBL ETAMPNEW_DATA.expanded_rain ; \
ln -sf ../../run/RRTM_DATA_DBL RRTM_DATA ; \
Expand Down Expand Up @@ -677,7 +677,7 @@ em_real : wrf
ln -sf ../../run/ishmael-qi-qr.bin . ; \
ln -sf ../../run/BROADBAND_CLOUD_GODDARD.bin . ; \
ln -sf ../../run/STOCHPERT.TBL . ; \
if [ $(RWORDSIZE) -eq 8 ] ; then \
if [ -n $(DOUBLE_PRECISION) ] ; then \
ln -sf ../../run/ETAMPNEW_DATA_DBL ETAMPNEW_DATA ; \
ln -sf ../../run/ETAMPNEW_DATA.expanded_rain_DBL ETAMPNEW_DATA.expanded_rain ; \
ln -sf ../../run/RRTM_DATA_DBL RRTM_DATA ; \
Expand Down
2 changes: 2 additions & 0 deletions arch/postamble
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# POSTAMBLE

FGREP = fgrep -iq
### Used throughout the build system to inform promotion to double precision
DOUBLE_PRECISION = CONFIGURE_PROMOTION

ARCHFLAGS = $(COREDEFS) -DIWORDSIZE=$(IWORDSIZE) -DDWORDSIZE=$(DWORDSIZE) -DRWORDSIZE=$(RWORDSIZE) -DLWORDSIZE=$(LWORDSIZE) CONFIGURE_PROMOTION \
$(ARCH_LOCAL) \
Expand Down
2 changes: 1 addition & 1 deletion external/ioapi_share/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ all: ../../inc/wrf_io_flags.h ../../inc/wrf_status_codes.h
../../inc/wrf_io_flags.h : wrf_io_flags.h ../../configure.wrf
( /bin/rm -f ../../inc/wrf_io_flags.h foo_io_flags.h; \
/bin/cp wrf_io_flags.h foo_io_flags.h; \
if [ $(RWORDSIZE) -ne $(NATIVE_RWORDSIZE) ] ; then \
if [ -n $(DOUBLE_PRECISION) ] ; then \
/bin/rm -f foo_io_flags.h; \
sed -e 's/104/105/' wrf_io_flags.h > foo_io_flags.h ;\
fi ; \
Expand Down

0 comments on commit ef76c68

Please sign in to comment.