This error message is indicating that there is a non-constant expression being used in a place where a constant expression is expected.

In the specific case mentioned, the error is occurring in the file "module_netcdf_nf_data.F90" on line 167. Without seeing the code in question, it is difficult to determine the exact cause of the error.

However, some common causes of this error include using a variable instead of a constant in an array size declaration or initialization, or using a variable instead of a constant in a case statement.

To fix the error, you will need to identify the non-constant expression and replace it with a constant expression.

NVFORTRAN-S-0087-Non-constant expression where constant expression required (module_netcdf_nf_data.F90: 167)

原文地址: https://www.cveoy.top/t/topic/yF5 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录