Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [photran] execution with an input file

>>>>> On Fri, 11 Dec 2009 18:42:42 +0100, DEVEL Michel <Michel.Devel@xxxxxxxx> said:

    DEVEL> Dear Photran developers and users, I have recently used
    DEVEL> photran to compile and run a code with an input file which
    DEVEL> name can vary and is not fort.x.  I tried to add "<
    DEVEL> input.txt" in the arguments of the run config, but it did not
    DEVEL> work.  How could I do that (without touching the code) ?

Tiens, figure-toi que j'étais le mois dernier à un tutoriel sur PTP et
Photran lors de SuperComputing 2009, avec Stéphanie Even, une autre de
Chateaubriand ! :-)

Bon, pour répondre à ta question, je suppose qu'il y a une variable
d'environnement qui existe dans ton runtime pour faire ça, style

ftp.g95.org/G95Manual.fr.pdf
G95_UNIT_x : Chaîne Remplace le nom par défaut de l'unité x. Le défaut
est fort.x

Mais bon, même si je travaille sur un compilateur qui fait du Fortran
depuis 1992, je ne développe pas en Fortran, donc pas au top... :-)

Tu peux aussi faire un lien symbolique de fort.x vers le programme que
tu veux utiliser.

À +,
-- 
  Ronan KERYELL                      |\/  Tel:    (+33|0) 970 440 832
  HPC Project                        |/)  GSM:    (+33|0) 6 13 14 37 66
  9 Route du Colonel Marcel Moraine  K    Fax:    (+33|0) 1 46 01 05 46
  92360 Meudon La Forêt              |\   E-mail: rk@xxxxxxxxxxxxxxx
  FRANCE                             | \  skype:keryell
                                          http://hpc-project.com


Back to the top