Skip to content

Commit

Permalink
EHN: Heterogeneous Spatial Dom. Decomp. Algorithm (HeSpaDDA) part 1 r…
Browse files Browse the repository at this point in the history
…ev 5 with Nikita's onSite comments
  • Loading branch information
govarguz committed Jan 18, 2018
1 parent 5d44af8 commit a56029e
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion examples/lattice_boltzmann/extForces/gravity_like.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
system, integrator = espressopp.standard_system.Default(box=box)

# calculate CPU nodeGrid based on the number of CPUs
nodeGrid = espressopp.tools.decomp.nodeGridSimple(espressopp.MPI.COMM_WORLD.size)
nodeGrid = espressopp.tools.decomp.nodeGrid(espressopp.MPI.COMM_WORLD.size)

# LATTICE BOLTZMANN (LB) INITIALIZATION
# define an lb object and connect to the integrator
Expand Down
2 changes: 1 addition & 1 deletion examples/lattice_boltzmann/extForces/sin_like_with_temp.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
system, integrator = espressopp.standard_system.Default(box=box)

# calculate CPU nodeGrid based on the number of CPUs
nodeGrid = espressopp.tools.decomp.nodeGridSimple(espressopp.MPI.COMM_WORLD.size)
nodeGrid = espressopp.tools.decomp.nodeGrid(espressopp.MPI.COMM_WORLD.size)

# LATTICE BOLTZMANN (LB) INITIALIZATION
# define an lb object and connect to the integrator
Expand Down
2 changes: 1 addition & 1 deletion examples/lattice_boltzmann/lb_md_coupling.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
integrator.dt = 0.005

# define a LB grid
nodeGrid=espressopp.tools.decomp.nodeGridSimple(espressopp.MPI.COMM_WORLD.size)
nodeGrid=espressopp.tools.decomp.nodeGrid(espressopp.MPI.COMM_WORLD.size)
lb = espressopp.integrator.LatticeBoltzmann(system, nodeGrid)
integrator.addExtension(lb)

Expand Down
6 changes: 3 additions & 3 deletions src/tools/decomp.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.

"""
*****************************************************
**decomp.py** - Domain Decomposition python functions
*****************************************************
***********************************************
decomp - Domain Decomposition python functions
***********************************************
* `nodeGrid(n,box_size,rc,skin,eh_size=0,ratioMS=0,idealGas=0,slabMSDims=[0,0,0])`:
Expand Down
6 changes: 3 additions & 3 deletions src/tools/loadbal.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.

"""
*******************************************
**loadbal.py** - Auxiliary python functions
*******************************************
**************************************************
loadbal - HeSpaDDA load balancing python functions
**************************************************
* `qbicity(box_size,rc,skin)`:
Expand Down
2 changes: 1 addition & 1 deletion testsuite/lattice_boltzmann/test_LBMDcoupling.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def setUp(self):

system.bc = espressopp.bc.OrthorhombicBC(system.rng, box)
system.skin = skin
nodeGrid = espressopp.tools.decomp.nodeGrid(espressopp.MPI.COMM_WORLD.size,box,rc,skin)
nodeGrid = espressopp.tools.decomp.nodeGrid(espressopp.MPI.COMM_WORLD.size)
cellGrid = espressopp.tools.decomp.cellGrid(box, nodeGrid, rc, skin)
system.storage = espressopp.storage.DomainDecomposition(system, nodeGrid, cellGrid)

Expand Down
2 changes: 1 addition & 1 deletion testsuite/lattice_boltzmann/test_LatticeBoltzmann.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def setUp(self):
# set up system
global Ni, temperature
system, integrator = espressopp.standard_system.LennardJones(0, box=(Ni, Ni, Ni), temperature=temperature)
nodeGrid = espressopp.tools.decomp.nodeGridSimple(espressopp.MPI.COMM_WORLD.size)
nodeGrid = espressopp.tools.decomp.nodeGrid(espressopp.MPI.COMM_WORLD.size)

# set up LB fluid
lb = espressopp.integrator.LatticeBoltzmann(system, nodeGrid)
Expand Down
2 changes: 1 addition & 1 deletion testsuite/lattice_boltzmann/test_extForce.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def setUp(self):
# set up system
global Ni, temperature
system, integrator = espressopp.standard_system.LennardJones(0, box=(Ni, Ni, Ni), temperature=temperature)
nodeGrid = espressopp.tools.decomp.nodeGridSimple(espressopp.MPI.COMM_WORLD.size)
nodeGrid = espressopp.tools.decomp.nodeGrid(espressopp.MPI.COMM_WORLD.size)

# set up LB fluid
lb = espressopp.integrator.LatticeBoltzmann(system, nodeGrid)
Expand Down

0 comments on commit a56029e

Please sign in to comment.