Re: [AMBER-Developers] Amber coding standards

From: Volodymyr Babin <>
Date: Mon, 30 Mar 2009 22:45:14 +0100

> The big problem here is that Fortran programmers learn by looking at old
> code and trial-and-error, rather than reading languages documentation.
> The result is propagation of poor programming habits, and poor
> understanding of the language. The overlap between pointers and
> allocatables makes it hard to do the right thing based on
> trial-and-error. Hopefully, my Wiki summary will help.

You are probably right (and very polite).

> Bob's suggestion for module "constructors" and "destructors" is good.
> Some well-organized programmers require all modules to have both a
> constructor and a destructor, even if they don't really need one. Then,
> a script like Amber's "makedepend" will also generate source code that
> call all of the constructor and destructor routines, in an order that
> honors module dependencies. Or, if you don't want mandatory routines, a
> comment at the top of each module file can contain hints for the
> makedepend script.

Ah sure, one could probably come up with a number of ways to get around
of *some* Fortran shortcomings. I would not enforce mandatory init/fini
for modules though.

Have a great evening,


AMBER-Developers mailing list
Received on Wed Apr 01 2009 - 01:10:45 PDT
Custom Search