Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ __pycache__/
*.vtu

# vscode
c++/abpcpp/cpp-module/build/*
c++/abpcpp/cppmodule/build/*

# exception to the rule
!c++/abpcpp/cpp-module/build/.gitkeep
!c++/abpcpp/cppmodule/build/.gitkeep

#ipython
*.ipynb_checkpoints
2 changes: 0 additions & 2 deletions README.md

This file was deleted.

1 change: 1 addition & 0 deletions c++/abpcpp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@

from .cppmodule import *
from .builder import *
from .reader import *
from .dumper import *
4 changes: 2 additions & 2 deletions c++/abpcpp/builder/make_random.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def random_init(phi, Lx, Ly = None, rcut = None, outfile = 'test.json', max_atte
v = [0.0, 0.0]
f = [0.0, 0.0]
# Add a particle at position x,y with the director pointing in the random direction
particles.append({'id': i, 'r': r, 'n': n, 'v': v, 'f': f})
particles.append({'id': i, 'r': r, 'n': n, 'v': v, 'f': f, 'radius': 0.5*rcut})
else:
# Here we implement avoidance of overlaps
i = 0
Expand All @@ -74,7 +74,7 @@ def random_init(phi, Lx, Ly = None, rcut = None, outfile = 'test.json', max_atte
v = [0.0, 0.0]
f = [0.0, 0.0]
# Add a particle at position x,y with the director pointing in the random direction
particles.append({'id': i, 'r': r, 'n': n, 'v': v, 'f': f})
particles.append({'id': i, 'r': r, 'n': n, 'v': v, 'f': f, 'radius': 0.5*rcut})
i += 1
break
else:
Expand Down
Loading