Re: Call subroutine based on character variables? Guru Required!

From: bv (bvoh_at_Xsdynamix.com)
Date: 01/06/05

  • Next message: Lee Bassom: "Thanks :)"
    Date: Thu, 06 Jan 2005 06:38:06 GMT
    
    

    Matt wrote:
    >
    > CALL METHOD( ... )
    >
    > where "METHOD" is chosen at run-time (in the previous example, it would
    > take the values: "EXPL", "IMP1", IMP2", ...etc). Of course, this would
    > be *far* neater than using nested IF statements. Is this possible in
    > either fortran77 or g77?
    > If anyone has any other suggestions, I'd be delighted to hear them!

    Sure, at least two:
     #1
       Replace your compiler -> http://openwatcom.com
     #2
       Devise a sngl method which outperforms all of your candidates

    Under #1 you'll discover what a *difference* a compiler makes, and under
    #2 you'll (eventually) learn just what a hobbled bunch you're trying to
    choose from.


  • Next message: Lee Bassom: "Thanks :)"