Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lammps
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
multiscale
lammps
Commits
ae247d98
Commit
ae247d98
authored
13 years ago
by
sjplimp
Browse files
Options
Downloads
Patches
Plain Diff
git-svn-id:
svn://svn.icms.temple.edu/lammps-ro/trunk@7137
f3b2605a-c512-4ea7-a41b-209d697bcdaa
parent
f90ce18f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pair_hybrid.cpp
+12
-6
12 additions, 6 deletions
src/pair_hybrid.cpp
with
12 additions
and
6 deletions
src/pair_hybrid.cpp
+
12
−
6
View file @
ae247d98
...
@@ -195,10 +195,11 @@ void PairHybrid::settings(int narg, char **arg)
...
@@ -195,10 +195,11 @@ void PairHybrid::settings(int narg, char **arg)
allocated
=
0
;
allocated
=
0
;
// count sub-styles by skipping numeric args
// count sub-styles by skipping numeric args
// exception is 1st arg of
style "tab
le
"
, which is non-numeric word
// exception is 1st arg of
table sty
le, which is non-numeric word
// exception is 1st two args of
style "
lj/coul
"
, which are non-numeric
// exception is 1st two args of lj/coul
style
, which are non-numeric
// exception is 1st two args of
style "
buck/coul
"
, which are non-numeric
// exception is 1st two args of buck/coul, which are non-numeric
// exception is 1st arg of reax/c style, which is non-numeric
// exception is 1st arg of reax/c style, which is non-numeric
// execption is 1st 6 args of gran styles, which can have NULLs
// need a better way to skip these exceptions
// need a better way to skip these exceptions
nstyles
=
0
;
nstyles
=
0
;
...
@@ -208,6 +209,8 @@ void PairHybrid::settings(int narg, char **arg)
...
@@ -208,6 +209,8 @@ void PairHybrid::settings(int narg, char **arg)
if
(
strcmp
(
arg
[
i
],
"lj/coul"
)
==
0
)
i
+=
2
;
if
(
strcmp
(
arg
[
i
],
"lj/coul"
)
==
0
)
i
+=
2
;
if
(
strcmp
(
arg
[
i
],
"buck/coul"
)
==
0
)
i
+=
2
;
if
(
strcmp
(
arg
[
i
],
"buck/coul"
)
==
0
)
i
+=
2
;
if
(
strcmp
(
arg
[
i
],
"reax/c"
)
==
0
)
i
++
;
if
(
strcmp
(
arg
[
i
],
"reax/c"
)
==
0
)
i
++
;
if
(
strstr
(
arg
[
i
],
"gran/hooke"
))
i
+=
6
;
if
(
strstr
(
arg
[
i
],
"gran/hertz"
))
i
+=
6
;
i
++
;
i
++
;
while
(
i
<
narg
&&
!
isalpha
(
arg
[
i
][
0
]))
i
++
;
while
(
i
<
narg
&&
!
isalpha
(
arg
[
i
][
0
]))
i
++
;
nstyles
++
;
nstyles
++
;
...
@@ -220,10 +223,11 @@ void PairHybrid::settings(int narg, char **arg)
...
@@ -220,10 +223,11 @@ void PairHybrid::settings(int narg, char **arg)
// allocate each sub-style and call its settings() with subset of args
// allocate each sub-style and call its settings() with subset of args
// define subset of args for a sub-style by skipping numeric args
// define subset of args for a sub-style by skipping numeric args
// exception is 1st arg of
style "tab
le
"
, which is non-numeric
// exception is 1st arg of
table sty
le, which is non-numeric
word
// exception is 1st two args of
style "
lj/coul
"
, which are non-numeric
// exception is 1st two args of lj/coul
style
, which are non-numeric
// exception is 1st two args of
style "
buck/coul
"
, which are non-numeric
// exception is 1st two args of buck/coul, which are non-numeric
// exception is 1st arg of reax/c style, which is non-numeric
// exception is 1st arg of reax/c style, which is non-numeric
// execption is 1st 6 args of gran styles, which can have NULLs
// need a better way to skip these exceptions
// need a better way to skip these exceptions
int
dummy
;
int
dummy
;
...
@@ -246,6 +250,8 @@ void PairHybrid::settings(int narg, char **arg)
...
@@ -246,6 +250,8 @@ void PairHybrid::settings(int narg, char **arg)
if
(
strcmp
(
arg
[
i
],
"lj/coul"
)
==
0
)
i
+=
2
;
if
(
strcmp
(
arg
[
i
],
"lj/coul"
)
==
0
)
i
+=
2
;
if
(
strcmp
(
arg
[
i
],
"buck/coul"
)
==
0
)
i
+=
2
;
if
(
strcmp
(
arg
[
i
],
"buck/coul"
)
==
0
)
i
+=
2
;
if
(
strcmp
(
arg
[
i
],
"reax/c"
)
==
0
)
i
++
;
if
(
strcmp
(
arg
[
i
],
"reax/c"
)
==
0
)
i
++
;
if
(
strstr
(
arg
[
i
],
"gran/hooke"
))
i
+=
6
;
if
(
strstr
(
arg
[
i
],
"gran/hertz"
))
i
+=
6
;
i
++
;
i
++
;
while
(
i
<
narg
&&
!
isalpha
(
arg
[
i
][
0
]))
i
++
;
while
(
i
<
narg
&&
!
isalpha
(
arg
[
i
][
0
]))
i
++
;
styles
[
nstyles
]
->
settings
(
i
-
istyle
-
1
,
&
arg
[
istyle
+
1
]);
styles
[
nstyles
]
->
settings
(
i
-
istyle
-
1
,
&
arg
[
istyle
+
1
]);
...
...
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