Re: Call subroutine based on character variables? Guru Required!
From: Rich Townsend (rhdt_at_barREMOVEtol.udel.edu)
Date: 01/06/05
- Next message: Rich Townsend: "Re: same function giving different results"
- Previous message: Bart Vandewoestyne: "Re: same function giving different results"
- In reply to: bv: "Re: Call subroutine based on character variables? Guru Required!"
- Next in thread: tholen_at_antispam.ham: "Re: Call subroutine based on character variables? Guru Required!"
- Reply: tholen_at_antispam.ham: "Re: Call subroutine based on character variables? Guru Required!"
- Reply: bv: "Re: Call subroutine based on character variables? Guru Required!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 06 Jan 2005 09:36:05 -0500
bv wrote:
> 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
Typical bv response. What relevance does the choice of compiler have to
a coding issue? Furthermore, what if he isn't using Windows?
> #2
> Devise a sngl method which outperforms all of your candidates
Often, there's no such thing; different types of problems require
different approaches.
cheers,
Rich
- Next message: Rich Townsend: "Re: same function giving different results"
- Previous message: Bart Vandewoestyne: "Re: same function giving different results"
- In reply to: bv: "Re: Call subroutine based on character variables? Guru Required!"
- Next in thread: tholen_at_antispam.ham: "Re: Call subroutine based on character variables? Guru Required!"
- Reply: tholen_at_antispam.ham: "Re: Call subroutine based on character variables? Guru Required!"
- Reply: bv: "Re: Call subroutine based on character variables? Guru Required!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|