I am going to make a long fortran main program into a subroutine, what i have done was to arrange some variables (inside the original main fortran program) into the argumenst of that subroutine. However, i got an error "Aliasing of dummy arguments and common block variables". I did some searching on web and found that this error was due to the argument of subroutine is equal to the variables in COMMON BLOCK inside the subroutine.
subroutine abc (var1, var2,var3)
end subroutine abc
It is because the original fortron code is quite long and complicated, I dont want to do a lot of changings inside. Does anyone have idea on how to solve it? Many thanks!!