Fatal Error: Can't open module file 'wrf_data.mod' for read

All things involving the setup (compiling, NetCDF, etc.) of the WRF Model itself.

Fatal Error: Can't open module file 'wrf_data.mod' for read

Postby bijayguha » Wed May 15, 2019 7:52 am

Hello.. I am getting some module related error. However, I need to compile some older version of WRF (here 3.3.1) for my own purpose. Any help will be highly appreciated..

My errors are starting with

/bin/sh: 6: m4: not found
makefile:26: recipe for target 'wrf_io.o' failed
make[3]: [wrf_io.o] Error 127 (ignored)


And then

use wrf_data
1
Fatal Error: Can't open module file 'wrf_data.mod' for reading at (1): No such file or directory

And then continue with some module related error..

I am running it of Ubuntu 14 (4.9.1), and using netcdf 3.6.3. I thought this version will be compatible with WRF 3.3.1. But still I am getting these module related errors. Which I got when I was using Ubuntu 16 and netcdf 4.1.2

Not able to attache the compile.log and configure.wrf file..Few portion of it are below


copying Registry/Registry.EM to Registry/Registry

Compiling: WRF_EM_CORE .
make[1]: Entering directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3'
--------------------------------------
( cd frame ; make -i -r externals )
make[2]: Entering directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3/frame'
( cd /home/maslab-6/BIJAY/Build_WRF/WRFV3/external/ioapi_share ; \
make -i -r NATIVE_RWORDSIZE="4" RWORDSIZE="4" AR="ar" ARFLAGS="ru" )
make[3]: Entering directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3/external/ioapi_share'
( /bin/rm -f ../../inc/wrf_io_flags.h foo_io_flags.h; \
/bin/cp wrf_io_flags.h 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_status_codes.h
/bin/cp wrf_status_codes.h ../../inc
make[3]: Leaving directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3/external/ioapi_share'
( cd /home/maslab-6/BIJAY/Build_WRF/WRFV3/external/io_grib_share ; \
make CC="gcc" CFLAGS="-w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25" RM="rm -f" RANLIB="ranlib" CPP="/lib/cpp -P" \
make[3]: Entering directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3/external/io_grib_share'
make[4]: Entering directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3/external/io_grib_share'
rm -f io_grib_share.o
gcc -I. -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c get_region_center.c
gcc -I. -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c gridnav.c
gcc -I. -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c open_file.c
ar ru ./libio_grib_share.a io_grib_share.o get_region_center.o gridnav.o open_file.o
ar: creating ./libio_grib_share.a
ranlib ./libio_grib_share.a
make[4]: Leaving directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3/external/io_grib_share'
make[3]: Leaving directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3/external/io_grib_share'
( cd /home/maslab-6/BIJAY/Build_WRF/WRFV3/external/io_grib1 ; \
make CC="gcc" CFLAGS="-w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25" RM="rm -f" RANLIB="ranlib" CPP="/lib/cpp -P" \
make[3]: Entering directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3/external/io_grib1'
Doing make archive on library subdirectory MEL_grib1
make[4]: Entering directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3/external/io_grib1/MEL_grib1'
make[5]: Entering directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3/external/io_grib1/MEL_grib1'
gcc -I. -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c FTP_getfile.c
gcc -I. -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c apply_bitmap.c
gcc -I. -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c display_gribhdr.c
gcc -I. -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c gbyte.c
gcc -I. -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c grib_dec.c
gcc -I. -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c gribgetgds.c
gcc -I. -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c gribgetpds.c
gcc -I. -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c gribhdr2file.c
gcc -I. -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c gribputbds.c
gcc -I. -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c gribputgds.c
gcc -I. -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c gribputpds.c
gcc -I. -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c hdr_print.c
gcc -I. -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c init_dec_struct.c
gcc -I. -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c init_enc_struct.c
gcc -I. -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c init_gribhdr.c
gcc -I. -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c init_struct.c
gcc -I. -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c ld_dec_lookup.c
gcc -I. -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c ld_enc_input.c
gcc -I. -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c ld_enc_lookup.c
gcc -I. -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c ld_grib_origctrs.c
gcc -I. -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c make_default_grbfn.c
gcc -I. -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c make_grib_log.c
gcc -I. -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c map_lvl.c
gcc -I. -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c map_parm.c
gcc -I. -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c pack_spatial.c
gcc -I. -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c prt_inp_struct.c
gcc -I. -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c upd_child_errmsg.c
gcc -I. -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c prt_badmsg.c
gcc -I. -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c swap.c
gcc -I. -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c grib_uthin.c
gcc -I. -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c set_bytes.c
ar: creating ../libio_grib1.a
ranlib ../libio_grib1.a
make[5]: Leaving directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3/external/io_grib1/MEL_grib1'
make[4]: Leaving directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3/external/io_grib1/MEL_grib1'
Doing make archive on library subdirectory grib1_util
make[4]: Entering directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3/external/io_grib1/grib1_util'
make[5]: Entering directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3/external/io_grib1/grib1_util'
gcc -I. -I../MEL_grib1 -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c alloc_2d.c
gcc -I. -I../MEL_grib1 -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c read_grib.c
gcc -I. -I../MEL_grib1 -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c write_grib.c
ar ru ../libio_grib1.a alloc_2d.o read_grib.o write_grib.o
ranlib ../libio_grib1.a
make[5]: Leaving directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3/external/io_grib1/grib1_util'
make[4]: Leaving directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3/external/io_grib1/grib1_util'
Doing make archive on library subdirectory WGRIB
make[4]: Entering directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3/external/io_grib1/WGRIB'
gcc -c -O wgrib_main.c
gcc -c -O seekgrib.c
gcc -c -O ibm2flt.c
gcc -c -O readgrib.c
gcc -c -O intpower.c
gcc -c -O cnames.c
gcc -c -O BDSunpk.c
gcc -c -O flt2ieee.c
gcc -c -O nceptable_reanal.c
gcc -c -O nceptable_opn.c
gcc -c -O ensemble.c
gcc -c -O ombtable.c
gcc -c -O ec_ext.c
gcc -c -O gribtable.c
gcc -c -O ectable_131.c
gcc -c -O ectable_140.c
gcc -c -O ectable_150.c
gcc -c -O ectable_151.c
gcc -c -O ectable_160.c
gcc -c -O ectable_170.c
gcc -c -O ectable_180.c
gcc -c -O nceptab_129.c
gcc -c -O dwdtable_203.c
gcc -c -O cptectable_254.c
gcc -c -O nceptab_130.c
gcc -c -O nceptab_131.c
( cd .. ; \rm -f wgrib.exe ; \ln -sf WGRIB/wgrib.exe wgrib.exe ; cd WGRIB )
make[4]: Leaving directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3/external/io_grib1/WGRIB'
make[4]: Entering directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3/external/io_grib1'
gcc -I. -I./MEL_grib1 -Igrib1_util -I../io_grib_share -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c grib1_routines.c
gcc -I. -I./MEL_grib1 -Igrib1_util -I../io_grib_share -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c trim.c
ar ru ./libio_grib1.a grib1_routines.o gribmap.o io_grib1.o trim.o
ranlib ./libio_grib1.a
make[4]: Leaving directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3/external/io_grib1'
make[3]: Leaving directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3/external/io_grib1'
FC="gfortran -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 " FGREP="fgrep -iq" \
make[3]: Entering directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3/external/io_int'
cp ../../frame/module_internal_header_util.F module_internal_header_util.b
/lib/cpp -P -traditional -I../ioapi_share module_internal_header_util.b > module_internal_header_util.f
/lib/cpp -P -traditional -I../ioapi_share io_int.F90 | m4 -Uinclude -Uindex -Ulen - > io_int.f
/bin/sh: 1: m4: not found
makefile:21: recipe for target 'io_int.o' failed
make[3]: [io_int.o] Error 127 (ignored)
/bin/rm -f intio_tags.h
Diffwrf io_int will be built later on in this compile. No need to rerun compile.
Diffwrf io_int will be built later on in this compile. No need to rerun compile.
Diffwrf io_int will be built later on in this compile. No need to rerun compile.
if [ $x = "gfortran" ] ; then \
echo removing external declaration of iargc for gfortran ; \
fi ; \
mv diffwrf.F90 diffwrf.F ; \
../../frame/pack_utils.o ../../frame/module_internal_header_util.o \
../../frame/module_driver_constants.o \
../../frame/module_machine.o ../../frame/wrf_debug.o ../../frame/module_wrf_error.o \
; fi
make[3]: Entering directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3/external/esmf_time_f90'
/bin/rm -f ESMF_Base.b
gfortran -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 -o ESMF_Base.o -c ESMF_Base.f
/bin/rm -f ESMF_BaseTime.b
gfortran -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 -o ESMF_BaseTime.o -c ESMF_BaseTime.f
/bin/rm -f ESMF_Calendar.b
gfortran -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 -o ESMF_Calendar.o -c ESMF_Calendar.f
/bin/rm -f ESMF_Fraction.b
gfortran -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 -o ESMF_Fraction.o -c ESMF_Fraction.f
/bin/rm -f ESMF_TimeInterval.b
gfortran -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 -o ESMF_TimeInterval.o -c ESMF_TimeInterval.f
/bin/rm -f ESMF_Stubs.b
gfortran -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 -o ESMF_Stubs.o -c ESMF_Stubs.f
/bin/rm -f ESMF_Time.b
gfortran -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 -o ESMF_Time.o -c ESMF_Time.f
/bin/rm -f ESMF_Alarm.b
gfortran -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 -o ESMF_Alarm.o -c ESMF_Alarm.f
/bin/rm -f ESMF_Clock.b
gfortran -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 -o ESMF_Clock.o -c ESMF_Clock.f
/bin/rm -f Meat.b
gfortran -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 -o Meat.o -c Meat.f
/bin/rm -f ESMF_AlarmClock.b
gfortran -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 -o ESMF_AlarmClock.o -c ESMF_AlarmClock.f
/bin/rm -f ESMF_Mod.o
sed -e "/\!.*'/s/'//g" ESMF_Mod.F90 > ESMF_Mod.b
/bin/rm -f ESMF_Mod.b
gfortran -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 -o ESMF_Mod.o -c ESMF_Mod.f
/bin/rm -f module_symbols_util.o
sed -e "/\!.*'/s/'//g" module_symbols_util.F90 > module_symbols_util.b
/bin/rm -f module_symbols_util.b
gfortran -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 -o module_symbols_util.o -c module_symbols_util.f
/bin/rm -f module_utility.o
sed -e "/\!.*'/s/'//g" module_utility.F90 > module_utility.b
/bin/rm -f module_utility.b
gfortran -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 -o module_utility.o -c module_utility.f
/bin/rm -f libesmf_time.a
if [ "ar" != "lib.exe" ] ; then \
else \
fi
ar: creating libesmf_time.a
ranlib libesmf_time.a
make[3]: Leaving directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3/external/esmf_time_f90'
( cd /home/maslab-6/BIJAY/Build_WRF/WRFV3/external/fftpack/fftpack5 ; \
make[3]: Entering directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3/external/fftpack/fftpack5'
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 c1f2kb.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 c1f2kf.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 c1f3kb.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 c1f3kf.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 c1f4kb.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 c1f4kf.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 c1f5kb.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 c1f5kf.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 c1fgkb.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 c1fgkf.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 c1fm1b.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 c1fm1f.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 cfft1b.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 cfft1f.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 cfft1i.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 cfft2b.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 cfft2f.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 cfft2i.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 cfftmb.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 cfftmf.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 cfftmi.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 cmf2kb.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 cmf2kf.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 cmf3kb.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 cmf3kf.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 cmf4kb.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 cmf4kf.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 cmf5kb.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 cmf5kf.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 cmfgkb.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 cmfgkf.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 cmfm1b.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 cmfm1f.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 cosq1b.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 cosq1f.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 cosq1i.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 cosqb1.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 cosqf1.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 cosqmb.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 cosqmf.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 cosqmi.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 cost1b.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 cost1f.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 cost1i.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 costb1.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 costf1.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 costmb.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 costmf.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 costmi.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 factor.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 mcfti1.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 mcsqb1.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 mcsqf1.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 mcstb1.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 mcstf1.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 mradb2.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 mradb3.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 mradb4.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 mradb5.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 mradbg.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 mradf2.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 mradf3.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 mradf4.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 mradf5.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 mradfg.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 mrftb1.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 mrftf1.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 mrfti1.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 msntb1.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 msntf1.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 r1f2kb.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 r1f2kf.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 r1f3kb.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 r1f3kf.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 r1f4kb.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 r1f4kf.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 r1f5kb.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 r1f5kf.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 r1fgkb.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 rfftb1.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 rfftf1.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 rffti1.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 rfftmb.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 rfftmf.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 rfftmi.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 sinq1i.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 sinqmb.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 sinqmf.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 sinqmi.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 sint1i.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 sintb1.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 sintf1.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 sintmb.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 sintmf.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 sintmi.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 tables.F
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 xercon.F
ar: creating libfftpack.a
ranlib libfftpack.a
make[3]: Leaving directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3/external/fftpack/fftpack5'
( cd /home/maslab-6/BIJAY/Build_WRF/WRFV3/external/io_netcdf ; \
make NETCDFPATH="/home/maslab-6/BIJAY/Build_WRF/LIBRARIES/netcdf" RANLIB="ranlib" CPP="/lib/cpp -P" \
CC="gcc" CFLAGS="-w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25" \
a=$? ; export a ; \
if [ $a -a "$WRFIO_NCD_LARGE_FILE_SUPPORT" = "1" ] ; then \
else \
/lib/cpp -P -C -P -traditional -I../ioapi_share wrf_io.F90 | m4 -Uinclude -Uindex -Ulen - > wrf_io.f ; \
fi
integer nf_format_64bit
parameter (nf_format_64bit = 2)
/bin/sh: 6: m4: not found
makefile:26: recipe for target 'wrf_io.o' failed
make[3]: [wrf_io.o] Error 127 (ignored)
field_routines.f:77.6:

use wrf_data
1
Fatal Error: Can't open module file 'wrf_data.mod' for reading at (1): No such file or directory
makefile:64: recipe for target 'field_routines.o' failed
make[3]: [field_routines.o] Error 1 (ignored)
/lib/cpp -P -C -P -traditional -I../ioapi_share module_wrfsi_static.F90 > module_wrfsi_static.f
ar cr libwrfio_nf.a wrf_io.o field_routines.o module_wrfsi_static.o ; \
else \
ar /out:libwrfio_nf.a wrf_io.o field_routines.o module_wrfsi_static.o ; \
fi
ar: field_routines.o: No such file or directory
makefile:17: recipe for target 'libwrfio_nf.a' failed
make[3]: [libwrfio_nf.a] Error 1 (ignored)
ranlib libwrfio_nf.a
ranlib: 'libwrfio_nf.a': No such file
makefile:17: recipe for target 'libwrfio_nf.a' failed
( cd /home/maslab-6/BIJAY/Build_WRF/WRFV3/external/io_grib2 ; \
FIXED="-ffixed-form -cpp" archive)
make[3]: Entering directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3/external/io_grib2'
make[5]: Entering directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3/external/io_grib2/bacio-1.3'
gcc -I. -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -I/home/maslab-6/BIJAY/Build_WRF/LIBRARIES/grib2/include -c bacio.v1.3.c
rm -f baciof.o
ranlib ../libio_grib2.a
make[5]: Leaving directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3/external/io_grib2/bacio-1.3'
make[4]: Leaving directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3/external/io_grib2/bacio-1.3'
make[5]: Entering directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3/external/io_grib2/g2lib'
rm -f gridtemplates.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib gridtemplates.F > gridtemplates.f90
Warning: Nonexistent include directory "g2lib"
rm -f pdstemplates.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib pdstemplates.F > pdstemplates.f90
Warning: Nonexistent include directory "g2lib"
rm -f drstemplates.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib drstemplates.F > drstemplates.f90
Warning: Nonexistent include directory "g2lib"
rm -f gribmod.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib gribmod.F > gribmod.f90
Warning: Nonexistent include directory "g2lib"
rm -f realloc.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib realloc.F > realloc.f90
Warning: Nonexistent include directory "g2lib"
rm -f addfield.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib addfield.F > addfield.f90
Warning: Nonexistent include directory "g2lib"
rm -f addgrid.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib addgrid.F > addgrid.f90
Warning: Nonexistent include directory "g2lib"
rm -f addlocal.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib addlocal.F > addlocal.f90
Warning: Nonexistent include directory "g2lib"
rm -f getfield.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib getfield.F > getfield.f90
Warning: Nonexistent include directory "g2lib"
rm -f gb_info.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib gb_info.F > gb_info.f90
Warning: Nonexistent include directory "g2lib"
rm -f gf_getfld.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib gf_getfld.F > gf_getfld.f90
Warning: Nonexistent include directory "g2lib"
rm -f gf_free.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib gf_free.F > gf_free.f90
Warning: Nonexistent include directory "g2lib"
rm -f gf_unpack1.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib gf_unpack1.F > gf_unpack1.f90
Warning: Nonexistent include directory "g2lib"
rm -f gf_unpack2.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib gf_unpack2.F > gf_unpack2.f90
Warning: Nonexistent include directory "g2lib"
rm -f gf_unpack3.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib gf_unpack3.F > gf_unpack3.f90
Warning: Nonexistent include directory "g2lib"
rm -f gf_unpack4.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib gf_unpack4.F > gf_unpack4.f90
Warning: Nonexistent include directory "g2lib"
rm -f gf_unpack5.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib gf_unpack5.F > gf_unpack5.f90
Warning: Nonexistent include directory "g2lib"
rm -f gf_unpack6.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib gf_unpack6.F > gf_unpack6.f90
Warning: Nonexistent include directory "g2lib"
rm -f gf_unpack7.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib gf_unpack7.F > gf_unpack7.f90
Warning: Nonexistent include directory "g2lib"
rm -f gettemplates.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib gettemplates.F > gettemplates.f90
Warning: Nonexistent include directory "g2lib"
rm -f getlocal.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib getlocal.F > getlocal.f90
Warning: Nonexistent include directory "g2lib"
rm -f getdim.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib getdim.F > getdim.f90
Warning: Nonexistent include directory "g2lib"
rm -f getpoly.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib getpoly.F > getpoly.f90
Warning: Nonexistent include directory "g2lib"
rm -f gribcreate.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib gribcreate.F > gribcreate.f90
Warning: Nonexistent include directory "g2lib"
rm -f gribend.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib gribend.F > gribend.f90
Warning: Nonexistent include directory "g2lib"
rm -f gribinfo.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib gribinfo.F > gribinfo.f90
Warning: Nonexistent include directory "g2lib"
rm -f mkieee.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib mkieee.F > mkieee.f90
Warning: Nonexistent include directory "g2lib"
rm -f rdieee.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib rdieee.F > rdieee.f90
Warning: Nonexistent include directory "g2lib"
rm -f simpack.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib simpack.F > simpack.f90
Warning: Nonexistent include directory "g2lib"
rm -f simunpack.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib simunpack.F > simunpack.f90
Warning: Nonexistent include directory "g2lib"
rm -f cmplxpack.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib cmplxpack.F > cmplxpack.f90
Warning: Nonexistent include directory "g2lib"
rm -f compack.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib compack.F > compack.f90
Warning: Nonexistent include directory "g2lib"
rm -f misspack.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib misspack.F > misspack.f90
Warning: Nonexistent include directory "g2lib"
rm -f pack_gp.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib pack_gp.F > pack_gp.f90
Warning: Nonexistent include directory "g2lib"
rm -f reduce.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib reduce.F > reduce.f90
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib comunpack.F > comunpack.f90
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib specpack.F > specpack.f90
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib specunpack.F > specunpack.f90
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib jpcpack.F > jpcpack.f90
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib jpcunpack.F > jpcunpack.f90
gcc -I. -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -I/home/maslab-6/BIJAY/Build_WRF/LIBRARIES/grib2/include -c dec_jpeg2000.c
rm -f gbytesc.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib gbytesc.F > gbytesc.f90
Warning: Nonexistent include directory "g2lib"
rm -f skgb.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib skgb.F > skgb.f90
Warning: Nonexistent include directory "g2lib"
rm -f ixgb2.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib ixgb2.F > ixgb2.f90
Warning: Nonexistent include directory "g2lib"
rm -f getidx.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib getidx.F > getidx.f90
Warning: Nonexistent include directory "g2lib"
rm -f getg2i.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib getg2i.F > getg2i.f90
Warning: Nonexistent include directory "g2lib"
rm -f getg2ir.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib getg2ir.F > getg2ir.f90
Warning: Nonexistent include directory "g2lib"
rm -f getgb2s.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib getgb2s.F > getgb2s.f90
Warning: Nonexistent include directory "g2lib"
rm -f getgb2r.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib getgb2r.F > getgb2r.f90
Warning: Nonexistent include directory "g2lib"
rm -f getgb2l.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib getgb2l.F > getgb2l.f90
Warning: Nonexistent include directory "g2lib"
rm -f getgb2.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib getgb2.F > getgb2.f90
Warning: Nonexistent include directory "g2lib"
rm -f getgb2p.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib getgb2rp.F > getgb2rp.f90
Warning: Nonexistent include directory "g2lib"
rm -f putgb2.o
/lib/cpp -P -DUSE_JPEG2000 -traditional -I. -Ig2lib g2grids.F > g2grids.f90
Warning: Nonexistent include directory "g2lib"
make[4]: Entering directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3/external/io_grib2'
rm -f grib2tbls_types.o
rm -f io_grib2.o
ar ru ./libio_grib2.a grib2tbls_types.o io_grib2.o read_grib2map.o
ranlib ./libio_grib2.a
make[4]: Leaving directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3/external/io_grib2'
make[3]: Leaving directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3/external/io_grib2'
make[3]: Entering directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3/external/RSL_LITE'
gcc -DFSEEKO64_OK -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c c_code.c
gcc -DFSEEKO64_OK -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c buf_for_proc.c
gcc -DFSEEKO64_OK -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c rsl_malloc.c
gcc -DFSEEKO64_OK -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c rsl_bcast.c
gcc -DFSEEKO64_OK -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c task_for_point.c
gcc -DFSEEKO64_OK -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c period.c
gcc -DFSEEKO64_OK -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c swap.c
gcc -DFSEEKO64_OK -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -c cycle.c
/bin/rm -f librsl_lite.a
ar cr librsl_lite.a c_code.o buf_for_proc.o rsl_malloc.o rsl_bcast.o task_for_point.o period.o swap.o cycle.o f_pack.o f_xpose.o
make[3]: Leaving directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3/external/RSL_LITE'
( if [ ! -e /home/maslab-6/BIJAY/Build_WRF/WRFV3/tools/gen_comms.c ] ; then \
/bin/cp /home/maslab-6/BIJAY/Build_WRF/WRFV3/tools/gen_comms_warning /home/maslab-6/BIJAY/Build_WRF/WRFV3/tools/gen_comms.c ; \
cat /home/maslab-6/BIJAY/Build_WRF/WRFV3/external/RSL_LITE/gen_comms.c >> /home/maslab-6/BIJAY/Build_WRF/WRFV3/tools/gen_comms.c ; fi )
( if [ ! -e module_dm.F ] ; then /bin/cp module_dm_warning module_dm.F ; \
cat /home/maslab-6/BIJAY/Build_WRF/WRFV3/external/RSL_LITE/module_dm.F >> module_dm.F ; fi )
make[2]: Leaving directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3/frame'
make[1]: Leaving directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3'
make[1]: Entering directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3'
--------------------------------------
( cd tools ; make -i -r CC_TOOLS="gcc -DIWORDSIZE=4 -DMAX_HISTORY=25" )
make[2]: Entering directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3/tools'
gcc -DIWORDSIZE=4 -DMAX_HISTORY=25 -c -g registry.c
gcc -DIWORDSIZE=4 -DMAX_HISTORY=25 -c -g my_strtok.c
gcc -DIWORDSIZE=4 -DMAX_HISTORY=25 -c -g reg_parse.c
reg_parse.c: In function ‘pre_parse’:
reg_parse.c:258:10: warning: format not a string literal and no format arguments [-Wformat-security]
sprintf(tracers[ntracers],tokens[F_USE]) ;
^
gcc -DIWORDSIZE=4 -DMAX_HISTORY=25 -c -g data.c
gcc -DIWORDSIZE=4 -DMAX_HISTORY=25 -c -g type.c
gcc -DIWORDSIZE=4 -DMAX_HISTORY=25 -c -g misc.c
gcc -DIWORDSIZE=4 -DMAX_HISTORY=25 -c -g gen_defs.c
gcc -DIWORDSIZE=4 -DMAX_HISTORY=25 -c -g gen_allocs.c
gcc -DIWORDSIZE=4 -DMAX_HISTORY=25 -c -g gen_mod_state_descr.c
gcc -DIWORDSIZE=4 -DMAX_HISTORY=25 -c -g gen_scalar_indices.c
gcc -DIWORDSIZE=4 -DMAX_HISTORY=25 -c -g gen_args.c
gcc -DIWORDSIZE=4 -DMAX_HISTORY=25 -c -g gen_config.c
gcc -DIWORDSIZE=4 -DMAX_HISTORY=25 -c -g sym.c
sym.c: In function ‘sym_init’:
sym.c:77:2: warning: incompatible implicit declaration of built-in function ‘exit’
exit(1) ;
^
sym.c: In function ‘sym_forget’:
sym.c:157:7: warning: incompatible implicit declaration of built-in function ‘exit’
exit(1) ;
^
gcc -DIWORDSIZE=4 -DMAX_HISTORY=25 -c -g symtab_gen.c
gcc -DIWORDSIZE=4 -DMAX_HISTORY=25 -c -g gen_model_data_ord.c
gcc -DIWORDSIZE=4 -DMAX_HISTORY=25 -c -g gen_interp.c
gen_interp.c: In function ‘gen_nest_interp’:
gen_interp.c:77:1: warning: zero-length gnu_printf format string [-Wformat-zero-length]
sprintf(halo_use,"") ;
^
gen_interp.c: In function ‘gen_nest_interp1’:
gen_interp.c:146:9: warning: zero-length gnu_printf format string [-Wformat-zero-length]
else { sprintf(tag,"") ; sprintf(tag2,"") ; }
^
gen_interp.c:146:9: warning: zero-length gnu_printf format string [-Wformat-zero-length]
gcc -DIWORDSIZE=4 -DMAX_HISTORY=25 -c -g gen_comms.c
^
gen_comms.c:1678:5: warning: zero-length gnu_printf format string [-Wformat-zero-length]
sprintf( Shift.use, "" ) ;
^
gen_comms.c:2165:11: warning: zero-length gnu_printf format string [-Wformat-zero-length]
else sprintf(tag,"") ;
^
standard.c:43:9: warning: incompatible implicit declaration of built-in function ‘strncpy’
standard.c:78:11: warning: incompatible implicit declaration of built-in function ‘strcpy’
standard.c:88:13: warning: incompatible implicit declaration of built-in function ‘strcat’
strcat(lineo,linei) ;
/bin/rm -f main/libwrflib.a main/libwrflib.lib
make[1]: Entering directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3'
TRADFLAG="-traditional" ESMF_IO_LIB_EXT="-L/home/maslab-6/BIJAY/Build_WRF/WRFV3/external/esmf_time_f90 -lesmf_time" \
cd ../../frame )
make[2]: Entering directory '/home/maslab-6/BIJAY/Build_WRF/WRFV3/frame'
rm -f wrf_shutdown.o
opening Registry/registry.dimspec
fi
opening Registry/registry.les
including Registry/registry.les
opening Registry/registry.cam
/home/maslab-6/BIJAY/Build_WRF/WRFV3/tools/standard.exe module_sm.bb | /lib/cpp -P > module_sm.f90
rm -f module_sm.b module_sm.bb
if fgrep -iq '!$OMP' module_sm.f90 ; then \
if [ -n "" ] ; then echo COMPILING module_sm.F WITH OMP ; fi ; \
else \
if [ -n "" ] ; then echo COMPILING module_sm.F WITHOUT OMP ; fi ; \
fi
if [ "m4 -G" = NA ] ; then \
/bin/cp ../arch/md_calls.inc . ; \
make[2]: [md_calls.inc] Error 127 (ignored)
gfortran -c -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 module_internal_header_util.f90
opening Registry/registry.io_boilerplate
including Registry/registry.io_boilerplate
opening Registry/io_boilerplate_temporary.inc
including Registry/io_boilerplate_temporary.inc
gcc -DFSEEKO64_OK -c -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 wrf_num_bytes_between.c
rm -f libmassv.o
/home/maslab-6/BIJAY/Build_WRF/WRFV3/tools/standard.exe libmassv.bb | /lib/cpp -P > libmassv.f90
rm -f libmassv.b libmassv.bb
if fgrep -iq '!$OMP' libmassv.f90 ; then \
if [ -n "" ] ; then echo COMPILING libmassv.F WITH OMP ; fi ; \
else \
if [ -n "" ] ; then echo COMPILING libmassv.F WITHOUT OMP ; fi ; \
fi
opening Registry/registry.fire
including Registry/registry.fire
opening Registry/registry.avgflx
including Registry/registry.avgflx
opening Registry/registry.stoch
including Registry/registry.stoch
rm -f collect_on_comm.o
gcc -DFSEEKO64_OK -o collect_on_comm.o -c -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 collect_on_comm.c
gcc -DFSEEKO64_OK -c -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -DIWORDSIZE=4 pack_utils.c
Registry INFO variable counts: 0d 1920 1d 92 2d 595 3d 434
rm -f module_wrf_error.o
if [ -n "" ] ; then echo COMPILING module_wrf_error.F WITH OMP ; fi ; \
fi
module_wrf_error.f90:35.49:

CALL wrf_message( 'FATAL CALLED FROM FILE: '
1
Error: Syntax error in argument list at (1)
module_wrf_error.f90:59.26:

str_with_rc = TRIM(str
1
Error: Syntax error in argument list at (1)
../configure.wrf:308: recipe for target 'module_wrf_error.o' failed
make[2]: [module_wrf_error.o] Error 1 (ignored)
rm -f wrf_debug.o
/lib/cpp -P -I/home/maslab-6/BIJAY/Build_WRF/WRFV3/inc -DEM_CORE=1 -DNMM_CORE=0 -DNMM_MAX_DIM=2600 -DCOAMPS_CORE=0 -DDA_CORE=0 -DEXP_CORE=0 -DIWORDSIZE=4 -DDWORDSIZE=8 -DRWORDSIZE=4 -DLWORDSIZE=4 -DNONSTANDARD_SYSTEM_SUBR -DDM_PARALLEL -DSTUBMPI -DNETCDF -DGRIB2 -DUSE_ALLOCATABLES -DGRIB1 -DINTIO -DLIMIT_ARGS -DCONFIG_BUF_LEN=32768 -DMAX_DOMAINS_F=21 -DMAX_HISTORY=25 -DNMM_NEST=0 -I. -traditional wrf_debug.F > wrf_debug.bb
/home/maslab-6/BIJAY/Build_WRF/WRFV3/tools/standard.exe wrf_debug.bb | /lib/cpp -P > wrf_debug.f90
rm -f wrf_debug.b wrf_debug.bb
if fgrep -iq '!$OMP' wrf_debug.f90 ; then \
if [ -n "" ] ; then echo COMPILING wrf_debug.F WITH OMP ; fi ; \
gfortran -o wrf_debug.o -c -O2 -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -cpp -fconvert=big-endian -frecord-marker=4 -I../dyn_em -I../dyn_nmm -I/home/maslab-6/BIJAY/Build_WRF/WRFV3/external/esmf_time_f90 -I/home/maslab-6/BIJAY/Build_WRF/WRFV3/main -I/home/maslab-6/BIJAY/Build_WRF/WRFV3/external/io_netcdf -I/home/maslab-6/BIJAY/Build_WRF/WRFV3/external/io_int -I/home/maslab-6/BIJAY/Build_WRF/WRFV3/frame -I/home/maslab-6/BIJAY/Build_WRF/WRFV3/share -I/home/maslab-6/BIJAY/Build_WRF/WRFV3/phys -I/home/maslab-6/BIJAY/Build_WRF/WRFV3/chem -I/home/maslab-6/BIJAY/Build_WRF/WRFV3/inc -I/home/maslab-6/BIJAY/Build_WRF/LIBRARIES/netcdf/include wrf_debug.f90 ; \
else \
if [ -n "" ] ; then echo COMPILING wrf_debug.F WITHOUT OMP ; fi ; \
@

FFIX) $(FCNOOPT) $(FCBASEOPTS) $(MODULE_DIRS) $*.f90


and the module related error continues
9201 CALL wrf_message(" ------ ERROR while reading namelist "
1
Error: Syntax error in argument list at (1)
module_configure.f90:8974.33:

9202 CALL wrf_message("Namelist "
1
Error: Syntax error in argument list at (1)
module_configure.f90:8975.23:

" Using registry defaults for variables in "
1
Error: Invalid character in name at (1)
module_configure.f90:22285.92:

CALL wrf_debug(0, "-- Are pd_moist, pd_chem, pd_tke, or pd_scalar still in your "
1
Error: Syntax error in argument list at (1)
module_configure.f90:22286.35:

TRIM(nml_name)
1
Error: 'trim' at (1) is not a variable
module_configure.f90:22287.93:

CALL wrf_debug(0, "-- Replace them with moist_adv_opt, chem_adv_opt, tke_adv_opt "
1
Error: Syntax error in argument list at (1)
module_configure.f90:22288.30:

" and scalar_adv_opt, respectively.")
1
Error: Invalid character in name at (1)
module_configure.f90:22293.59:

CALL wrf_debug(0, "-- Is ucmcall still in your "
1
Error: Syntax error in argument list at (1)
module_configure.f90:22299.64:

CALL wrf_debug(0, "-- Is obs_nobs_prt still in your "
1
Error: Syntax error in argument list at (1)
module_configure.f90:22305.100:

CALL wrf_debug(0, "-- Are global, print_detail_airep, print_detail_timing still in your "
1
Error: Syntax error in argument list at (1)
module_configure.f90:22306.34:

TRIM(nml_name)
1
Error: 'trim' at (1) is not a variable
module_configure.f90:22307.89:

CALL wrf_debug(0, "-- Remove global, print_detail_airep, print_detail_timing "
1
Error: Syntax error in argument list at (1)
module_configure.f90:22308.30:

"from wrfvar1 namelist as they are obsolete.")
1
Error: Invalid character in name at (1)
module_configure.f90:22313.93:

CALL wrf_debug(0, "-- Are write_qcw, write_qrn, write_qci, write_qsn, write_qgr, "
1
Error: Syntax error in argument list at (1)
module_configure.f90:22314.30:

"write_filtered_obs still in your "
1
Error: Invalid character in name at (1)
module_configure.f90:22315.34:

TRIM(nml_name)
1
Error: 'trim' at (1) is not a variable
module_configure.f90:22316.96:

CALL wrf_debug(0, "-- Remove write_qcw, write_qrn, write_qci, write_qsn, write_qgr, "
1
Error: Syntax error in argument list at (1)
module_configure.f90:22317.30:

"write_filtered_obs as they are obsolete.")
1
Error: Invalid character in name at (1)
module_configure.f90:22322.66:

CALL wrf_debug(0, "-- Is use_eos_radobs still in your "
1
Error: Syntax error in argument list at (1)
module_configure.f90:22323.34:

TRIM(nml_name)
1
Error: 'trim' at (1) is not a variable
module_configure.f90:22329.91:

CALL wrf_debug(0, "-- Are use_crtm_kmatrix_fast, spccoeff_file, taucoeff_file, "
1
Error: Syntax error in argument list at (1)
bijayguha
 
Posts: 8
Joined: Wed Jul 25, 2018 8:18 am

Re: Fatal Error: Can't open module file 'wrf_data.mod' for r

Postby bijayguha » Wed May 15, 2019 7:54 am

And the configure file is..


# configure.wrf
#
# This file was automatically generated by the configure script in the
# top level directory. You may make changes to the settings in this
# file but be aware they will be overwritten each time you run configure.
# Ordinarily, it is necessary to run configure once, when the code is
# first installed.
#
# To permanently change options, change the settings for your platform
# in the file arch/configure.defaults then rerun configure.
#
SHELL = /bin/sh
DEVTOP = `pwd`
LIBINCLUDE = .
.SUFFIXES: .F .i .o .f90 .c

#### Get core settings from environment (set in compile script)
#### Note to add a core, this has to be added to.

COREDEFS = -DEM_CORE=$(WRF_EM_CORE) \
-DNMM_CORE=$(WRF_NMM_CORE) -DNMM_MAX_DIM=2600 \
-DCOAMPS_CORE=$(WRF_COAMPS_CORE) \
-DDA_CORE=$(WRF_DA_CORE) \
-DEXP_CORE=$(WRF_EXP_CORE)

#### Single location for defining total number of domains. You need
#### at least 1 + 2*(number of total nests). For example, 1 coarse
#### grid + three fine grids = 1 + 2(3) = 7, so MAX_DOMAINS=7.

MAX_DOMAINS = 21

#### DM buffer length for the configuration flags.

CONFIG_BUF_LEN = 32768

#### Size of bitmasks (in 4byte integers) of stream masks for WRF I/O

MAX_HISTORY = 25

IWORDSIZE = 4
DWORDSIZE = 8
LWORDSIZE = 4

##############################################################################
#### The settings in this section are defaults that may be overridden by the
#### architecture-specific settings in the next section.
##############################################################################

##############################################################################
#### NOTE: Do not modify these default values here. To override these
#### values, make changes after "Architecture specific settings".
##############################################################################

#### Native size (in bytes) of Fortran REAL data type on this architecture ####
#### Note: to change real wordsize (for example, to promote REALs from
#### 4-byte to 8-byte), modify the definition of RWORDSIZE in the
#### section following "Architecture specific settings". Do not
#### change NATIVE_RWORDSIZE as is it architecture-specific.
NATIVE_RWORDSIZE = 4

#### Default sed command and script for Fortran source files ####
#SED_FTN = sed -f $(WRF_SRC_ROOT_DIR)/arch/standard.sed
SED_FTN = $(WRF_SRC_ROOT_DIR)/tools/standard.exe

# Hack to work around $(PWD) not changing during OSF1 build.
# $(IO_GRIB_SHARE_DIR) is reset during the OSF1 build only.
IO_GRIB_SHARE_DIR =

#### ESMF switches ####
#### These are set up by Config.pl ####
# switch to use separately installed ESMF library for coupling: 1==true
ESMF_COUPLING = 0
# select dependences on module_utility.o
ESMF_MOD_DEPENDENCE = $(WRF_SRC_ROOT_DIR)/external/esmf_time_f90/module_utility.o
# select -I options for external/io_esmf vs. external/esmf_time_f90
ESMF_IO_INC = -I$(WRF_SRC_ROOT_DIR)/external/esmf_time_f90
# select -I options for separately installed ESMF library, if present
ESMF_MOD_INC = $(ESMF_IO_INC)
# select cpp token for external/io_esmf vs. external/esmf_time_f90
ESMF_IO_DEFS =
# select build target for external/io_esmf vs. external/esmf_time_f90
ESMF_TARGET = esmf_time

# ESMFINCLUDEGOESHERE


##############################################################################

LIBWRFLIB = libwrflib.a


#### Architecture specific settings ####

# Settings for x86_64 Linux, gfortran compiler with gcc (serial)
#
DMPARALLEL = 1
OMPCPP = # -D_OPENMP
OMP = # -fopenmp
OMPCC = # -fopenmp
SFC = gfortran
SCC = gcc
CCOMP = gcc
DM_FC = mpif90
DM_CC = mpicc
FC = $(SFC)
CC = $(SCC) -DFSEEKO64_OK
LD = $(FC)
RWORDSIZE = $(NATIVE_RWORDSIZE)
PROMOTION = # -fdefault-real-8 # uncomment manually
ARCH_LOCAL = -DNONSTANDARD_SYSTEM_SUBR
CFLAGS_LOCAL = -w -O3 -c -DLANDREAD_STUB
LDFLAGS_LOCAL =
CPLUSPLUSLIB =
ESMF_LDFLAG = $(CPLUSPLUSLIB)
FCOPTIM = -O2 -ftree-vectorize -ftree-loop-linear -funroll-loops
FCREDUCEDOPT = $(FCOPTIM)
FCNOOPT = -O0
FCDEBUG = # -g $(FCNOOPT)
FORMAT_FIXED = -ffixed-form -cpp
FORMAT_FREE = -ffree-form -ffree-line-length-none -cpp
FCSUFFIX =
BYTESWAPIO = -fconvert=big-endian -frecord-marker=4
FCBASEOPTS_NO_G = -w $(FORMAT_FREE) $(BYTESWAPIO)
FCBASEOPTS = $(FCBASEOPTS_NO_G) $(FCDEBUG)
MODULE_SRCH_FLAG =
TRADFLAG = -traditional
CPP = /lib/cpp -P
AR = ar
ARFLAGS = ru
M4 = m4 -G
RANLIB = ranlib
CC_TOOLS = $(SCC)

###########################################################
######################
# POSTAMBLE

FGREP = fgrep -iq

ARCHFLAGS = $(COREDEFS) -DIWORDSIZE=$(IWORDSIZE) -DDWORDSIZE=$(DWORDSIZE) -DRWORDSIZE=$(RWORDSIZE) -DLWORDSIZE=$(LWORDSIZE) \
$(ARCH_LOCAL) \
$(DA_ARCHFLAGS) \
-DDM_PARALLEL \
-DSTUBMPI \
-DNETCDF \
\
\
-DGRIB2 \
\
\
\
\
\
-DUSE_ALLOCATABLES \
-DGRIB1 \
-DINTIO \
-DLIMIT_ARGS \
-DCONFIG_BUF_LEN=$(CONFIG_BUF_LEN) \
-DMAX_DOMAINS_F=$(MAX_DOMAINS) \
-DMAX_HISTORY=$(MAX_HISTORY) \
-DNMM_NEST=$(WRF_NMM_NEST)
CFLAGS = $(CFLAGS_LOCAL) -DDM_PARALLEL -DSTUBMPI \
ESMF_LIB_FLAGS =
# ESMF 5 -- these are defined in esmf.mk, included above
ESMF_IO_LIB = -L$(WRF_SRC_ROOT_DIR)/external/esmf_time_f90 -lesmf_time
ESMF_IO_LIB_EXT = -L$(WRF_SRC_ROOT_DIR)/external/esmf_time_f90 -lesmf_time
INCLUDE_MODULES = $(MODULE_SRCH_FLAG) \
$(ESMF_MOD_INC) $(ESMF_LIB_FLAGS) \
-I$(WRF_SRC_ROOT_DIR)/main \
-I$(WRF_SRC_ROOT_DIR)/external/io_netcdf \
-I$(WRF_SRC_ROOT_DIR)/external/io_int \
-I$(WRF_SRC_ROOT_DIR)/frame \
-I$(WRF_SRC_ROOT_DIR)/share \
-I$(WRF_SRC_ROOT_DIR)/phys \
-I$(WRF_SRC_ROOT_DIR)/chem -I$(WRF_SRC_ROOT_DIR)/inc \
-I$(NETCDFPATH)/include \

REGISTRY = Registry

LIB_BUNDLED = \
$(WRF_SRC_ROOT_DIR)/external/fftpack/fftpack5/libfftpack.a \
$(WRF_SRC_ROOT_DIR)/external/io_grib1/libio_grib1.a \
$(WRF_SRC_ROOT_DIR)/external/io_grib_share/libio_grib_share.a \
$(WRF_SRC_ROOT_DIR)/external/io_int/libwrfio_int.a \
$(ESMF_IO_LIB) \
$(WRF_SRC_ROOT_DIR)/external/RSL_LITE/librsl_lite.a \
$(WRF_SRC_ROOT_DIR)/frame/module_internal_header_util.o \
$(WRF_SRC_ROOT_DIR)/frame/pack_utils.o

LIB_EXTERNAL = \

LIB = $(LIB_BUNDLED) $(LIB_EXTERNAL) $(LIB_LOCAL)
LDFLAGS = $(OMP) $(FCFLAGS) $(LDFLAGS_LOCAL)
ENVCOMPDEFS =
WRF_CHEM = 0
CPPFLAGS = $(ARCHFLAGS) $(ENVCOMPDEFS) -I$(LIBINCLUDE) $(TRADFLAG)
NETCDFPATH = /home/maslab-6/BIJAY/Build_WRF/LIBRARIES/netcdf
PNETCDFPATH =

bundled: wrf_ioapi_includes wrfio_grib_share wrfio_grib1 wrfio_int esmf_time fftpack
external: wrfio_nf wrfio_grib2 $(WRF_SRC_ROOT_DIR)/external/RSL_LITE/librsl_lite.a gen_comms_rsllite module_dm_rsllite $(ESMF_TARGET)

######################
externals: bundled external

gen_comms_serial :
( /bin/rm -f $(WRF_SRC_ROOT_DIR)/tools/gen_comms.c )

module_dm_serial :
( if [ ! -e module_dm.F ] ; then /bin/cp module_dm_warning module_dm.F ; cat module_dm_stubs.F >> module_dm.F ; fi )

gen_comms_rsllite :
( if [ ! -e $(WRF_SRC_ROOT_DIR)/tools/gen_comms.c ] ; then \
/bin/cp $(WRF_SRC_ROOT_DIR)/tools/gen_comms_warning $(WRF_SRC_ROOT_DIR)/tools/gen_comms.c ; \
cat $(WRF_SRC_ROOT_DIR)/external/RSL_LITE/gen_comms.c >> $(WRF_SRC_ROOT_DIR)/tools/gen_comms.c ; fi )

module_dm_rsllite :
( if [ ! -e module_dm.F ] ; then /bin/cp module_dm_warning module_dm.F ; \
cat $(WRF_SRC_ROOT_DIR)/external/RSL_LITE/module_dm.F >> module_dm.F ; fi )

wrfio_nf :
( cd $(WRF_SRC_ROOT_DIR)/external/io_netcdf ; \
make NETCDFPATH="$(NETCDFPATH)" RANLIB="$(RANLIB)" CPP="$(CPP)" \
CC="$(SCC)" CFLAGS="$(CFLAGS)" \
FC="$(SFC) $(PROMOTION) $(FCFLAGS)" TRADFLAG="$(TRADFLAG)" AR="$(AR)" ARFLAGS="$(ARFLAGS)" )

wrfio_pnf :
( cd $(WRF_SRC_ROOT_DIR)/external/io_pnetcdf ; \
make NETCDFPATH="$(PNETCDFPATH)" RANLIB="$(RANLIB)" CPP="$(CPP) $(ARCHFLAGS)" \
FC="$(FC) $(PROMOTION) $(FCFLAGS)" TRADFLAG="$(TRADFLAG)" AR="$(AR)" ARFLAGS="$(ARFLAGS)" )

wrfio_grib_share :
( cd $(WRF_SRC_ROOT_DIR)/external/io_grib_share ; \
make CC="$(SCC)" CFLAGS="$(CFLAGS)" RM="$(RM)" RANLIB="$(RANLIB)" CPP="$(CPP)" \
FC="$(SFC) $(PROMOTION) -I. $(FCDEBUG) $(FCBASEOPTS) $(FCSUFFIX)" TRADFLAG="$(TRADFLAG)" AR="$(AR)" ARFLAGS="$(ARFLAGS)" archive)

wrfio_grib1 :
( cd $(WRF_SRC_ROOT_DIR)/external/io_grib1 ; \
make CC="$(SCC)" CFLAGS="$(CFLAGS)" RM="$(RM)" RANLIB="$(RANLIB)" CPP="$(CPP)" \
FC="$(SFC) $(PROMOTION) -I. $(FCDEBUG) $(FCBASEOPTS) $(FCSUFFIX)" TRADFLAG="$(TRADFLAG)" AR="$(AR)" ARFLAGS="$(ARFLAGS)" archive)

wrfio_grib2 :
( cd $(WRF_SRC_ROOT_DIR)/external/io_grib2 ; \
make CC="$(SCC)" CFLAGS="$(CFLAGS) -I/home/maslab-6/BIJAY/Build_WRF/LIBRARIES/grib2/include" RM="$(RM)" RANLIB="$(RANLIB)" \
CPP="$(CPP)" \
FC="$(SFC) $(PROMOTION) -I. $(FCDEBUG) $(FCBASEOPTS) $(FCSUFFIX)" TRADFLAG="-traditional" AR="$(AR)" ARFLAGS="$(ARFLAGS)" \
FIXED="$(FORMAT_FIXED)" archive)

wrfio_int :
( cd $(WRF_SRC_ROOT_DIR)/external/io_int ; \
make CC="$(CC)" RM="$(RM)" RANLIB="$(RANLIB)" CPP="$(CPP)" \
FC="$(SFC) $(PROMOTION) $(FCDEBUG) $(FCBASEOPTS)" FGREP="$(FGREP)" \
TRADFLAG="$(TRADFLAG)" AR="$(AR)" ARFLAGS="$(ARFLAGS)" ARCHFLAGS="$(ARCHFLAGS)" all )

esmf_time :
( cd $(WRF_SRC_ROOT_DIR)/external/esmf_time_f90 ; \
make FC="$(SFC) $(PROMOTION) $(FCDEBUG) $(FCBASEOPTS)" RANLIB="$(RANLIB)" \
CPP="$(CPP) -I$(WRF_SRC_ROOT_DIR)/inc -I. $(ARCHFLAGS) $(TRADFLAG)" AR="$(AR)" ARFLAGS="$(ARFLAGS)" )

fftpack :
( cd $(WRF_SRC_ROOT_DIR)/external/fftpack/fftpack5 ; \
make FC="$(SFC)" FFLAGS="$(PROMOTION) $(FCDEBUG) $(FCBASEOPTS)" RANLIB="$(RANLIB)" AR="$(AR)" ARFLAGS="$(ARFLAGS)" )

atm_ocn :
( cd $(WRF_SRC_ROOT_DIR)/external/atm_ocn ; \
make CC="$(SCC)" CFLAGS="$(CFLAGS) " RM="$(RM)" RANLIB="$(RANLIB)" \
CPP="$(CPP)" \
FC="$(DM_FC) $(PROMOTION) -I. $(FCDEBUG) $(FCBASEOPTS) $(FCSUFFIX)" TRADFLAG="-traditional" AR="$(AR)" ARFLAGS="$(ARFLAGS)" \
FIXED="$(FORMAT_FIXED)" )

$(WRF_SRC_ROOT_DIR)/external/RSL_LITE/librsl_lite.a :
( cd $(WRF_SRC_ROOT_DIR)/external/RSL_LITE ; make CC="$(CC) $(CFLAGS)" \
FC="$(FC) $(FCFLAGS) $(PROMOTION) $(BYTESWAPIO)" \
CPP="$(CPP) -I. $(ARCHFLAGS) $(TRADFLAG)" AR="$(AR)" ARFLAGS="$(ARFLAGS)" ;\
$(RANLIB) $(WRF_SRC_ROOT_DIR)/external/RSL_LITE/librsl_lite.a )

######################
# Macros, these should be generic for all machines

LN = ln -sf
MAKE = make -i -r
RM = rm -f


# These sub-directory builds are identical across all architectures

wrf_ioapi_includes :
( cd $(WRF_SRC_ROOT_DIR)/external/ioapi_share ; \
$(MAKE) NATIVE_RWORDSIZE="$(NATIVE_RWORDSIZE)" RWORDSIZE="$(RWORDSIZE)" AR="$(AR)" ARFLAGS="$(ARFLAGS)" )

wrfio_esmf :
( cd $(WRF_SRC_ROOT_DIR)/external/io_esmf ; \
make FC="$(FC) $(PROMOTION) $(FCDEBUG) $(FCBASEOPTS) $(ESMF_MOD_INC)" \
RANLIB="$(RANLIB)" CPP="$(CPP) $(POUND_DEF) " AR="$(AR)" ARFLAGS="$(ARFLAGS)" )

# There is probably no reason to modify these rules

.F.i:
$(RM) $@
$(CPP) -I$(WRF_SRC_ROOT_DIR)/inc $(CPPFLAGS) $*.F > $@
mv $*.i $(DEVTOP)/pick/$*.f90
cp $*.F $(DEVTOP)/pick

.F.o:
$(RM) $@
$(CPP) -I$(WRF_SRC_ROOT_DIR)/inc $(CPPFLAGS) $(OMPCPP) $*.F > $*.bb
$(SED_FTN) $*.bb | $(CPP) > $*.f90
$(RM) $*.b $*.bb
@ if echo $(ARCHFLAGS) | $(FGREP) 'DVAR4D'; then \
echo COMPILING $*.F for 4DVAR ; \
$(WRF_SRC_ROOT_DIR)/var/build/da_name_space.pl $*.f90 > $*.f90.tmp ; \
mv $*.f90.tmp $*.f90 ; \
fi
if $(FGREP) '!$$OMP' $*.f90 ; then \
if [ -n "$(OMP)" ] ; then echo COMPILING $*.F WITH OMP ; fi ; \
$(FC) -o $@ -c $(FCFLAGS) $(OMP) $(MODULE_DIRS) $(PROMOTION) $(FCSUFFIX) $*.f90 ; \
else \
if [ -n "$(OMP)" ] ; then echo COMPILING $*.F WITHOUT OMP ; fi ; \
$(FC) -o $@ -c $(FCFLAGS) $(MODULE_DIRS) $(PROMOTION) $(FCSUFFIX) $*.f90 ; \
fi


.F.f90:
$(RM) $@
$(SED_FTN) $*.F > $*.b
$(CPP) -I$(WRF_SRC_ROOT_DIR)/inc $(CPPFLAGS) $*.b > $@
$(RM) $*.b

.f90.o:
$(RM) $@
$(FC) -o $@ -c $(FCFLAGS) $(PROMOTION) $(FCSUFFIX) $*.f90

setfeenv.o : setfeenv.c
$(RM) $@
$(CCOMP) -o $@ -c $(CFLAGS) $(OMPCC) $*.c

.c.o:
$(RM) $@
$(CC) -o $@ -c $(CFLAGS) $*.c

# A little more adventurous. Allow full opt on
# mediation_integrate.o \
# shift_domain_em.o \
# solve_em.o <-- gets a little kick from SOLVE_EM_SPECIAL too, if defined
# mediation_feedback_domain.o : mediation_feedback_domain.F
# mediation_force_domain.o : mediation_force_domain.F
# mediation_interp_domain.o : mediation_interp_domain.F

# compile these without high optimization to speed compile
convert_nmm.o : convert_nmm.F
init_modules_em.o : init_modules_em.F
input_wrf.o : input_wrf.F
module_io.o : module_io.F
module_comm_dm.o : module_comm_dm.F
module_comm_dm_0.o : module_comm_dm_0.F
module_comm_dm_1.o : module_comm_dm_1.F
module_comm_dm_2.o : module_comm_dm_2.F
module_comm_dm_3.o : module_comm_dm_3.F
module_comm_nesting_dm.o : module_comm_nesting_dm.F
module_configure.o : module_configure.F
module_dm.o : module_dm.F
module_domain.o : module_domain.F
module_domain_type.o : module_domain_type.F
module_alloc_space_0.o : module_alloc_space_0.F
module_alloc_space_1.o : module_alloc_space_1.F
module_alloc_space_2.o : module_alloc_space_2.F
module_alloc_space_3.o : module_alloc_space_3.F
module_alloc_space_4.o : module_alloc_space_4.F
module_alloc_space_5.o : module_alloc_space_5.F
module_alloc_space_6.o : module_alloc_space_6.F
module_alloc_space_7.o : module_alloc_space_7.F
module_alloc_space_8.o : module_alloc_space_8.F
module_alloc_space_9.o : module_alloc_space_9.F
module_tiles.o : module_tiles.F
module_fddaobs_rtfdda.o : module_fddaobs_rtfdda.F
module_initialize.o : module_initialize.F
module_physics_init.o : module_physics_init.F
module_initialize_b_wave.o : module_initialize_b_wave.F
module_initialize_hill2d_x.o : module_initialize_hill2d_x.F
module_initialize_quarter_ss.o : module_initialize_quarter_ss.F
module_initialize_real.o : module_initialize_real.F
module_initialize_real.o: module_initialize_real.F
module_initialize_squall2d_x.o : module_initialize_squall2d_x.F
module_initialize_squall2d_y.o : module_initialize_squall2d_y.F
module_integrate.o : module_integrate.F
module_io_mm5.o : module_io_mm5.F
module_io_wrf.o : module_io_wrf.F
module_si_io.o : module_si_io.F
module_state_description.o : module_state_description.F
output_wrf.o : output_wrf.F
solve_interface.o : solve_interface.F
start_domain.o : start_domain.F
start_domain_nmm.o : start_domain_nmm.F
start_em.o : start_em.F
wrf_bdyin.o : wrf_bdyin.F
wrf_bdyout.o : wrf_bdyout.F
wrf_ext_read_field.o : wrf_ext_read_field.F
wrf_ext_write_field.o : wrf_ext_write_field.F
wrf_fddaobs_in.o : wrf_fddaobs_in.F
wrf_histin.o : wrf_histin.F
wrf_histout.o : wrf_histout.F
wrf_inputin.o : wrf_inputin.F
wrf_inputout.o : wrf_inputout.F
wrf_restartin.o : wrf_restartin.F
wrf_restartout.o : wrf_restartout.F
wrf_tsin.o : wrf_tsin.F
nl_get_0_routines.o : nl_get_0_routines.F
nl_get_1_routines.o : nl_get_1_routines.F
nl_set_0_routines.o : nl_set_0_routines.F
nl_set_1_routines.o : nl_set_1_routines.F

convert_nmm.o \
init_modules_em.o \
module_dm.o \
module_fddaobs_rtfdda.o \
module_initialize.o \
module_initialize_b_wave.o \
module_initialize_hill2d_x.o \
module_initialize_quarter_ss.o \
module_initialize_real.o \
module_initialize_squall2d_x.o \
module_initialize_squall2d_y.o \
module_integrate.o \
module_io_mm5.o \
module_io_wrf.o \
module_si_io.o \
module_tiles.o \
output_wrf.o \
solve_interface.o \
start_domain.o \
start_domain_nmm.o \
shift_domain_nmm.o \
start_em.o \
wrf_fddaobs_in.o \
wrf_tsin.o :
$(RM) $@
$(SED_FTN) $*.F > $*.b
$(CPP) -I$(WRF_SRC_ROOT_DIR)/inc $(CPPFLAGS) $(OMPCPP) $*.b > $*.f90
$(RM) $*.b
@ if echo $(ARCHFLAGS) | $(FGREP) 'DVAR4D'; then \
echo COMPILING $*.F for 4DVAR ; \
$(WRF_SRC_ROOT_DIR)/var/build/da_name_space.pl $*.f90 > $*.f90.tmp ; \
mv $*.f90.tmp $*.f90 ; \
fi
if $(FGREP) '!$$OMP' $*.f90 ; then \
if [ -n "$(OMP)" ] ; then echo COMPILING $*.F WITH OMP ; fi ; \
$(FC) -c $(PROMOTION) $(FCNOOPT) $(FCBASEOPTS) $(MODULE_DIRS) $(FCSUFFIX) $(OMP) $*.f90 ; \
else \
if [ -n "$(OMP)" ] ; then echo COMPILING $*.F WITHOUT OMP ; fi ; \
$(FC) -c $(PROMOTION) $(FCNOOPT) $(FCBASEOPTS) $(MODULE_DIRS) $(FCSUFFIX) $*.f90 ; \
fi

#solve_em.o :
# $(RM) $@
# $(SED_FTN) $*.F > $*.b
# $(CPP) -I$(WRF_SRC_ROOT_DIR)/inc $(CPPFLAGS) $*.b > $*.f90
# $(RM) $*.b
# $(FC) -o $@ -c $(FCFLAGS) $(MODULE_DIRS) $(PROMOTION) $(FCSUFFIX) $(SOLVE_EM_SPECIAL) $(OMP) $*.f90

module_sf_ruclsm.o : module_sf_ruclsm.F

module_sf_ruclsm.o :
$(RM) $@
$(SED_FTN) $*.F > $*.b
$(CPP) -I$(WRF_SRC_ROOT_DIR)/inc $(CPPFLAGS) $(OMPCPP) $*.b > $*.f90
$(RM) $*.b
if $(FGREP) '!$$OMP' $*.f90 ; then \
echo COMPILING $*.F WITH OMP ; \
if [ -n "$(OMP)" ] ; then echo COMPILING $*.F WITH OMP ; fi ; \
$(FC) -c $(PROMOTION) $(FCREDUCEDOPT) $(FCBASEOPTS) $(MODULE_DIRS) $(FCSUFFIX) $(OMP) $*.f90 ; \
else \
if [ -n "$(OMP)" ] ; then echo COMPILING $*.F WITHOUT OMP ; fi ; \
$(FC) -c $(PROMOTION) $(FCREDUCEDOPT) $(FCBASEOPTS) $(MODULE_DIRS) $(FCSUFFIX) $*.f90 ; \
fi

# compile without OMP
input_wrf.o \
module_domain.o \
module_domain_type.o \
module_physics_init.o \
module_io.o \
wrf_bdyin.o \
wrf_bdyout.o \
wrf_ext_read_field.o \
wrf_ext_write_field.o \
wrf_histin.o \
wrf_histout.o \
wrf_inputin.o \
wrf_inputout.o \
wrf_restartin.o \
wrf_restartout.o \
module_state_description.o \
module_alloc_space.o \
module_alloc_space_0.o \
module_alloc_space_1.o \
module_alloc_space_2.o \
module_alloc_space_3.o \
module_alloc_space_4.o \
module_alloc_space_5.o \
module_alloc_space_6.o \
module_alloc_space_7.o \
module_alloc_space_8.o \
module_alloc_space_9.o \
module_comm_dm.o \
module_comm_dm_0.o \
module_comm_dm_1.o \
module_comm_dm_2.o \
module_comm_dm_3.o \
module_comm_nesting_dm.o \
module_configure.o :
$(RM) $@
$(CPP) -I$(WRF_SRC_ROOT_DIR)/inc $(CPPFLAGS) $(OMPCPP) $*.F > $*.bb
$(SED_FTN) $*.bb | $(CPP) > $*.f90
@ if echo $(ARCHFLAGS) | $(FGREP) 'DVAR4D'; then \
echo COMPILING $*.F for 4DVAR ; \
$(WRF_SRC_ROOT_DIR)/var/build/da_name_space.pl $*.f90 > $*.f90.tmp ; \
mv $*.f90.tmp $*.f90 ; \
fi
$(RM) $*.b $*.bb
$(FC) -c $(PROMOTION) $(FCSUFFIX) $(FCNOOPT) $(FCBASEOPTS) $(MODULE_DIRS) $*.f90
bijayguha
 
Posts: 8
Joined: Wed Jul 25, 2018 8:18 am


Return to Installation

Who is online

Users browsing this forum: No registered users and 8 guests