Beispiel #1
0
 def update_defaults(cls, defaults):
     LDCBlock.max_v = 0.05
     LDCSim.update_defaults(defaults)
     defaults.update({
         'max_iters': MAX_ITERS,
         'lat_nx': LAT_NX,
         'lat_ny': LAT_NY,
         'output': os.path.join(tmpdir, 'result')})
Beispiel #2
0
 def update_defaults(cls, defaults):
     LDCBlock.max_v = 0.05
     LDCSim.update_defaults(defaults)
     defaults.update({
         'quiet': True,
         'lat_nx': 512,
         'lat_ny': 512,
         'output': os.path.join(tmpdir, 'result')})
Beispiel #3
0
 def update_defaults(cls, defaults):
     LDCSim.update_defaults(defaults)
     defaults['block_size'] = block_size
     defaults['mem_alignment'] = mem_align
     defaults['ldc_subdomains'] = blocks
     defaults['max_iters'] = MAX_ITERS
     defaults['quiet'] = True
     defaults['output'] = output
     defaults['cuda_cache'] = False
     defaults['access_pattern'] = access_pattern
Beispiel #4
0
 def update_defaults(cls, defaults):
     LDCSim.update_defaults(defaults)
     defaults.update({
         'block_size': block_size,
         'mem_alignment': mem_align,
         'max_iters': MAX_ITERS,
         'silent': True,
         'output': output,
         'cuda_cache': False,
         'access_pattern': access_pattern,
         'node_addressing': node_addressing})
Beispiel #5
0
 def update_defaults(cls, defaults):
     LDCSim.update_defaults(defaults)
     defaults.update({
         'block_size': block_size,
         'mem_alignment': mem_align,
         'max_iters': MAX_ITERS,
         'silent': True,
         'output': output,
         'cuda_cache': False,
         'access_pattern': access_pattern,
         'node_addressing': node_addressing
     })
Beispiel #6
0
 def add_options(cls, group, dim):
     LDCSim.add_options(group, dim)
     group.add_argument('--re', dest="re", help='Reynolds number', type=int, default=RE)
Beispiel #7
0
 def add_options(cls, group, dim):
     LDCSim.add_options(group, dim)
     group.add_argument("--re", help="Reynolds number", type=int, default=0)
Beispiel #8
0
 def update_defaults(cls, defaults):
     LDCBlock.max_v = 0.05
     LDCSim.update_defaults(defaults)
     defaults.update({"quiet": True, "lat_nx": 512, "lat_ny": 512, "output": os.path.join(tmpdir, "result")})
Beispiel #9
0
 def add_options(cls, group, dim):
     LDCSim.add_options(group, dim)
     group.add_argument('--re', help='Reynolds number', type=int, default=0)