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
d89667d7
Commit
d89667d7
authored
14 years ago
by
sjplimp
Browse files
Options
Downloads
Patches
Plain Diff
git-svn-id:
svn://svn.icms.temple.edu/lammps-ro/trunk@4575
f3b2605a-c512-4ea7-a41b-209d697bcdaa
parent
6c9cbfab
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
src/compute_group_group.cpp
+6
-2
6 additions, 2 deletions
src/compute_group_group.cpp
src/pair_hybrid.cpp
+3
-0
3 additions, 0 deletions
src/pair_hybrid.cpp
with
9 additions
and
2 deletions
src/compute_group_group.cpp
+
6
−
2
View file @
d89667d7
...
@@ -66,8 +66,12 @@ ComputeGroupGroup::~ComputeGroupGroup()
...
@@ -66,8 +66,12 @@ ComputeGroupGroup::~ComputeGroupGroup()
void
ComputeGroupGroup
::
init
()
void
ComputeGroupGroup
::
init
()
{
{
if
(
force
->
pair
==
NULL
)
if
(
force
->
pair
==
NULL
)
error
->
all
(
"Pair style does not support compute group/group"
);
error
->
all
(
"No pair style defined for compute group/group"
);
if
(
force
->
pair
->
single_enable
==
0
)
// if non-hybrid, then error if single_enable = 0
// if hybrid, let hybrid determine if sub-style sets single_enable = 0
if
(
force
->
pair_match
(
"hybrid"
,
0
)
==
NULL
&&
force
->
pair
->
single_enable
==
0
)
error
->
all
(
"Pair style does not support compute group/group"
);
error
->
all
(
"Pair style does not support compute group/group"
);
pair
=
force
->
pair
;
pair
=
force
->
pair
;
...
...
This diff is collapsed.
Click to expand it.
src/pair_hybrid.cpp
+
3
−
0
View file @
d89667d7
...
@@ -576,6 +576,7 @@ void PairHybrid::read_restart(FILE *fp)
...
@@ -576,6 +576,7 @@ void PairHybrid::read_restart(FILE *fp)
/* ----------------------------------------------------------------------
/* ----------------------------------------------------------------------
call sub-style to compute single interaction
call sub-style to compute single interaction
error if sub-style does not support single() call
since overlay could have multiple sub-styles, sum results explicitly
since overlay could have multiple sub-styles, sum results explicitly
------------------------------------------------------------------------- */
------------------------------------------------------------------------- */
...
@@ -592,6 +593,8 @@ double PairHybrid::single(int i, int j, int itype, int jtype,
...
@@ -592,6 +593,8 @@ double PairHybrid::single(int i, int j, int itype, int jtype,
for
(
int
m
=
0
;
m
<
nmap
[
itype
][
jtype
];
m
++
)
{
for
(
int
m
=
0
;
m
<
nmap
[
itype
][
jtype
];
m
++
)
{
if
(
rsq
<
styles
[
map
[
itype
][
jtype
][
m
]]
->
cutsq
[
itype
][
jtype
])
{
if
(
rsq
<
styles
[
map
[
itype
][
jtype
][
m
]]
->
cutsq
[
itype
][
jtype
])
{
if
(
styles
[
map
[
itype
][
jtype
][
m
]]
->
single_enable
==
0
)
error
->
all
(
"Pair hybrid sub-style does not support single call"
);
esum
+=
styles
[
map
[
itype
][
jtype
][
m
]]
->
esum
+=
styles
[
map
[
itype
][
jtype
][
m
]]
->
single
(
i
,
j
,
itype
,
jtype
,
rsq
,
factor_coul
,
factor_lj
,
fone
);
single
(
i
,
j
,
itype
,
jtype
,
rsq
,
factor_coul
,
factor_lj
,
fone
);
fforce
+=
fone
;
fforce
+=
fone
;
...
...
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