Skip to content
Snippets Groups Projects
Commit 94387196 authored by Martin Bauer's avatar Martin Bauer
Browse files

Config changes in UniformGridGenerated

parent d93bbd2b
No related branches found
No related tags found
No related merge requests found
DomainSetup DomainSetup
{ {
blocks < 1, 1, 1 >; blocks < 1, 1, 1 >;
cellsPerBlock < 64, 64, 64 >; cellsPerBlock < 128, 128, 128 >;
periodic < 1, 1, 1 >; periodic < 0, 0, 0 >;
} }
Parameters Parameters
{ {
timesteps 3000; // time steps of one performance measurement timesteps 1000; // time steps of one performance measurement
warmupSteps 1; // number of steps to run before measurement starts warmupSteps 1; // number of steps to run before measurement starts
outerIterations 1; // how many measurements to conduct outerIterations 1; // how many measurements to conduct
...@@ -18,5 +18,6 @@ Parameters ...@@ -18,5 +18,6 @@ Parameters
directComm 1; directComm 1;
omega 1.8; omega 1.8;
shearVelocityMagnitude 0;
useGui 0; useGui 0;
} }
...@@ -77,7 +77,8 @@ int main( int argc, char **argv ) ...@@ -77,7 +77,8 @@ int main( int argc, char **argv )
pystencils::GenMacroSetter setterKernel(pdfFieldId, velFieldId); pystencils::GenMacroSetter setterKernel(pdfFieldId, velFieldId);
pystencils::GenMacroGetter getterKernel(pdfFieldId, velFieldId); pystencils::GenMacroGetter getterKernel(pdfFieldId, velFieldId);
initShearVelocity(blocks, velFieldId, shearVelocityMagnitude); if( shearVelocityMagnitude > 0 )
initShearVelocity(blocks, velFieldId, shearVelocityMagnitude);
for( auto & b : *blocks) for( auto & b : *blocks)
setterKernel(&b); setterKernel(&b);
......
...@@ -92,6 +92,8 @@ with CodeGeneration() as ctx: ...@@ -92,6 +92,8 @@ with CodeGeneration() as ctx:
'aa_odd_cse_global': False, 'aa_odd_cse_global': False,
'aa_odd_split': True, 'aa_odd_split': True,
'aa_odd_nt_stores': False, 'aa_odd_nt_stores': False,
'compiled_in_boundaries': True,
} }
config_name = ctx.config config_name = ctx.config
noopt = False noopt = False
...@@ -118,9 +120,7 @@ with CodeGeneration() as ctx: ...@@ -118,9 +120,7 @@ with CodeGeneration() as ctx:
'cse_global': opts['two_field_cse_global'], 'cse_global': opts['two_field_cse_global'],
'cse_pdfs': opts['two_field_cse_pdfs']}, **options) 'cse_pdfs': opts['two_field_cse_pdfs']}, **options)
include_boundaries = True if opts['compiled_in_boundaries']:
if include_boundaries:
from lbmpy.boundaries import NoSlip, UBB from lbmpy.boundaries import NoSlip, UBB
from lbmpy.boundaries.boundaries_in_kernel import update_rule_with_push_boundaries from lbmpy.boundaries.boundaries_in_kernel import update_rule_with_push_boundaries
from collections import OrderedDict from collections import OrderedDict
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment