Re: Strange Porting Problem CVF to IVF, requesting help and ideas.
- From: Ron Shepard <ron-shepard@xxxxxxxxxxxxxxxxxx>
- Date: Wed, 27 Sep 2006 11:13:13 -0500
In article <i34lh2ttbreiqnh3lqqnt4rv8ekn3lodn6@xxxxxxx>,
Jim Klein <jameseklein@xxxxxxxxxxxxx> wrote:
Steve and all. I shall try Steve's switch change suggestions and plan
to convert the commons to modules. The latter is something I have
tought about but been recitent to do because of the massive size of
the job.
There may be automatic tools for this. If not, there is a
straightforward step-by-step way to do this.
1. Make a module that contains the common block and all of its
variable declarations.
2. Work through your program and replace each occurrence of the
common block declaration with the USE statement. This also requires
making all variable names the same within the different declarations
of the common block. If you are not already using it, IMPLICIT NONE
usually helps with this. After every few subprograms, recompile and
run your test cases to ensure you have done things correctly.
Note that during step 2 your code will contain a mixture of direct
common block references and indirect common block references through
the module. This is why this approach works so well, you do not
have to make all the changes at once, you can work through routine
by routine if necessary.
3. Finally you will reach a point where there are no remaining
direct common block references in your code. The only common block
declaration will be in the module. At this time, you can simply
declare the variables in the module and delete the common statement.
Recompile and test a final time, and your task is complete.
$.02 -Ron Shepard
.
- References:
- Strange Porting Problem CVF to IVF, requesting help and ideas.
- From: Jim Klein
- Re: Strange Porting Problem CVF to IVF, requesting help and ideas.
- From: David Flower
- Re: Strange Porting Problem CVF to IVF, requesting help and ideas.
- From: glen herrmannsfeldt
- Re: Strange Porting Problem CVF to IVF, requesting help and ideas.
- From: David Flower
- Re: Strange Porting Problem CVF to IVF, requesting help and ideas.
- From: Steve Lionel
- Re: Strange Porting Problem CVF to IVF, requesting help and ideas.
- From: Jim Klein
- Strange Porting Problem CVF to IVF, requesting help and ideas.
- Prev by Date: Re: Strange Porting Problem CVF to IVF, requesting help and ideas.
- Next by Date: Re: Strange Porting Problem CVF to IVF, requesting help and ideas.
- Previous by thread: Re: Strange Porting Problem CVF to IVF, requesting help and ideas.
- Next by thread: Re: Strange Porting Problem CVF to IVF, requesting help and ideas.
- Index(es):
Relevant Pages
|