Skip to content

Commit

Permalink
Remove sed rewrite of io flags
Browse files Browse the repository at this point in the history
  • Loading branch information
islas committed Aug 27, 2024
1 parent 18b7eba commit 0d4a21a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions external/ioapi_share/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,8 @@ all: ../../inc/wrf_io_flags.h ../../inc/wrf_status_codes.h
# The if statement below modifies WRF data type codes for builds made with
# compiler autopromotion of REAL -> DOUBLE.
../../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 [ -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 ; \
/bin/mv foo_io_flags.h ../../inc/wrf_io_flags.h )
/bin/rm -f ../../inc/wrf_io_flags.h
/bin/cp wrf_io_flags.h ../../inc/wrf_io_flags.h

../../inc/wrf_status_codes.h : wrf_status_codes.h
/bin/rm -f ../../inc/wrf_status_codes.h
Expand Down

0 comments on commit 0d4a21a

Please sign in to comment.