[Wien] Syntax error in array constructor (gfortran)

tasaka at affinity-science.com tasaka at affinity-science.com
Fri Feb 22 14:59:14 CET 2013


Dear Gavin,

thank you for your reply. I agree and it might work well.
but,  I think it would be more favorable if source
compatibility is kept in different compilers.

Anyway, thanks again for your comments.

With best regards,
Tomo

----- Original Message -----
> I think you have to modify the code like you indicated.  I made the 
> attached patch.  It removed the compile time errors, but I never tested 
> it make sure it didn't have any runtime errors.
> 
> Placed gfortran.patch (for Wien2k 12.1) into $WIENROOT, and entered:
> 
> $ patch -b -p0 -i gfortran.patch
> 
> On 2/20/2013 11:26 PM, tasaka at affinity-science.com wrote:
> > Hello,
> >
> > I encountered the follwoing errors when compiling in SRC_hf
> > with GNU Fortran (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3.
> > if there are any options of gfortran to avoid these errors, please advise.
> >
> > //
> > gfortran -ffree-form -O2 -ffree-line-length-none  -c calc_exhfvv_tmp_.F
> > calc_exhfvv_tmp_.F:269.22:
> >
> >              igv = (/ 1:ng /)
> >                        1
> > Error: Syntax error in array constructor at (1)
> > calc_exhfvv_tmp_.F:272.22:
> >
> >              igv = (/ 1:(igs-1),(igs+1):ng /)
> >                        1
> > Error: Syntax error in array constructor at (1)
> > make[1]: *** [calc_exhfvv.o] Error 1
> > //
> >
> > Or, should I modify the codes as like below?
> >
> >              igv = (/ (i, i=1,ng,1) /)
> >
> >
> > Any information would be appreciated.
> >
> > With best regards,
> > Tomo
> >
> >
> >
> > _______________________________________________
> > Wien mailing list
> > Wien at zeus.theochem.tuwien.ac.at
> > http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien
> >
> 
>  
> _______________________________________________
> Wien mailing list
> Wien at zeus.theochem.tuwien.ac.at
> http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien
> 




More information about the Wien mailing list