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
74fbb84b
Unverified
Commit
74fbb84b
authored
6 years ago
by
Steve Plimpton
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #878 from jrgissing/group_extract
Group extract
parents
ca96a7ab
c4373c7a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/fix_group.cpp
+10
-0
10 additions, 0 deletions
src/fix_group.cpp
src/fix_group.h
+2
-5
2 additions, 5 deletions
src/fix_group.h
with
12 additions
and
5 deletions
src/fix_group.cpp
+
10
−
0
View file @
74fbb84b
...
...
@@ -251,3 +251,13 @@ void FixGroup::set_group()
if
(
varflag
)
memory
->
destroy
(
var
);
}
/* ---------------------------------------------------------------------- */
void
*
FixGroup
::
extract
(
const
char
*
str
,
int
&
unused
)
{
if
(
strcmp
(
str
,
"property"
)
==
0
&&
propflag
)
return
(
void
*
)
idprop
;
if
(
strcmp
(
str
,
"variable"
)
==
0
&&
varflag
)
return
(
void
*
)
idvar
;
if
(
strcmp
(
str
,
"region"
)
==
0
&&
regionflag
)
return
(
void
*
)
idregion
;
return
NULL
;
}
This diff is collapsed.
Click to expand it.
src/fix_group.h
+
2
−
5
View file @
74fbb84b
...
...
@@ -33,6 +33,7 @@ class FixGroup : public Fix {
void
setup
(
int
);
void
post_integrate
();
void
post_integrate_respa
(
int
,
int
);
void
*
extract
(
const
char
*
,
int
&
);
private:
int
gbit
,
gbitinverse
;
...
...
@@ -69,7 +70,7 @@ Self-explanatory.
E: Per atom property for group dynamic does not exist
UNDOCUMENTED
Self-explanatory.
E: Group dynamic parent group cannot be dynamic
...
...
@@ -79,10 +80,6 @@ E: Variable for group dynamic is invalid style
The variable must be an atom-style variable.
E: Per-atom property for group dynamic does not exist
UNDOCUMENTED
W: One or more dynamic groups may not be updated at correct point in timestep
If there are other fixes that act immediately after the initial stage
...
...
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