#!/usr/bin/env python
-# -*- coding: iso-8859-1 -*-
-# Copyright (C) 2013-2014 CEA/DEN, EDF R&D, OPEN CASCADE
+# -*- coding: utf-8 -*-
+# Copyright (C) 2013-2016 CEA/DEN, EDF R&D
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
"""
Lancement d'un calcul ASTER
"""
-__revision__ = "V5.8"
+__revision__ = "V5.9"
#
import sys
import os
elif saux == "-DUMP" :
self.dump = 1
#
-# 2. Les paramètres de base
+# 2. Les paramètres de base
#
self.dico = {}
self.nomfic_export = None
if typfic == "mmed" :
nomfic = self.mesh_file
#
-# 3.2.2.2. Pour les autres fichiers, on recupère le nom initial
+# 3.2.2.2. Pour les autres fichiers, on recupère le nom initial
#
else :
nomfic_l_0 = os.path.basename(nomfic_0)
#if self.verbose_max :
#print commande_base
#
- fic_caract = tempfile.mktemp()
- fic_caract_2 = tempfile.mktemp()
+ t_aux = tempfile.mkstemp()
+ fic_caract = t_aux[1]
+ t_aux = tempfile.mkstemp()
+ fic_caract_2 = t_aux[1]
#
# 3. Lancement
# 3.1. Commande finale
# 2. Commande de l'examen de l'etat du job,
#
fic_etat = os.path.join(self.rep_calc, self.nomjob+".etat")
- fic_etat_2 = tempfile.mktemp()
+ t_aux = tempfile.mkstemp()
+ fic_etat_2 = t_aux[1]
commande_base = os.path.join(self.aster_root, "bin", "as_run")
commande_base += " --actu " + numjob + " " + self.nomjob + " " + self.mode
if self.verbose_max :