AMBER Archive (2006)Subject: Re: AMBER: amber8 and gfortran 4.1.0
From: Andreas Svrcek-Seiler (svrci_at_tbi.univie.ac.at) 
Date: Thu Mar 02 2006 - 10:35:16 CST
 
 
 
 
Hi
 
> does this kind of error message ring a bell?
 
>
 
> cpp -traditional -P -I/Bis/shared/centos-3_x86_64/amber8_gnu-4.1.0/src/include   lmod.f > _lmod.f
 
> gfortran -c -O2 --free-form  -o lmod.o _lmod.f
 
> In file _lmod.f:270
 
>
 
>   character(len=len(MVPM_FORWARD)) :: matrix_vector_product_method=MVPM_FORWARD
 
>                                                                  1
 
> Error: 'matrix_vector_product_method' at (1) must have constant character length in this context
 
> In file _lmod.f:282
 
...yes, it does (though only because I saw it myself an hour ago, not 
 
because I really know what it means). Anyway, replacing
 
the offending expressions by ...(len=*)... allows compiling the files with 
 
gfortran(4.1) and final result nearly passes a 'make test.serial' for 
 
amber 9 and therefore presumably for amber8 too.
 
Buy the way: completely build amber9 with gcc 4.1 I needed to
 
change line 9 $AMBERHOME/src/arpack/stat.h from
 
       double precision       t0, t1, t2, t3, t4, t5
 
to
 
       real		     t0, t1, t2, t3, t4, t5
 
 ...Maybe one of the fortran gurus will also give his opinion.
 
 good luck
 
Andreas
 
 
-- 
             )))))
             (((((
            ( O O )
-------oOOO--(_)--OOOo-----------------------------------------------------
               o        Wolfgang Andreas Svrcek-Seiler
               o        (godzilla)
                        svrci_at_tbi.univie.ac.at
       .oooO            Tel.:01-4277-52733
       (   )   Oooo. 
-------\ (----(   )--------------------------------------------------------
         \_)    ) /
               (_/
 -----------------------------------------------------------------------
The AMBER Mail Reflector
To post, send mail to amber_at_scripps.edu
To unsubscribe, send "unsubscribe amber" to majordomo_at_scripps.edu
  
  
 |