Hello,
Please can anyone help me here. I can't get this working but really need to...
I have delclared an allocatable array in a module as below.
MODULE MyModule
double precision, ALLOCATABLE :: My_Allocated_Array(:)
END MODULE MyModule
I have a subroutine defined as
subroutine MySubRoutineA
USE MyModule
ALLOCATE My_Allocated_Array(15)
..... //I do something with My_Allocated_Array
call MySubRoutineB (
(My_Allocated_Array)
I know that I do not need to pass necessarily pass My_Allocated_array to MySubRoutineB . Let us say I pass
Now,
MySubRoutineB (My_Array_New_Name)
dimension My_Array_New_Name(*)
..............
I get an error on compilation stating that
Error 1 Error: The type of the actual argument differs from the type of the dummy argument. [My_Allocated_Array]
Can anyone please help? I have an old fortran code edited and I need this to work.
Is there soemthing fundamentally wrong?
Please help if possible, gratefully appreciated
Christy