添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
活泼的灌汤包  ·  DS-832 神仙色 ...·  1 月前    · 
知识渊博的风衣  ·  TiDB Data Type | TiDB ...·  3 月前    · 
冷静的猴子  ·  NBA / ...·  3 月前    · 
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
(1)I installed it according to the teaching of this website.
http://www2.mmm.ucar.edu/wrf/OnLineTutorial/compilation_tutorial.php#STEP1
(2)I have the following error when compiling WPS3.9.1.
[ybjin@inode1 WPS]$ ./compile > log.compile
read_geogrid.c:23:0: warning: "BIG_ENDIAN" redefined [enabled by default]
#define BIG_ENDIAN 0
In file included from /usr/include/bits/waitstatus.h:64:0,
from /usr/include/stdlib.h:42,
from read_geogrid.c:12:
/usr/include/endian.h:46:0: note: this is the location of the previous definition
# define BIG_ENDIAN __BIG_ENDIAN
read_geogrid.c:24:0: warning: "LITTLE_ENDIAN" redefined [enabled by default]
#define LITTLE_ENDIAN 1
In file included from /usr/include/bits/waitstatus.h:64:0,
from /usr/include/stdlib.h:42,
from read_geogrid.c:12:
/usr/include/endian.h:45:0: note: this is the location of the previous definition
# define LITTLE_ENDIAN __LITTLE_ENDIAN
read_geogrid.c: In function ‘read_geogrid_’:
read_geogrid.c:124:13: warning: left shift count >= width of type [enabled by default]
if ((*isigned) && (ival > (1 << 31))) ival -= (1 << 32);
Makefile:44: warning: overriding recipe for target `.f.o'
/media/small/ybjin/WRFV3.9.1.1/Build_WRF/WPS/configure.wps:100: warning: ignoring old recipe for target `.f.o'
Makefile:48: warning: overriding recipe for target `.c.o'
/media/small/ybjin/WRFV3.9.1.1/Build_WRF/WPS/configure.wps:96: warning: ignoring old recipe for target `.c.o'
ar: creating libw3.a
Makefile:67: warning: overriding recipe for target `.F.o'
/media/small/ybjin/WRFV3.9.1.1/Build_WRF/WPS/configure.wps:104: warning: ignoring old recipe for target `.F.o'
Makefile:72: warning: overriding recipe for target `.f.o'
/media/small/ybjin/WRFV3.9.1.1/Build_WRF/WPS/configure.wps:100: warning: ignoring old recipe for target `.f.o'
Makefile:75: warning: overriding recipe for target `.c.o'
/media/small/ybjin/WRFV3.9.1.1/Build_WRF/WPS/configure.wps:96: warning: ignoring old recipe for target `.c.o'
ar: creating libg2_4.a
Makefile:90: warning: overriding recipe for target `.F.o'
../../configure.wps:104: warning: ignoring old recipe for target `.F.o'
Makefile:95: warning: overriding recipe for target `.c.o'
../../configure.wps:96: warning: ignoring old recipe for target `.c.o'
ar: creating libpgu.a
/data/ybjin/WRFV3.9.1.1/Build_WRF/LIBRARIES/grib2/lib/libjasper.a(jas_stream.o): In function `jas_stream_tmpfile':
/data/ybjin/WRFV3.9.1.1/Build_WRF/LIBRARIES/jasper-1.900.1/src/libjasper/base/jas_stream.c:368: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
scan_input.f90:14.8:
use netcdf
Fatal Error: Can't open module file 'netcdf.mod' for reading at (1): No such file or directory
make[1]: [scan_input.o] Error 1 (ignored)
mpas_mesh.f90:14.8:
use scan_input
Fatal Error: Can't open module file 'scan_input.mod' for reading at (1): No such file or directory
make[1]: [mpas_mesh.o] Error 1 (ignored)
remapper.f90:14.8:
use mpas_mesh
Fatal Error: Can't open module file 'mpas_mesh.mod' for reading at (1): No such file or directory
make[1]: [remapper.o] Error 1 (ignored)
process_domain_module.f90:14.7:
use mpas_mesh
Fatal Error: Can't open module file 'mpas_mesh.mod' for reading at (1): No such file or directory
make[1]: [process_domain_module.o] Error 1 (ignored)
metgrid.f90:23.7:
use process_domain_module
Fatal Error: Can't open module file 'process_domain_module.mod' for reading at (1): No such file or directory
make[1]: [metgrid.o] Error 1 (ignored)
gfortran: error: metgrid.o: No such file or directory
gfortran: error: process_domain_module.o: No such file or directory
gfortran: error: scan_input.o: No such file or directory
gfortran: error: mpas_mesh.o: No such file or directory
gfortran: error: remapper.o: No such file or directory
make[1]: [metgrid.exe] Error 1 (ignored)
Makefile:90: warning: overriding recipe for target `.F.o'
../../configure.wps:104: warning: ignoring old recipe for target `.F.o'
Makefile:95: warning: overriding recipe for target `.c.o'
../../configure.wps:96: warning: ignoring old recipe for target `.c.o'
g1print.f90:661.71:
'VSTR','M FLX','LMH','LMV','SGLYR','NLAT','ELON','UMAS','VMAS','XPRATE',&
Warning: Initialization string starting at (1) was truncated to fit the variable (5/6)
g1print.f90:600.64:
'GWREC','QREC ','SNOWT','VBDSF','VDDSF','NBDSF','NDDSF','SNFALB',&
Warning: Initialization string starting at (1) was truncated to fit the variable (5/6)
g1print.f90:601.58:
'RLYRS','M FLX',' ',' ',' ','NLAT','ELON','FLDCAP','ACOND','SNOA
Warning: Initialization string starting at (1) was truncated to fit the variable (5/6)
g1print.f90:602.66:
'CCOND','LAI','SFCRH','SALBD',' ',' ','NDVI','DRIP','VBSALB','VWSA
Warning: Initialization string starting at (1) was truncated to fit the variable (5/6)
g1print.f90:602.75:
'CCOND','LAI','SFCRH','SALBD',' ',' ','NDVI','DRIP','VBSALB','VWSA
Warning: Initialization string starting at (1) was truncated to fit the variable (5/6)
g1print.f90:603.8:
'NBSALB','NWSALB','FRZR','FROZR','TSNOW','MTERH',' ','SBSNO','EVBS','E
Warning: Initialization string starting at (1) was truncated to fit the variable (5/6)
g1print.f90:603.17:
'NBSALB','NWSALB','FRZR','FROZR','TSNOW','MTERH',' ','SBSNO','EVBS','E
Warning: Initialization string starting at (1) was truncated to fit the variable (5/6)
g1print.f90:604.16:
'VTCIN','VTCAPE','RSMIN','DSWRF','DLWRF',' ','MSTAV','SFEXC',' ','
Warning: Initialization string starting at (1) was truncated to fit the variable (5/6)
g1print.f90:608.31:
'SNOWC','SNOT','POROS','SBT112','SBT113','SBT114','SBT115',' ','RCS'
Warning: Initialization string starting at (1) was truncated to fit the variable (5/6)
g1print.f90:608.40:
'SNOWC','SNOT','POROS','SBT112','SBT113','SBT114','SBT115',' ','RCS'
Warning: Initialization string starting at (1) was truncated to fit the variable (5/6)
g1print.f90:608.49:
'SNOWC','SNOT','POROS','SBT112','SBT113','SBT114','SBT115',' ','RCS'
Warning: Initialization string starting at (1) was truncated to fit the variable (5/6)
g1print.f90:608.58:
'SNOWC','SNOT','POROS','SBT112','SBT113','SBT114','SBT115',' ','RCS'
Warning: Initialization string starting at (1) was truncated to fit the variable (5/6)
g1print.f90:576.23:
'ETSRG','RHPW','OZMAX1','OZMAX8','PDMAX1','PDMAX24','MAXREF','MXUPHL','M
Warning: Initialization string starting at (1) was truncated to fit the variable (5/6)
g1print.f90:576.32:
'ETSRG','RHPW','OZMAX1','OZMAX8','PDMAX1','PDMAX24','MAXREF','MXUPHL','M
Warning: Initialization string starting at (1) was truncated to fit the variable (5/6)
g1print.f90:576.41:
'ETSRG','RHPW','OZMAX1','OZMAX8','PDMAX1','PDMAX24','MAXREF','MXUPHL','M
Warning: Initialization string starting at (1) was truncated to fit the variable (5/6)
g1print.f90:576.50:
'ETSRG','RHPW','OZMAX1','OZMAX8','PDMAX1','PDMAX24','MAXREF','MXUPHL','M
Warning: Initialization string starting at (1) was truncated to fit the variable (5/7)
g1print.f90:576.60:
'ETSRG','RHPW','OZMAX1','OZMAX8','PDMAX1','PDMAX24','MAXREF','MXUPHL','M
Warning: Initialization string starting at (1) was truncated to fit the variable (5/6)
g1print.f90:576.69:
'ETSRG','RHPW','OZMAX1','OZMAX8','PDMAX1','PDMAX24','MAXREF','MXUPHL','M
Warning: Initialization string starting at (1) was truncated to fit the variable (5/6)
g1print.f90:576.78:
'ETSRG','RHPW','OZMAX1','OZMAX8','PDMAX1','PDMAX24','MAXREF','MXUPHL','MAXU
Warning: Initialization string starting at (1) was truncated to fit the variable (5/6)
g1print.f90:577.8:
'MAXDVV','MAXVIG','RETOP','VRATE','TCSRG20','TCSRG30','TCSRG40','TCSRG50
Warning: Initialization string starting at (1) was truncated to fit the variable (5/6)
g1print.f90:577.17:
'MAXDVV','MAXVIG','RETOP','VRATE','TCSRG20','TCSRG30','TCSRG40','TCSRG50
Warning: Initialization string starting at (1) was truncated to fit the variable (5/6)
g1print.f90:577.42:
'MAXDVV','MAXVIG','RETOP','VRATE','TCSRG20','TCSRG30','TCSRG40','TCSRG50
Warning: Initialization string starting at (1) was truncated to fit the variable (5/7)
g1print.f90:577.52:
'MAXDVV','MAXVIG','RETOP','VRATE','TCSRG20','TCSRG30','TCSRG40','TCSRG50
Warning: Initialization string starting at (1) was truncated to fit the variable (5/7)
g1print.f90:577.62:
'MAXDVV','MAXVIG','RETOP','VRATE','TCSRG20','TCSRG30','TCSRG40','TCSRG50
Warning: Initialization string starting at (1) was truncated to fit the variable (5/7)
g1print.f90:577.72:
'MAXDVV','MAXVIG','RETOP','VRATE','TCSRG20','TCSRG30','TCSRG40','TCSRG50
Warning: Initialization string starting at (1) was truncated to fit the variable (5/7)
g1print.f90:577.82:
'MAXDVV','MAXVIG','RETOP','VRATE','TCSRG20','TCSRG30','TCSRG40','TCSRG50','TCSR
Warning: Initialization string starting at (1) was truncated to fit the variable (5/7)
g1print.f90:578.8:
'TCSRG70','TCSRG80','TCSRG90','HINDX','DIFTEN','PSPCP','MAXUW','MAXVW','
Warning: Initialization string starting at (1) was truncated to fit the variable (5/7)
g1print.f90:578.18:
'TCSRG70','TCSRG80','TCSRG90','HINDX','DIFTEN','PSPCP','MAXUW','MAXVW','
Warning: Initialization string starting at (1) was truncated to fit the variable (5/7)
g1print.f90:578.28:
'TCSRG70','TCSRG80','TCSRG90','HINDX','DIFTEN','PSPCP','MAXUW','MAXVW','
Warning: Initialization string starting at (1) was truncated to fit the variable (5/7)
g1print.f90:578.46:
'TCSRG70','TCSRG80','TCSRG90','HINDX','DIFTEN','PSPCP','MAXUW','MAXVW','
Warning: Initialization string starting at (1) was truncated to fit the variable (5/6)
Makefile:90: warning: overriding recipe for target `.F.o'
../../configure.wps:104: warning: ignoring old recipe for target `.F.o'
Makefile:95: warning: overriding recipe for target `.c.o'
../../configure.wps:96: warning: ignoring old recipe for target `.c.o'
/data/ybjin/WRFV3.9.1.1/Build_WRF/LIBRARIES/grib2/lib/libjasper.a(jas_stream.o): In function `jas_stream_tmpfile':
/data/ybjin/WRFV3.9.1.1/Build_WRF/LIBRARIES/jasper-1.900.1/src/libjasper/base/jas_stream.c:368: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
(3)After that, I checked a lot of related content on the official forum, but most of them were not related to my question. Later I found a first pass, but I didn't understand it (http://www.starnix.ir/questions/مشکل-در-کامپایل-نمودن-wps)
(4)please give me help , thank you very much .
(5) View attachment wrflog.compile View attachment configure.wrf View attachment wpslog.compile View attachment configure.wps
Yinbao Jin Can you try to just attach your WPS compile log and your configure.wps file, instead of pasting them? It makes it easier for us to look through if we have the file. While you're at it, can you also attach your WRF compile log and configure.wrf file too? If the forum will not allow you to attach a particular file extension name, add the extension .txt and you should be able to attach it (also let me know the type you weren't able to attach and I'll add it to the allowed list). Thanks!
Thanks for attaching those. So to verify, ungrib and geogrid compiled correctly, but not metgrid.exe. Is that correct?
If so, this is likely a problem that has to do with the added capability to use MPAS output files as input to WPS. Errors in metgrid are all related to the netCDF library, and in metgrid we make direct calls to the netCDF Fortran 90 interface (specifically in the modification for MPAS input), while we think the WRF netCDF I/O API only uses the netCDF Fortran 77 interface. The solution is to replace your WPS/metgrid/src/scan_input.F file with this modified file: View attachment scan_input.F . Unfortunately this will remove the ability to initialize WRF simulations with MPAS output, but as long as you don't need that capability, it should be fine. You'll then need to go back to WPS/ and recompile.
Let me know if that fixes the problem.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies. Accept Learn more…