[Q-e-developers] PW/tools/pwi2xsf.f & PGI 12.2

Tone Kokalj tone.kokalj at ijs.si
Fri Mar 9 10:12:09 CET 2012


On Fri, 2012-03-09 at 10:04 +0100, Lorenzo Paulatto wrote:
> On Fri, 09 Mar 2012 09:58:47 +0100, Tone Kokalj <tone.kokalj at ijs.si> wrote:
> > Try to replace all occurrences of len = string_length(line) with:
> >
> > line = adjustl(line)
> > len  = len_trim(line)
> 
> 
> This way you get the same error at every occurence.
> 
> But I think I found the cause: adjustl is not in the f77 standard.  
> Compiling with the f95 compiler instead of the f77 one (i.e. without the  
> -f77 switch) works perfectly. Renaming the file to .f90 is not a solution:  
> .f90 files are assumed free format.

Sure it is f95 standard. This is the reason. Of course it should be
compiled the f95 compiler (this is what is done in xcrysden). I see the
point now, because in make.sys there is an implicit rule:

.f.o:
	$(F77) $(FFLAGS) -c $<

and if F77 is not f95 compiler there is the problem.

Does anybody has a clever idea for a workaround or else pwi2xsf.f should
be translated to f95 syntax?

Regards, Tone

-- 
Anton Kokalj
J. Stefan Institute, Jamova 39, 1000 Ljubljana, Slovenia 
(tel: +386-1-477-3523 // fax:+386-1-477-3822)

Please, if possible, avoid sending me Word or PowerPoint attachments.
See:  http://www.gnu.org/philosophy/no-word-attachments.html




More information about the developers mailing list