コード例 #1
0
ファイル: test_yask.py プロジェクト: rwalkerlewis/devito
def setup_module(module):
    """Get rid of any YASK modules generated and JIT-compiled in previous runs.
    This is not strictly necessary for the tests, but it helps in keeping the
    lib directory clean, which may be helpful for offline analysis.
    """
    from devito.yask.wrappers import contexts  # noqa
    contexts.dump()
コード例 #2
0
ファイル: test_yask.py プロジェクト: opesci/devito
def setup_module(module):
    """Get rid of any YASK modules generated and JIT-compiled in previous runs.
    This is not strictly necessary for the tests, but it helps in keeping the
    lib directory clean, which may be helpful for offline analysis.
    """
    from devito.yask.wrappers import contexts  # noqa
    contexts.dump()
コード例 #3
0
 def clear(cls):
     log("Dumping contexts and symbol caches")
     contexts.dump()
     super(CacheManager, cls).clear()
コード例 #4
0
ファイル: types.py プロジェクト: opesci/devito
 def clear(cls):
     log("Dumping contexts and symbol caches")
     contexts.dump()
     super(CacheManager, cls).clear()
コード例 #5
0
ファイル: types.py プロジェクト: rohitthecool/devito
 def clear(cls, dump_contexts=True, force=True):
     log("Dumping contexts and symbol caches")
     if dump_contexts:
         contexts.dump()
     super(CacheManager, cls).clear(force=force)