- 积分
- 4044
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2013-11-12
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 悠然一梦123 于 2016-5-18 09:33 编辑
已经纠结不止一个星期了,真不知道该怎么办了,编译prep_chem_sources这一块,一直出现问题,
use hdf5
----^
edgar_emissions.f90(696): error #6683: A kind type parameter must be a compile-time constant. [HID_T]
integer(hid_t):: file_id, dset_id, group_id, dtype_id
---------^
edgar_emissions.f90(697): error #6683: A kind type parameter must be a compile-time constant. [HSIZE_T]
integer(hsize_t) :: data_dims(2)
---------^
edgar_emissions.f90(702): error #6683: A kind type parameter must be a compile-time constant. [HID_T]
integer(hid_t)::dcpl
---------^
edgar_emissions.f90(704): error #6683: A kind type parameter must be a compile-time constant. [SIZE_T]
integer(size_t)::nelmts
---------^
edgar_emissions.f90(707): error #6683: A kind type parameter must be a compile-time constant. [SIZE_T]
integer(size_t),parameter:: MaxChrlen=80
---------^
edgar_emissions.f90(733): error #6404: This name does not have a type, and must have an explicit type. [H5F_ACC_RDONLY_F]
call h5fopen_f(filenameed, H5F_ACC_RDONLY_F, file_id, error)
---------------------------------^
edgar_emissions.f90(771): error #6404: This name does not have a type, and must have an explicit type. [H5T_IEEE_F32LE]
call h5dread_f(dset_id, H5T_IEEE_F32LE, soma,&
--------------------------------------------------^
edgar_emissions.f90(821): error #7013: This module file was not generated by any release of this compiler. [HDF5]
use hdf5
-----^
edgar_emissions.f90(864): error #6683: A kind type parameter must be a compile-time constant. [HID_T]
integer(HID_T) :: file_id
---------^
edgar_emissions.f90(865): error #6683: A kind type parameter must be a compile-time constant. [HID_T]
integer(HID_T) :: dset_id
---------^
edgar_emissions.f90(866): error #6683: A kind type parameter must be a compile-time constant. [HSIZE_T]
integer(HSIZE_T) :: data_dims(4)
---------^
edgar_emissions.f90(898): error #6404: This name does not have a type, and must have an explicit type. [H5F_ACC_RDONLY_F]
call h5fopen_f(trim(filename),H5F_ACC_RDONLY_F, file_id, hdferr) !abre o arquivo
---------------------------------------^
edgar_emissions.f90(920): error #6404: This name does not have a type, and must have an explicit type. [H5T_NATIVE_REAL]
call h5dread_f(dset_id, H5T_NATIVE_REAL, src_dummy, data_dims, hdferr) !faz a leitura do dataset
---------------------------------------^
compilation aborted for edgar_emissions.f90 (code 1)
make: *** [edgar_emissions.o] Error 1
。总是提示HDF5的问题,HDF5我用的是hdf5-1.8.16.tar.gz版本,解压编译安装,include.mk.intel.中netcdf,hdf5路径都改了,F_COMP,C_COMP路径也都改了,用的是学院里服务器,netcdf是集群里自带的,hdf5,wrf,wps的编译用的都是intel编译器编译的,真是搞不懂到底是哪里出错了,HDF5安装也没出现error,就是make时中间有出现这类提示,tmisc.c(2725): warning #810: conversion from "void *" to "const char" may lose significant bits
{"1234567", "1234567\0", "12345678", {NULL}};
^
tmisc.c(2804): warning #810: conversion from "void *" to "const char" may lose significant bits
{"1234567", "1234567\0", "12345678", {NULL}};
我想知道,难道是我的HDF5安装有问题吗,安装HDF5需要安装其他的辅助软件吗?ZLIB我也安装过了呀,还需要其他的吗。论坛里有人遇到过这种情况吗,求解答求解答,折腾了一个多星期了,还是没有解决问题,难过死了,感觉快要崩溃了,论坛里的小伙伴们帮帮忙吧
问题已经解决,就是HDF5没有装上,用的INTEL编译,之前没有将c++和fortran编译器都打开,./configure时应该这样,./configure FC=ifort CC=icc --prefix=path_hdf5 --enable-fortran --enable-cxx
|
评分
-
查看全部评分
|