Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Fortran > Re: module or i...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 6 Topic 8208 of 8908
Post > Topic >>

Re: module or interface

by nospam@[EMAIL PROTECTED] (Richard Maine) May 5, 2008 at 12:00 AM

Klemens <jokulhlaup@[EMAIL PROTECTED]
> wrote:

> trying to speed up a  f90 program I was thinking about the difference
> if I put my subroutines in a module or if I define an interface. Will
> there be any differences in speed for these two approaches ?

No.

Except for the speed of development. Writing interface bodies is
error-prone and thus likely to slow down code development.

Well, ok, that is certainly an overgeneralization, as some are likely to
point out. But I felt I should say more than the one-word answer "no". I
can't really think of any useful elaboration on that other than that it
isn't likely to be a constructive avenue to pursue.

About the closest thing I can think of is the issue of copy-in/copy-out
for array arguments. That doesn't have anything directly to do with
using modules versus interface bodies. But it is at least vaguely
related to the subject of explicit interfaces.

-- 
Richard Maine                    | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle           |  -- Mark Twain
 




 6 Posts in Topic:
module or interface
Klemens <jokulhlaup@[E  2008-05-04 23:48:57 
Re: module or interface
nospam@[EMAIL PROTECTED]   2008-05-05 00:00:46 
Re: module or interface
Klemens <jokulhlaup@[E  2008-05-05 00:09:38 
Re: module or interface
Arjen Markus <arjen.ma  2008-05-05 00:21:53 
Re: module or interface
Klemens <jokulhlaup@[E  2008-05-05 00:48:31 
Re: module or interface
rudra <bnrj.rudra@[EMA  2008-05-05 10:26:44 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Nov 19 7:49:12 CST 2008.