moduel VS parameters
- From: yuanliu1@xxxxxxxx
- Date: 29 Jun 2005 23:32:18 -0700
I got one code from another guy which has forty parameters for each
subroutine call. I do not like it, so I make modules and then
everything is passed through modules.
Now I have a problem. The original subroutine, which is very messy, can
work independant of the other parts as long as I feed it with the right
parameter. In my version of code, I have to use the module everytime.
Since some information are somewhat common to many modules, it is hard
to isolate them. In another words, the modules I used in one subroutine
may contains more information than the subroutine needs.
I know maybe this is something about Object Oriented. But are there
anyway in fortran I can do?
rgds.
Yuan
.
- Follow-Ups:
- Re: moduel VS parameters
- From: Richard Edgar
- Re: moduel VS parameters
- Prev by Date: Re: Intel nonVisual fortran
- Next by Date: Re: I have no ideas what can it be!
- Previous by thread: Passing a 2 dimensional array from fortran to c++
- Next by thread: Re: moduel VS parameters
- Index(es):