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 4
  • Loading branch information
govarguz committed Jan 17, 2018
1 parent c07be47 commit 345f9ca
Show file tree
Hide file tree
Showing 62 changed files with 98 additions and 100 deletions.
2 changes: 1 addition & 1 deletion bench/lennard_jones/espressopp/espressopp_lennard_jones.py
Expand Up @@ -87,7 +87,7 @@ def openmpi_workaround():
system.bc = espressopp.bc.OrthorhombicBC(system.rng, size)
system.skin = skin
comm = MPI.COMM_WORLD
nodeGrid = decomp.nodeGrid(size,rc,skin,comm.size)
nodeGrid = decomp.nodeGrid(comm.size,size,rc,skin)
cellGrid = decomp.cellGrid(size, nodeGrid, rc, skin)
system.storage = espressopp.storage.DomainDecomposition(system, nodeGrid, cellGrid)

Expand Down
2 changes: 1 addition & 1 deletion bench/polymer_melt/espressopp/espressopp_polymer_melt.py
Expand Up @@ -57,7 +57,7 @@
system.bc = espresso.bc.OrthorhombicBC(system.rng, size)
system.skin = skin
comm = MPI.COMM_WORLD
nodeGrid = espresso.tools.decomp.nodeGrid(size,rc,skin,comm.size)
nodeGrid = espresso.tools.decomp.nodeGrid(comm.size,size,rc,skin)
cellGrid = espresso.tools.decomp.cellGrid(size,nodeGrid,rc,skin)
system.storage = espresso.storage.DomainDecomposition(system, nodeGrid, cellGrid)

Expand Down
Expand Up @@ -62,7 +62,7 @@
system.bc = espresso.bc.OrthorhombicBC(system.rng, size)
system.skin = skin
comm = MPI.COMM_WORLD
nodeGrid = decomp.nodeGrid(size,rc,skin,comm.size)
nodeGrid = decomp.nodeGrid(comm.size,size,rc,skin)
cellGrid = decomp.cellGrid(size, nodeGrid, rc, skin)
system.storage = espresso.storage.DomainDecomposition(system, nodeGrid, cellGrid)

Expand Down
2 changes: 1 addition & 1 deletion doc/ug/tutorial.LennardJones.rst
Expand Up @@ -17,7 +17,7 @@ Lets just copy and paste the beginning from the "System Setup" tutorial:
>>> system.skin = skin
>>> nodeGrid = (1,1,1)
>>> cellGrid = (1,1,1)
>>> nodeGrid = espressopp.tools.decomp.nodeGrid(box,maxcutoff,skin,espressopp.MPI.COMM_WORLD.size)
>>> nodeGrid = espressopp.tools.decomp.nodeGrid(espressopp.MPI.COMM_WORLD.size,box,maxcutoff,skin)
>>> cellGrid = espressopp.tools.decomp.cellGrid(box, nodeGrid, maxcutoff, skin)
>>> ddstorage = espressopp.storage.DomainDecomposition(system, nodeGrid, cellGrid)
>>> system.storage = ddstorage
Expand Down
2 changes: 1 addition & 1 deletion doc/ug/tutorial.PolymerMelt.rst
Expand Up @@ -25,7 +25,7 @@ First the system with the excluded volume interaction (WCA, Lennard Jones type)
>>> system.rng = espressopp.esutil.RNG()
>>> system.bc = espressopp.bc.OrthorhombicBC(system.rng, box)
>>> system.skin = skin
>>> nodeGrid = espressopp.tools.decomp.nodeGrid(box,rc,skin,espressopp.MPI.COMM_WORLD.size)
>>> nodeGrid = espressopp.tools.decomp.nodeGrid(espressopp.MPI.COMM_WORLD.size,box,rc,skin)
>>> cellGrid = espressopp.tools.decomp.cellGrid(box, nodeGrid, rc, skin)
>>> system.storage = espressopp.storage.DomainDecomposition(system, nodeGrid, cellGrid)
>>> interaction = espressopp.interaction.VerletListLennardJones(espressopp.VerletList(system, cutoff=rc))
Expand Down
2 changes: 1 addition & 1 deletion doc/ug/tutorial.SystemSetup.rst
Expand Up @@ -65,7 +65,7 @@ In the most simple case, if you want to use only one CPU, the *nodeGrid* and the
In general you don't need to take care of that yourself. Just use the corresponding |espp| routines to
calculate a reasonable *nodeGrid* and *cellGrid*:

>>> nodeGrid = espressopp.tools.decomp.nodeGrid(box,maxcutoff,skin,espressopp.MPI.COMM_WORLD.size)
>>> nodeGrid = espressopp.tools.decomp.nodeGrid(espressopp.MPI.COMM_WORLD.size,box,maxcutoff,skin)
>>> cellGrid = espressopp.tools.decomp.cellGrid(box, nodeGrid, maxcutoff, skin)

Now we have all the ingredients we need for the *domain decomposition* storage of our system:
Expand Down
2 changes: 1 addition & 1 deletion examples/adress/fadress_protein/ubiquitin.py
Expand Up @@ -240,7 +240,7 @@
# get the number of CPUs to use
NCPUs = espressopp.MPI.COMM_WORLD.size
# calculate a regular 3D grid according to the number of CPUs available
nodeGrid = espressopp.tools.decomp.nodeGrid(box,nbCutoff,skin,NCPUs)
nodeGrid = espressopp.tools.decomp.nodeGrid(NCPUs,box,nbCutoff,skin)
# calculate a 3D subgrid to speed up verlet list builds and communication
cellGrid = espressopp.tools.decomp.cellGrid(box, nodeGrid, nbCutoff, skin)
# create a domain decomposition particle storage with the calculated nodeGrid and cellGrid
Expand Down
Expand Up @@ -229,7 +229,7 @@
# get the number of CPUs to use
NCPUs = espressopp.MPI.COMM_WORLD.size
# calculate a regular 3D grid according to the number of CPUs available
nodeGrid = espressopp.tools.decomp.nodeGrid(box,nbCutoff,skin,NCPUs)
nodeGrid = espressopp.tools.decomp.nodeGrid(NCPUs,box,nbCutoff,skin)
# calculate a 3D subgrid to speed up verlet list builds and communication
cellGrid = espressopp.tools.decomp.cellGrid(box, nodeGrid, nbCutoff, skin)
# create a domain decomposition particle storage with the calculated nodeGrid and cellGrid
Expand Down
2 changes: 1 addition & 1 deletion examples/adress/fadress_tetraliquid/adress.py
Expand Up @@ -85,7 +85,7 @@ def writeTabFile(pot, name, N, low=0.0, high=2.5, body=2):
system.skin = skin

comm = MPI.COMM_WORLD
nodeGrid = decomp.nodeGrid(size,rc,skin,comm.size)
nodeGrid = decomp.nodeGrid(comm.size,size,rc,skin)
cellGrid = decomp.cellGrid(size, nodeGrid, rc, skin)

# AdResS domain decomposition
Expand Down
Expand Up @@ -79,7 +79,7 @@
system.skin = skin

comm = MPI.COMM_WORLD
nodeGrid = decomp.nodeGrid(size,rc,skin,comm.size)
nodeGrid = decomp.nodeGrid(comm.size,size,rc,skin)
cellGrid = decomp.cellGrid(size, nodeGrid, rc, skin)

# (H-)AdResS domain decomposition
Expand Down
Expand Up @@ -78,7 +78,7 @@
system.skin = skin

comm = MPI.COMM_WORLD
nodeGrid = decomp.nodeGrid(size,rc,skin,comm.size)
nodeGrid = decomp.nodeGrid(comm.size,size,rc,skin)
cellGrid = decomp.cellGrid(size, nodeGrid, rc, skin)

# (H-)AdResS domain decomposition
Expand Down
Expand Up @@ -75,7 +75,7 @@
system.skin = skin

comm = MPI.COMM_WORLD
nodeGrid = decomp.nodeGrid(size,rc,skin,comm.size)
nodeGrid = decomp.nodeGrid(comm.size,size,rc,skin)
cellGrid = decomp.cellGrid(size, nodeGrid, rc, skin)

# (H-)AdResS domain decomposition
Expand Down
Expand Up @@ -74,7 +74,7 @@
system.skin = skin

comm = MPI.COMM_WORLD
nodeGrid = decomp.nodeGrid(size,rc,skin,comm.size)
nodeGrid = decomp.nodeGrid(comm.size,size,rc,skin)
cellGrid = decomp.cellGrid(size, nodeGrid, rc, skin)

# (H-)AdResS domain decomposition
Expand Down
2 changes: 1 addition & 1 deletion examples/adress/hadress_water/water.py
Expand Up @@ -93,7 +93,7 @@

# communication, storage and cell/node grid
comm = MPI.COMM_WORLD
nodeGrid = decomp.nodeGrid(size,rc,skin,comm.size)
nodeGrid = decomp.nodeGrid(comm.size,size,rc,skin)
cellGrid = decomp.cellGrid(size, nodeGrid, rc, skin)
system.storage = espressopp.storage.DomainDecompositionAdress(system, nodeGrid, cellGrid)

Expand Down
2 changes: 1 addition & 1 deletion examples/electrostatics/electrostatics_example.py
Expand Up @@ -87,7 +87,7 @@
temperature = 1.0
coulomb_prefactor = bjerrumlength * temperature

nodeGrid = espressopp.tools.decomp.nodeGrid(box,rspacecutoff,skin,MPI.COMM_WORLD.size)
nodeGrid = espressopp.tools.decomp.nodeGrid(MPI.COMM_WORLD.size,box,rspacecutoff,skin)
cellGrid = espressopp.tools.decomp.cellGrid(box, nodeGrid, rspacecutoff, skin)

print ''
Expand Down
2 changes: 1 addition & 1 deletion examples/ewald/ewald.py
Expand Up @@ -107,7 +107,7 @@ def readingDesernoForcesFile():
temperature = 1.0
coulomb_prefactor = bjerrumlength * temperature

nodeGrid = espressopp.tools.decomp.nodeGrid(box,rspacecutoff,skin,MPI.COMM_WORLD.size)
nodeGrid = espressopp.tools.decomp.nodeGrid(MPI.COMM_WORLD.size,box,rspacecutoff,skin)
cellGrid = espressopp.tools.decomp.cellGrid(box, nodeGrid, rspacecutoff, skin)
system = espressopp.System()
system.rng = espressopp.esutil.RNG()
Expand Down
2 changes: 1 addition & 1 deletion examples/lattice_boltzmann/extForces/gravity_like.py
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.nodeGrid_OLD(espressopp.MPI.COMM_WORLD.size)
nodeGrid = espressopp.tools.decomp.nodeGridSimple(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
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.nodeGrid_OLD(espressopp.MPI.COMM_WORLD.size)
nodeGrid = espressopp.tools.decomp.nodeGridSimple(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
Expand Up @@ -34,7 +34,7 @@
integrator.dt = 0.005

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

Expand Down
2 changes: 1 addition & 1 deletion examples/lennard_jones/lennard_jones.py
Expand Up @@ -142,7 +142,7 @@
# get the number of CPUs to use
NCPUs = espressopp.MPI.COMM_WORLD.size
# calculate a regular 3D grid according to the number of CPUs available
nodeGrid = espressopp.tools.decomp.nodeGrid(box,warmup_cutoff, skin,NCPUs)
nodeGrid = espressopp.tools.decomp.nodeGrid(NCPUs,box,warmup_cutoff, skin)
# calculate a 3D subgrid to speed up verlet list builds and communication
cellGrid = espressopp.tools.decomp.cellGrid(box, nodeGrid, warmup_cutoff, skin)
# create a domain decomposition particle storage with the calculated nodeGrid and cellGrid
Expand Down
2 changes: 1 addition & 1 deletion examples/lennard_jones_93_wall/lennard_jones_93_wall.py
Expand Up @@ -92,7 +92,7 @@ def reset_velocity(system, n):
system.rng = espressopp.esutil.RNG()
system.bc = espressopp.bc.SlabBC(system.rng, box)
system.skin = skin
nodeGrid = espressopp.tools.decomp.nodeGrid(box,rc,skin,MPI.COMM_WORLD.size)
nodeGrid = espressopp.tools.decomp.nodeGrid(MPI.COMM_WORLD.size,box,rc,skin)
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 examples/lennard_jones_em/lennard_jones.py
Expand Up @@ -108,7 +108,7 @@
# get the number of CPUs to use
NCPUs = espressopp.MPI.COMM_WORLD.size
# calculate a regular 3D grid according to the number of CPUs available
nodeGrid = espressopp.tools.decomp.nodeGrid(box,r_cutoff,skin,NCPUs)
nodeGrid = espressopp.tools.decomp.nodeGrid(NCPUs,box,r_cutoff,skin)
# calculate a 3D subgrid to speed up verlet list builds and communication
cellGrid = espressopp.tools.decomp.cellGrid(box, nodeGrid, r_cutoff, skin)
# create a domain decomposition particle storage with the calculated nodeGrid and cellGrid
Expand Down
2 changes: 1 addition & 1 deletion examples/lj_cos/lj_cos.py
Expand Up @@ -43,7 +43,7 @@
system.rng = espressopp.esutil.RNG()
system.bc = espressopp.bc.OrthorhombicBC(system.rng, box)
system.skin = skin
nodeGrid = espressopp.tools.decomp.nodeGrid(box,rc,skin,espressopp.MPI.COMM_WORLD.size)
nodeGrid = espressopp.tools.decomp.nodeGrid(espressopp.MPI.COMM_WORLD.size,box,rc,skin)
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 examples/local_pressure_tensor/local_pressure_tensor.py
Expand Up @@ -55,7 +55,7 @@

comm = MPI.COMM_WORLD

nodeGrid = espressopp.tools.decomp.nodeGrid(box,rc,skin,comm.size)
nodeGrid = espressopp.tools.decomp.nodeGrid(comm.size,box,rc,skin)
# calculate a 3D subgrid to speed up verlet list builds and communication
cellGrid = espressopp.tools.decomp.cellGrid(box, nodeGrid, rc, skin)
# create a domain decomposition particle storage with the specified nodeGrid and cellGrid
Expand Down
2 changes: 1 addition & 1 deletion examples/parallel_tempering/parallel_tempering.py
Expand Up @@ -68,7 +68,7 @@
system.bc = bc
system.rng = rng
system.skin = skin
nodeGrid = espressopp.tools.decomp.nodeGrid(boxsize,rc,skin,pt.getNumberOfCPUsPerSystem())
nodeGrid = espressopp.tools.decomp.nodeGrid(pt.getNumberOfCPUsPerSystem(),boxsize,rc,skin)
cellGrid = espressopp.tools.decomp.cellGrid(boxsize,nodeGrid,rc,skin)
storage = espressopp.storage.DomainDecomposition(system, nodeGrid, cellGrid, nocheck=True)
system.storage = storage
Expand Down
2 changes: 1 addition & 1 deletion examples/pathintegral_water/water.py
Expand Up @@ -90,7 +90,7 @@ def genTabPotentials(tabfilesnb):
system.skin = skin

comm = MPI.COMM_WORLD
nodeGrid = decomp.nodeGrid(size,rc,skin,comm.size)
nodeGrid = decomp.nodeGrid(comm.size,size,rc,skin)
cellGrid = decomp.cellGrid(size, nodeGrid, rc, skin)
system.storage = espressopp.storage.DomainDecomposition(system, nodeGrid, cellGrid)

Expand Down
2 changes: 1 addition & 1 deletion examples/polystyrene_gromacs/polystyrene.py
Expand Up @@ -118,7 +118,7 @@ def genTabPotentials(tabfilesnb):
system.skin = skin

comm = MPI.COMM_WORLD
nodeGrid = decomp.nodeGrid(size,rc,skin,comm.size)
nodeGrid = decomp.nodeGrid(comm.size,size,rc,skin)
cellGrid = decomp.cellGrid(size, nodeGrid, rc, skin)
system.storage = espressopp.storage.DomainDecomposition(system, nodeGrid, cellGrid)

Expand Down
2 changes: 1 addition & 1 deletion examples/simpleGromacs/simpleGromacs.py
Expand Up @@ -89,7 +89,7 @@
system.skin = skin

comm = MPI.COMM_WORLD
nodeGrid = decomp.nodeGrid(size,rc,skin,comm.size)
nodeGrid = decomp.nodeGrid(comm.size,size,rc,skin)
cellGrid = decomp.cellGrid(size, nodeGrid, rc, skin)
system.storage = espressopp.storage.DomainDecomposition(system, nodeGrid, cellGrid)

Expand Down
2 changes: 1 addition & 1 deletion examples/stillinger_weber_Si/stillinger_weber_silicon.py
Expand Up @@ -99,7 +99,7 @@
system.skin = skin

comm = MPI.COMM_WORLD
nodeGrid = decomp.nodeGrid(box,rc,skin,comm.size)
nodeGrid = decomp.nodeGrid(comm.size,box,rc,skin)
cellGrid = decomp.cellGrid(box, nodeGrid, rc, skin)

system.storage = espressopp.storage.DomainDecomposition(system, nodeGrid, cellGrid)
Expand Down
2 changes: 1 addition & 1 deletion examples/thd_integration_solvation/methanol-TI.py
Expand Up @@ -248,7 +248,7 @@
# get the number of CPUs to use
NCPUs = espressopp.MPI.COMM_WORLD.size
# calculate a regular 3D grid according to the number of CPUs available
nodeGrid = espressopp.tools.decomp.nodeGrid(box,nbCutoff,skin,NCPUs)
nodeGrid = espressopp.tools.decomp.nodeGrid(NCPUs,box,nbCutoff,skin)
# calculate a 3D subgrid to speed up verlet list builds and communication
cellGrid = espressopp.tools.decomp.cellGrid(box, nodeGrid, nbCutoff, skin)
# create a domain decomposition particle storage with the calculated nodeGrid and cellGrid
Expand Down
5 changes: 1 addition & 4 deletions examples/water_gromacs/water.py
Expand Up @@ -76,7 +76,7 @@
system.skin = skin

comm = MPI.COMM_WORLD
nodeGrid = decomp.nodeGrid(size,rc,skin,comm.size)
nodeGrid = decomp.nodeGrid(comm.size,size,rc,skin)
cellGrid = decomp.cellGrid(size, nodeGrid, rc, skin)
system.storage = espressopp.storage.DomainDecomposition(system, nodeGrid, cellGrid)

Expand Down Expand Up @@ -170,6 +170,3 @@
sys.stdout.write('Integration steps = %d\n' % integrator.step)
sys.stdout.write('CPU time = %.1f\n' % (end_time - start_time))




8 changes: 4 additions & 4 deletions src/integrator/LatticeBoltzmann.py
Expand Up @@ -72,8 +72,8 @@
>>> # initialize empty default system with the created cubic box.
>>> system, integrator = espressopp.standard_system.Default(box)
>>>
>>> # nodeGrid is determined based on the number of CPUs used for simulation
>>> nodeGrid=espressopp.tools.decomp.nodeGrid(box,rc,skin,espressopp.MPI.COMM_WORLD.size)
>>> # nodeGrid is determined based on the number of CPUs used for simulation among others
>>> nodeGrid=espressopp.tools.decomp.nodeGrid(espressopp.MPI.COMM_WORLD.size,box,rc,skin)
>>>
>>> # initialize lb object. The dimensions of the lattice are obtained from the
>>> # system's box dimensions employing lattice spacing 1.
Expand Down Expand Up @@ -131,7 +131,7 @@
>>> # it is advised to set nodeGrid by internal ESPResSo++ function
>>> # based on the number of CPUs
>>> nodeGrid=espressopp.tools.decomp.nodeGrid(box,rc,skin,espressopp.MPI.COMM_WORLD.size)
>>> nodeGrid=espressopp.tools.decomp.nodeGrid(espressopp.MPI.COMM_WORLD.size,box,rc,skin)
.. py:data:: real a = 1.
Expand Down Expand Up @@ -203,7 +203,7 @@
>>> system, integrator = espressopp.standard_system.LennardJones(N, box, temperature=T)
>>>
>>> # nodeGrid is determined based on the number of CPUs used for simulation
>>> nodeGrid=espressopp.tools.decomp.nodeGrid(box,rc,skin,espressopp.MPI.COMM_WORLD.size)
>>> nodeGrid=espressopp.tools.decomp.nodeGrid(espressopp.MPI.COMM_WORLD.size,box,rc,skin)
>>>
>>> # initialize lb object. The dimensions of the lattice are obtained from the
>>> # system's box dimensions employing lattice spacing 1.
Expand Down
2 changes: 1 addition & 1 deletion src/standard_system/Default.py
Expand Up @@ -47,7 +47,7 @@ def Default(box, rc=1.12246, skin=0.3, dt=0.005, temperature=None):
system.rng = espressopp.esutil.RNG()
system.bc = espressopp.bc.OrthorhombicBC(system.rng, box)
system.skin = skin
nodeGrid = espressopp.tools.decomp.nodeGrid(box,rc,skin,MPI.COMM_WORLD.size)
nodeGrid = espressopp.tools.decomp.nodeGrid(MPI.COMM_WORLD.size,box,rc,skin)
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 src/standard_system/LennardJones.py
Expand Up @@ -79,7 +79,7 @@ def LennardJones(num_particles, box=(0,0,0), rc=1.12246, skin=0.3, dt=0.005, eps
system.rng = espressopp.esutil.RNG()
system.bc = espressopp.bc.OrthorhombicBC(system.rng, box)
system.skin = skin
nodeGrid = espressopp.tools.decomp.nodeGrid(box,rc,skin,MPI.COMM_WORLD.size)
nodeGrid = espressopp.tools.decomp.nodeGrid(MPI.COMM_WORLD.size,box,rc,skin)
cellGrid = espressopp.tools.decomp.cellGrid(box, nodeGrid, rc, skin)
system.storage = espressopp.storage.DomainDecomposition(system, nodeGrid, cellGrid)
interaction = espressopp.interaction.VerletListLennardJones(espressopp.VerletList(system, cutoff=rc))
Expand Down
2 changes: 1 addition & 1 deletion src/standard_system/Minimal.py
Expand Up @@ -53,7 +53,7 @@ def Minimal(num_particles, box, rc=1.12246, skin=0.3, dt=0.005, temperature=None
system.rng = espressopp.esutil.RNG()
system.bc = espressopp.bc.OrthorhombicBC(system.rng, box)
system.skin = skin
nodeGrid = espressopp.tools.decomp.nodeGrid(box,rc,skin,MPI.COMM_WORLD.size)
nodeGrid = espressopp.tools.decomp.nodeGrid(MPI.COMM_WORLD.size,box,rc,skin)
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 src/standard_system/PolymerMelt.py
Expand Up @@ -82,7 +82,7 @@ def PolymerMelt(num_chains, monomers_per_chain, box=(0,0,0), bondlen=0.97, rc=1.
system.rng = espressopp.esutil.RNG()
system.bc = espressopp.bc.OrthorhombicBC(system.rng, box)
system.skin = skin
nodeGrid = espressopp.tools.decomp.nodeGrid(box,rc,skin,MPI.COMM_WORLD.size)
nodeGrid = espressopp.tools.decomp.nodeGrid(MPI.COMM_WORLD.size,box,rc,skin)
cellGrid = espressopp.tools.decomp.cellGrid(box, nodeGrid, rc, skin)
system.storage = espressopp.storage.DomainDecomposition(system, nodeGrid, cellGrid)
interaction = espressopp.interaction.VerletListLennardJones(espressopp.VerletList(system, cutoff=rc))
Expand Down
2 changes: 1 addition & 1 deletion src/storage/DomainDecomposition.py
Expand Up @@ -83,7 +83,7 @@ def __init__(self, system,
else:
if check.System(system, 'bc'):
if nodeGrid == 'auto':
nodeGrid = decomp.nodeGrid_OLD(system.comm.rank)
nodeGrid = decomp.nodeGridSimple(system.comm.rank)
else:
nodeGrid = toInt3DFromVector(nodeGrid)
if cellGrid == 'auto':
Expand Down

0 comments on commit 345f9ca

Please sign in to comment.