主题:求助 代码编译出错
本人在网上下载了一个fortran的计算程序,需要修改一下使用
编译时出现了这样的错误:
INCLUDE file 'D:\CODES\mpif.h' cannot be opened
Compiling file: ddprecision.f90
D:\CODES\ddprecision.F90(2) : error 699 - Invalid character '#' at start of line
D:\CODES\ddprecision.F90(2) : error 32 - Statement not recognised
D:\CODES\ddprecision.F90(4) : error 699 - Invalid character '#' at start of line
D:\CODES\ddprecision.F90(4) : error 32 - Statement not recognised
D:\CODES\ddprecision.F90(5) : error 699 - Invalid character '#' at start of line
D:\CODES\ddprecision.F90(5) : error 32 - Statement not recognised
D:\CODES\ddprecision.F90(6) : error 1011 - WP has already been declared with the PARAMETER attribute
D:\CODES\ddprecision.F90(6) : error 940 - PARAMETER WP has been referenced before it's definition
D:\CODES\ddprecision.F90(6) : warning 520 - DDPRECISION!WP has been declared more than once with the same type (see line 3)
D:\CODES\ddprecision.F90(7) : error 699 - Invalid character '#' at start of line
D:\CODES\ddprecision.F90(7) : error 32 - Statement not recognised
编译时出现了这样的错误:
INCLUDE file 'D:\CODES\mpif.h' cannot be opened
Compiling file: ddprecision.f90
D:\CODES\ddprecision.F90(2) : error 699 - Invalid character '#' at start of line
D:\CODES\ddprecision.F90(2) : error 32 - Statement not recognised
D:\CODES\ddprecision.F90(4) : error 699 - Invalid character '#' at start of line
D:\CODES\ddprecision.F90(4) : error 32 - Statement not recognised
D:\CODES\ddprecision.F90(5) : error 699 - Invalid character '#' at start of line
D:\CODES\ddprecision.F90(5) : error 32 - Statement not recognised
D:\CODES\ddprecision.F90(6) : error 1011 - WP has already been declared with the PARAMETER attribute
D:\CODES\ddprecision.F90(6) : error 940 - PARAMETER WP has been referenced before it's definition
D:\CODES\ddprecision.F90(6) : warning 520 - DDPRECISION!WP has been declared more than once with the same type (see line 3)
D:\CODES\ddprecision.F90(7) : error 699 - Invalid character '#' at start of line
D:\CODES\ddprecision.F90(7) : error 32 - Statement not recognised