Re: [AMBER-Developers] constants in AMBER

From: case <case.biomaps.rutgers.edu>
Date: Wed, 18 May 2011 08:35:48 -0400

On Tue, May 17, 2011, Andreas Goetz wrote:
>
>
> On a different note, we now have 3 copies of constants.f in AMBER:
> $AMBERHOME/AmberTools/src/sqm/constants.f
> $AMBERHOME/AmberTools/src/rism/constants.f
> $AMBERHOME/src/sander/constants.f
>
> This (together with the way Fortran modules are handled at present in
> AMBER) is a recipe for disaster. All three files need to be in sync. I
> believe that anything which is shared among different programs or
> libraries should reside in one common place. Two questions:
>
> 1)
> Is this what $AMBERHOME/AmberTools/src/lib was intended for?

Why not use $AMBERHOME/AmberTools/include? This seems to have a bunch of odd
stuff already. ($AMBERHOME/AmberTools/src/include is currently just used by
NAB.)

> Is there any reason for copying Fortran module files around instead of
> adding the corresponding directory to the module search path (-J for
> gfortran and -module for ifort)?

We used to support other compilers, and no one knew of a consistent way to
specify a module path. If we can make it work, paths should be bette than
copying.

....dac


_______________________________________________
AMBER-Developers mailing list
AMBER-Developers.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber-developers
Received on Wed May 18 2011 - 06:00:03 PDT
Custom Search