Fortran 90 creating an array of unknown size

  • Context: Fortran 
  • Thread starter Thread starter max2112
  • Start date Start date
  • Tags Tags
    Array Fortran
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 14K views
Physics news on Phys.org
Summit like this:

Code:
subroutine(/arguments/)

real,allocatable :: array(:)

/code/

allocate ( array(x) )

/code/

deallocate ( array )

return