ntmanhvn181
Member
Hi everyone,
I have a problem when compiling the netcdf-to-intermediate.f program which is presented in the below:
Please help me to solve this problem.
Thank you very much!
Bests,
Manh,
I have a problem when compiling the netcdf-to-intermediate.f program which is presented in the below:
[cloud@igplogin WPS]$ ifort netcdf-to-intermediate.f -L/work/apps/intel_2016/netcdf/4.3.3.1/lib -lnetcdf -lm -I/work/apps/intel_2016/netcdf/4.3.3.1/include -o netCDF-to-intermediate
netcdf-to-intermediate.f(46): error #5149: Illegal character in statement label field [p]
program netCDF2intermediate
--^
netcdf-to-intermediate.f(46): error #5149: Illegal character in statement label field [r]
program netCDF2intermediate
---^
netcdf-to-intermediate.f(46): error #5149: Illegal character in statement label field [o]
program netCDF2intermediate
----^
netcdf-to-intermediate.f(46): error #5118: First statement in file must not be continued
program netCDF2intermediate
-----^
netcdf-to-intermediate.f(48): error #5149: Illegal character in statement label field
implicit none
--^
netcdf-to-intermediate.f(48): error #5149: Illegal character in statement label field [m]
implicit none
---^
netcdf-to-intermediate.f(48): error #5149: Illegal character in statement label field [p]
implicit none
----^
netcdf-to-intermediate.f(49): error #5149: Illegal character in statement label field [c]
character (len=80) :: input_file
--^
netcdf-to-intermediate.f(49): error #5149: Illegal character in statement label field [h]
character (len=80) :: input_file
---^
netcdf-to-intermediate.f(49): error #5149: Illegal character in statement label field [a]
character (len=80) :: input_file
----^
netcdf-to-intermediate.f(52): error #5149: Illegal character in statement label field [c]
call read_args(input_file)
--^
netcdf-to-intermediate.f(52): error #5149: Illegal character in statement label field [a]
call read_args(input_file)
---^
netcdf-to-intermediate.f(52): error #5149: Illegal character in statement label field [l]
call read_args(input_file)
----^
netcdf-to-intermediate.f(53): error #5149: Illegal character in statement label field [p]
print*,"INPUT FILES ARE: ",trim(input_file)
--^
netcdf-to-intermediate.f(53): error #5149: Illegal character in statement label field [r]
print*,"INPUT FILES ARE: ",trim(input_file)
---^
netcdf-to-intermediate.f(53): error #5149: Illegal character in statement label field
print*,"INPUT FILES ARE: ",trim(input_file)
----^
netcdf-to-intermediate.f(54): error #5149: Illegal character in statement label field [p]
print*," "
--^
netcdf-to-intermediate.f(54): error #5149: Illegal character in statement label field [r]
print*," "
---^
netcdf-to-intermediate.f(54): error #5149: Illegal character in statement label field
print*," "
----^
netcdf-to-intermediate.f(57): error #5149: Illegal character in statement label field [c]
call driver (input_file)
--^
netcdf-to-intermediate.f(57): error #5149: Illegal character in statement label field [a]
call driver (input_file)
---^
netcdf-to-intermediate.f(57): error #5149: Illegal character in statement label field [l]
call driver (input_file)
----^
netcdf-to-intermediate.f(60): error #5149: Illegal character in statement label field [e]
end program netCDF2intermediate
--^
netcdf-to-intermediate.f(60): error #5149: Illegal character in statement label field [n]
end program netCDF2intermediate
---^
netcdf-to-intermediate.f(60): error #5149: Illegal character in statement label field [d]
end program netCDF2intermediate
----^
netcdf-to-intermediate.f(49): error #5082: Syntax error, found '=' when expecting one of: :: ) ( , : * <END-OF-STATEMENT> ; . % (/ + - [ ] /) . ** > ...
character (len=80) :: input_file
----------------^
netcdf-to-intermediate.f(53): error #5082: Syntax error, found IDENTIFIER 'T' when expecting one of: :: ) ( , : * <END-OF-STATEMENT> ; . % (/ + - [ ] /) . = ' ** > ...
print*,"INPUT FILES ARE: ",trim(input_file)
------^
netcdf-to-intermediate.f(54): error #5082: Syntax error, found IDENTIFIER 'T' when expecting one of: :: ) ( , : * <END-OF-STATEMENT> ; . % (/ + - [ ] /) . = ' ** > ...
print*," "
------^
netcdf-to-intermediate.f(57): error #5082: Syntax error, found IDENTIFIER 'DRIVER' when expecting one of: :: ) ( , : * <END-OF-STATEMENT> ; . (/ + - ] /) ' ** > PRIVATE / ...
call driver (input_file)
-------^
netcdf-to-intermediate.f(57): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: ) ,
call driver (input_file)
--------------------------^
netcdf-to-intermediate.f(61): catastrophic error: Too many errors, exiting
compilation aborted for netcdf-to-intermediate.f (code 1)
Please help me to solve this problem.
Thank you very much!
Bests,
Manh,