when I run python setup.py build
the error is:
pyroms_toolbox/src/average.f90(14) #6415: this name cannot be assigned this data type because it conflicts with prior uses of the name [DIM1]
INITEGER::dim1,dim2,dim3
compiling pyroms_toolbox
Re: compiling pyroms_toolbox
Weird. What if you move line 14 to line 6? Same with moving line 53 up a bit. What compiler are you using?
Re: compiling pyroms_toolbox
I am using ifortkate wrote:Weird. What if you move line 14 to line 6? Same with moving line 53 up a bit. What compiler are you using?
ifort:fix: pyroms_toolbox/src/average.f90
pyroms_toolbox/src/average.f90(14): error #6415: This name cannot be assigned this data type because it conflicts with prior uses of the name. [DIM1]
INTEGER::dim1,dim2,dim3
---------------^
pyroms_toolbox/src/average.f90(14): error #6415: This name cannot be assigned this data type because it conflicts with prior uses of the name. [DIM2]
INTEGER::dim1,dim2,dim3
--------------------^
pyroms_toolbox/src/average.f90(14): error #6415: This name cannot be assigned this data type because it conflicts with prior uses of the name. [DIM3]
INTEGER::dim1,dim2,dim3
-------------------------^
pyroms_toolbox/src/average.f90(53): error #6415: This name cannot be assigned this data type because it conflicts with prior uses of the name. [DIM1]
INTEGER::dim1,dim2
---------------^
pyroms_toolbox/src/average.f90(53): error #6415: This name cannot be assigned this data type because it conflicts with prior uses of the name. [DIM2]
INTEGER::dim1,dim2
--------------------^
compilation aborted for pyroms_toolbox/src/average.f90 (code 1)
pyroms_toolbox/src/average.f90(14): error #6415: This name cannot be assigned this data type because it conflicts with prior uses of the name. [DIM1]
INTEGER::dim1,dim2,dim3
---------------^
pyroms_toolbox/src/average.f90(14): error #6415: This name cannot be assigned this data type because it conflicts with prior uses of the name. [DIM2]
INTEGER::dim1,dim2,dim3
--------------------^
pyroms_toolbox/src/average.f90(14): error #6415: This name cannot be assigned this data type because it conflicts with prior uses of the name. [DIM3]
INTEGER::dim1,dim2,dim3
-------------------------^
pyroms_toolbox/src/average.f90(53): error #6415: This name cannot be assigned this data type because it conflicts with prior uses of the name. [DIM1]
INTEGER::dim1,dim2
---------------^
pyroms_toolbox/src/average.f90(53): error #6415: This name cannot be assigned this data type because it conflicts with prior uses of the name. [DIM2]
INTEGER::dim1,dim2
Re: compiling pyroms_toolbox
You didn't try moving those lines, did you? It's still complaining about line 14. Anyway, I use gfortran and don't have this problem.