Re: Dynamic Array Definition problem in f90



Below is the interface statement. It just doesn't work. I need to make list and order arrays dynamic since their sizes vary depending on the size of the y array in the calling routine. I allocate the sizes in the loop using Allocate.

Unless both routines are in the same module, what you are missing is an explicit interface for QuickSort in your routine Descs - that seems to be
missing. You should be putting QuickSort into a MODULE and USE that module
from Descs, unless both are in the same module, in which case you do not
need to add anything.

Jan
.



Relevant Pages

  • Re: dummy allocatable question
    ... I have a "sort" routine that I regularly call from my programs. ... The routine returns the sorted indices for a variable called ARRAY. ... The INDICES variables is not declared in the "sort subroutine", instead it is declared in the declarations portion of the module as: ... What I found is that I get an error that says something similar to "Cannot allocate to an already allocated variable". ...
    (comp.lang.fortran)
  • Re: 2.6.21-rc suspend regression: sysfs deadlock
    ... routine for this kind of "delayed_store" functionality. ... * Instead methods can call this routine, which will attempt to allocate ... * and schedule a workqueue request to carry out the requested function ... * Attribute methods must not unregister themselves or their parent device ...
    (Linux-Kernel)
  • [Suspend2][ 2/9] [Suspend2] Free extra memory allocated for the atomic copy.
    ... If the page cache is not large enough to store the atomic copy, we allocate ... This routine is used at cleanup to free that memory. ...
    (Linux-Kernel)
  • Re: xlf compiler bug?
    ... compiler or the allocate routine. ... in the call to allocate had a value of zero. ... STAT returned as zero. ... that the allocated function routine returns TRUE saying that the array ...
    (comp.lang.fortran)