Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by anex

  1. anex

    passing allocatable array section into subroutine and return error

    thank you very much! you are most kind! I think your explanation is very good for me, thanks again! if I use example 2, such as CALL subcc(ary(1:5,1:n),5,n), when running this program , is it need additional memory to store temporary array? that is, example 2 comparing with example 1, it need...
  2. anex

    passing allocatable array section into subroutine and return error

    thanks, I seem to understand your explanation. If I want to get my value, I must specify the dimension of array ary when calling subroutine subcc, such as CALL subcc(ary(1:5,1:n),5,n) or CALL subcc(ary(:,1:6),10,6). If I pass array ary into subroutine subcc with 'CALL subcc(ary,5,n) or...
  3. anex

    passing allocatable array section into subroutine and return error

    Hi, I code fortran in AIX with xlf90 compiler, find a error, the source code is as follows: MODULE modaa CONTAINS !---------------------------- SUBROUTINE SUBAA(n) integer,intent(in) :: n integer,parameter :: m=10 real,dimension(1:m,1:n) :: ary call...

Part and Inventory Search

Back
Top