Esempio n. 1
0
 def kill(self):
     """ Forces ANSYS process to end and removes lock file """
     if self._process is not None:
         try:
             self.exit()
         except:
             kill_process(self._process.pid)
             self._log.debug('Killed process %d' % self._process.pid)
Esempio n. 2
0
    def kill(self):
        """Forces ANSYS process to end and removes lock file"""
        try:
            self.exit()
        except:
            pass

        if self._process is not None and os.name == 'linux':
            kill_process(self._process.pid)

        try:
            self._close_apdl_log()
        except:
            pass

        try:
            self._remove_lockfile()
        except:
            pass