I would like to know the impact of the following calls with the arguments as stated:
subroutine My_Subroutine
.........
First :
call sa16_temp3(iramp,idist,temp,crtem,temp1)
Second
call A_temp3(iramp,idist,temp,crtem(1,2),temp1)
Third:
call A_temp3(iramp,idist,temp,crtem(1,3),temp1)
Fourth:
call A_temp3(iramp,idist,temp,crtem(1,4),temp1)
Fifth:
call A_temp3(iramp,idist,temp,crtem(1,4),temp1)
subroutine A_temp3(iramp,idist,temp,temp2,temp1,iret)
c
c- To find the surface temperature
c
c On entry:
c iramp - No: of time points
c idist - No: of position points
c temp - array of temperature
c temp1 - Local array
c
c On return:
c temp2 - The required array of temperature
c
c
dimension temp1(*),temp2(*)
double precision :: temp(:)
i1=0
i2=0
do j=1,iramp
do i=j,idist*iramp,iramp
i1=i1+1
temp1(i1)=temp(i)
if (i1.eq.idist) then
i2=i2+1
call sa16_tsur(iramp,idist,temp1,tsur,iret)
temp2(i2)= tsur
i1=0
endif
enddo
enddo
return
end
end
My question is:
1) What will be the size of crtem each time it is passed to subroutine A_temp3