add method

这个提交包含在:
John Hartley
2019-08-01 16:29:16 +01:00
父节点 90e30d46a4
当前提交 012b9f03d2

查看文件

@@ -246,10 +246,10 @@ class ModelBuildRun:
except AttributeError: except AttributeError:
scene = Scene() scene = Scene()
# parse the input file into user objects and add them to the scene # parse the input file into user objects and add them to the scene
scene = parse_hash_commands(args, usernamespace, appendmodelnumber, G, scene) scene = parse_hash_commands(args, usernamespace, appendmodelnumber, self.G, scene)
# Creates the internal simulation objects. # Creates the internal simulation objects.
scene.create_internal_objects(G) scene.create_internal_objects(self.G)
return scene return scene
def build_pmls(self): def build_pmls(self):
@@ -312,6 +312,7 @@ class ModelBuildRun:
memGPU = '' memGPU = ''
if config.cuda['gpus']: if config.cuda['gpus']:
memGPU = ' host + ~{} GPU'.format(human_size(memsolve)) memGPU = ' host + ~{} GPU'.format(human_size(memsolve))
printer.print('\nMemory (RAM) used: ~{}{}'.format(human_size(p.memory_full_info().uss), memGPU)) printer.print('\nMemory (RAM) used: ~{}{}'.format(human_size(p.memory_full_info().uss), memGPU))
printer.print('Solving time [HH:MM:SS]: {}'.format(datetime.timedelta(seconds=tsolve))) printer.print('Solving time [HH:MM:SS]: {}'.format(datetime.timedelta(seconds=tsolve)))