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
a62b6509
Commit
a62b6509
authored
6 years ago
by
Steven J. Plimpton
Browse files
Options
Downloads
Patches
Plain Diff
more error checks for Scafacos usage
parent
b0c9fde1
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/scafacos/README
+7
-0
7 additions, 0 deletions
lib/scafacos/README
src/USER-SCAFACOS/scafacos.cpp
+5
-0
5 additions, 0 deletions
src/USER-SCAFACOS/scafacos.cpp
with
12 additions
and
0 deletions
lib/scafacos/README
0 → 100644
+
7
−
0
View file @
a62b6509
RENE - there needs to be a README like the one
for lib/voronoi/README, explaining how
to grab the correct version of Scafacos.
And how to build, either via traditional make
and the Install.py script, or via CMake
This diff is collapsed.
Click to expand it.
src/USER-SCAFACOS/scafacos.cpp
+
5
−
0
View file @
a62b6509
...
...
@@ -77,6 +77,8 @@ void Scafacos::init()
{
// error checks
if
(
!
atom
->
q_flag
)
error
->
all
(
FLERR
,
"Kspace style requires atom attribute q"
);
if
(
domain
->
dimension
==
2
)
error
->
all
(
FLERR
,
"Cannot use ScaFaCoS with 2d simulation"
);
...
...
@@ -86,6 +88,9 @@ void Scafacos::init()
if
(
atom
->
natoms
>
INT_MAX
&&
sizeof
(
fcs_int
)
!=
8
)
error
->
all
(
FLERR
,
"Scafacos atom count exceeds 2B"
);
if
(
atom
->
molecular
>
0
)
error
->
all
(
FLERR
,
"Cannot use Scafacos with molecular charged systems yet"
);
// one-time initialization of ScaFaCoS
scale
=
1.0
;
...
...
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