Re: use module
- From: Gary Scott <garylscott@xxxxxxxxxxxxx>
- Date: Sat, 25 Apr 2009 07:33:27 -0500
Andrew Smith wrote:
rudra wrote:Heavens. I dislike having large numbers of files. Seems like a CM nightmare to me and logical grouping makes things easier to locate to me than searching through directories of hundreds or thousands of files. I tend to group like functionality into single modules. I treat them somewhat like libraries (and sometimes like include files).
EPC s last post provoke me to ask a question, may be a bit idiotic.
I am prone to use too many modules in my codes as different programme
and then compile them using makefile. I do this due to readability. do
this affect efficiency of the code(you see, too many code, to many USE
etc)?
plz comment.
I tend to put every subroutine or function in it own module and that reduces the chance of cross dependencies between modules. It also compiles fast and has no effect on run time as far as I know. I have about 400 modules in my application and it is rising fast.
Andy
--
Gary Scott
mailto:garylscott@sbcglobal dot net
Fortran Library: http://www.fortranlib.com
Support the Original G95 Project: http://www.g95.org
-OR-
Support the GNU GFortran Project: http://gcc.gnu.org/fortran/index.html
If you want to do the impossible, don't hire an expert because he knows it can't be done.
-- Henry Ford
.
- Follow-Ups:
- Re: use module
- From: Giorgio Pastore
- Re: use module
- References:
- use module
- From: rudra
- Re: use module
- From: Andrew Smith
- use module
- Prev by Date: Re: error in sun, ok in ifort
- Next by Date: Re: petition against FORTRAN
- Previous by thread: Re: use module
- Next by thread: Re: use module
- Index(es):
Relevant Pages
|