Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pdb2lmp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
James Graham
pdb2lmp
Commits
d0cf344f
Commit
d0cf344f
authored
7 years ago
by
James Graham
Browse files
Options
Downloads
Patches
Plain Diff
Give warning when no box size set - resolves
#4
parent
26f83ed0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/coordreaders.py
+1
-1
1 addition, 1 deletion
lib/coordreaders.py
pdb2lmp.py
+3
-0
3 additions, 0 deletions
pdb2lmp.py
with
4 additions
and
1 deletion
lib/coordreaders.py
+
1
−
1
View file @
d0cf344f
...
@@ -9,7 +9,7 @@ class CoordReader:
...
@@ -9,7 +9,7 @@ class CoordReader:
def
__init__
(
self
):
def
__init__
(
self
):
self
.
atoms
=
[]
self
.
atoms
=
[]
self
.
molecules
=
[]
self
.
molecules
=
[]
self
.
cell
=
[]
self
.
cell
=
[
0
,
0
,
0
]
@property
@property
def
natoms
(
self
):
def
natoms
(
self
):
...
...
This diff is collapsed.
Click to expand it.
pdb2lmp.py
+
3
−
0
View file @
d0cf344f
...
@@ -167,6 +167,9 @@ class PDB2LMP:
...
@@ -167,6 +167,9 @@ class PDB2LMP:
print
(
"
{0:8d} improper types
"
.
format
(
self
.
nimpropers
.
types
),
file
=
data
)
print
(
"
{0:8d} improper types
"
.
format
(
self
.
nimpropers
.
types
),
file
=
data
)
print
(
file
=
data
)
print
(
file
=
data
)
cell
=
[
val
/
2
for
val
in
self
.
coords
.
cell
]
cell
=
[
val
/
2
for
val
in
self
.
coords
.
cell
]
if
cell
==
[
0
,
0
,
0
]:
print
(
"
WARNING: The simulation box/unit cell size is zero.
"
)
print
(
"
If this is not intentional, please check your input files.
"
)
print
(
"
{0:8.3f} {1:8.3f} xlo xhi
"
.
format
(
-
cell
[
0
],
cell
[
0
]),
file
=
data
)
print
(
"
{0:8.3f} {1:8.3f} xlo xhi
"
.
format
(
-
cell
[
0
],
cell
[
0
]),
file
=
data
)
print
(
"
{0:8.3f} {1:8.3f} ylo yhi
"
.
format
(
-
cell
[
1
],
cell
[
1
]),
file
=
data
)
print
(
"
{0:8.3f} {1:8.3f} ylo yhi
"
.
format
(
-
cell
[
1
],
cell
[
1
]),
file
=
data
)
print
(
"
{0:8.3f} {1:8.3f} zlo zhi
"
.
format
(
-
cell
[
2
],
cell
[
2
]),
file
=
data
)
print
(
"
{0:8.3f} {1:8.3f} zlo zhi
"
.
format
(
-
cell
[
2
],
cell
[
2
]),
file
=
data
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment