Beispiel #1
0
 def add_options(cls, group, dim):
     LDCSim.add_options(group, dim)
     group.add_argument('--re',
                        dest="re",
                        help='Reynolds number',
                        type=int,
                        default=400)
Beispiel #2
0
 def update_defaults(cls, defaults):
     global block_size, blocks, output
     LDCSim.update_defaults(defaults)
     defaults["block_size"] = block_size
     defaults["mem_alignment"] = mem_align
     defaults["max_iters"] = MAX_ITERS
     defaults["output"] = output
     defaults["cuda_cache"] = False
     defaults.update({"access_pattern": access_pattern, "node_addressing": node_addressing, "silent": True})
Beispiel #3
0
 def update_defaults(cls, defaults):
     LDCBlock.max_v = 0.05
     LDCSim.update_defaults(defaults)
     defaults.update({
         'max_iters': MAX_ITERS,
         'lat_nx': 256,
         'lat_ny': 256,
         'lat_nz': 256,
         'access_pattern': 'AA',
         'grid': 'D3Q19',
         'output': os.path.join(tmpdir, 'result')})
Beispiel #4
0
 def update_defaults(cls, defaults):
     LDCBlock.max_v = 0.05
     LDCSim.update_defaults(defaults)
     defaults.update({
         'max_iters': MAX_ITERS,
         'lat_nx': 256,
         'lat_ny': 256,
         'lat_nz': 256,
         'access_pattern': 'AA',
         'grid': 'D3Q19',
         'output': os.path.join(tmpdir, 'result')
     })
Beispiel #5
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,
             "lat_nz": LAT_NZ,
             "output": os.path.join(tmpdir, "result"),
         }
     )
Beispiel #6
0
 def update_defaults(cls, defaults):
     global block_size, blocks, output
     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.update({
         'access_pattern': access_pattern
         })
Beispiel #7
0
 def update_defaults(cls, defaults):
     global block_size, blocks, output
     LDCSim.update_defaults(defaults)
     defaults['block_size'] = block_size
     defaults['mem_alignment'] = mem_align
     defaults['max_iters'] = MAX_ITERS
     defaults['output'] = output
     defaults['cuda_cache'] = False
     defaults.update({
         'access_pattern': access_pattern,
         'node_addressing': node_addressing,
         'silent': True,
         })
Beispiel #8
0
 def update_defaults(cls, defaults):
     global block_size, blocks, output
     LDCSim.update_defaults(defaults)
     defaults['block_size'] = block_size
     defaults['mem_alignment'] = mem_align
     defaults['max_iters'] = MAX_ITERS
     defaults['output'] = output
     defaults['cuda_cache'] = False
     defaults.update({
         'access_pattern': access_pattern,
         'node_addressing': node_addressing,
         'silent': True,
         })
Beispiel #9
0
 def add_options(cls, group, dim):
     LDCSim.add_options(group, dim)
     group.add_argument('--re', dest="re", help = 'Reynolds number', type=int, default=400)