Пример #1
0
import openmoc
import _openmoc_intel_double
from openmoc_intel_double import *
import signal

# Tell Python to recognize CTRL+C and stop the C++ extension module
# when this is passed in from the keyboard
signal.signal(signal.SIGINT, signal.SIG_DFL)

set_log_level(str(openmoc.get_log_level()))
set_output_directory(openmoc.get_output_directory())
set_log_filename(openmoc.get_log_filename())

Timer = openmoc.Timer
Пример #2
0
import signal, sys

import _openmoc_intel_double

# For Python 2.X.X
if (sys.version_info[0] == 2):
  import openmoc
  from openmoc_intel_double import *
# For Python 3.X.X
else:
  import openmoc.openmoc as openmoc
  from openmoc.intel.double.openmoc_intel_double import *

# Tell Python to recognize CTRL+C and stop the C++ extension module
# when this is passed in from the keyboard
signal.signal(signal.SIGINT, signal.SIG_DFL)

set_log_level(str(openmoc.get_log_level()))
set_output_directory(openmoc.get_output_directory())
set_log_filename(openmoc.get_log_filename())

Timer = openmoc.Timer