[Pw_forum] plotband.x could not get filename

Yan pemryan at yahoo.cn
Thu Apr 16 11:43:19 CEST 2009


Dear Paolo,

Thank you for your reply.  I tests iargc with test.f90, it works and returns 
correct number of arguments.

!--------test.f90---------
PROGRAM test
   IMPLICIT NONE
   INTEGER :: iargc, nargs

   nargs = iargc()
   write(*,*)  nargs

   RETURN
END PROGRAM
!--------end-------------

bash-3.2$ gfortran test.f90 -o test
bash-3.2$ ./test
           0
bash-3.2$ ./test 1 1
           2

Could you give me some more hint about how to locate and fix this problem?
Thank you.

Yan

On 2009/04/16 Thursday 17:16:33 Paolo Giannozzi wrote:
> there is nothing wrong with subroutine get_file. It's your system
> call "iargc" that doesn't work (it returns -1 instead of the
> number of arguments)


-- 
Ren, Yan | Tel: +8610-8264-8102
Institute of Physics, Chinese Academy of Sciences, Beijing, China
---
Light is scream from another world.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quantum-espresso.org/pipermail/users/attachments/20090416/663128e3/attachment.html>


More information about the users mailing list