[Pw_forum] output redirection and temporary directory with gipaw.x

Sylvian Cadars sylvian.cadars at cnrs-orleans.fr
Thu Aug 27 10:49:34 CEST 2009


Dear Paolo,
>> [...] pw.x now automatically writes the output into the default file
>> ("some_file_name" in the example below) , gipaw.x does not, and keeps
>> writing the files into the output of the submission system (...)
>> Is there something else I can try?
>
> you recompiled GIPAW, didn't you? and verified that gipaw.x is older
> than PW/startup.o, didn't you?
In fact I did not, and now it works fine, indeed.  I should have thought 
about this... sorry!


>> Another problem I have with GIPAW is that is does not seem to use the 
>> environment variable "ESPRESSO_TMPDIR" 
>
> that's true. Unfortunately GIPAW also uses a different input variable
> name ("tmp_dir" instead of "outdir"). The fix is however trivial:
> in GIPAW/gipaw_module.f90, replace line
>    tmp_dir = './scratch/'
> with
>    CALL get_env( 'ESPRESSO_TMPDIR', tmp_dir )
>    IF ( TRIM( tmp_dir ) == ' ' ) tmp_dir = './scratch/'
This works very well now, and I would even recommend that this should be 
implemented in the next distributed package should it not introduce 
problems, since I find it really useful for dealing with the temporary 
files.
Thank you so much for such useful advice!

Sylvian.

-- 
------------------------------------------------------------------------
*Dr. Sylvian CADARS*
CEMHTI-CNRS
1D, Av. de la Recherche Scientifique
45071 Orléans Cedex 2, France
email: sylvian.cadars at cnrs-orleans.fr

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.democritos.it/pipermail/pw_forum/attachments/20090827/139dd353/attachment.htm 


More information about the Pw_forum mailing list