Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PuReMD
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
SParTA
PuReMD
Commits
6c4b13bc
Commit
6c4b13bc
authored
4 years ago
by
Kurt A. O'Hearn
Browse files
Options
Downloads
Patches
Plain Diff
sPuReMD: enable multiple simulations to be run with a single invocation of the stand-alone code.
parent
abecf95a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sPuReMD/src/driver.c
+21
-4
21 additions, 4 deletions
sPuReMD/src/driver.c
with
21 additions
and
4 deletions
sPuReMD/src/driver.c
+
21
−
4
View file @
6c4b13bc
/*----------------------------------------------------------------------
SerialReax - Reax Force Field Simulator
...
...
@@ -30,16 +29,21 @@
static
void
usage
(
char
*
argv
[]
)
{
fprintf
(
stderr
,
"usage: ./%s geometry_file force_field_file control_file
\n
"
,
argv
[
0
]
);
fprintf
(
stderr
,
"usage: ./%s geo_file ffield_param_file control_file [geo_file2 ffield_param_file2 control_file2 ...]
\n
"
,
argv
[
0
]
);
fprintf
(
stderr
,
" geo_file, geo_file2, ... Geometry files containing simulation information. Format
\n
"
" specified via geo_format keyword in respective simulation control file
\n
"
);
fprintf
(
stderr
,
" ffield_param_file, ffield_param_file2, ... ReaxFF parameter files.
\n
"
);
fprintf
(
stderr
,
" control_file, control_file2, ... PuReMD control files for simulation parameters.
\n
"
);
}
int
main
(
int
argc
,
char
*
argv
[]
)
{
int
i
,
ret
;
void
*
handle
;
int
ret
;
if
(
argc
!=
4
)
if
(
argc
<
4
||
argc
%
3
!=
1
)
{
usage
(
argv
);
exit
(
INVALID_INPUT
);
...
...
@@ -53,6 +57,19 @@ int main( int argc, char* argv[] )
ret
=
simulate
(
handle
);
}
for
(
i
=
1
;
i
<
argc
/
3
;
++
i
)
{
if
(
ret
==
SPUREMD_SUCCESS
)
{
ret
=
reset
(
handle
,
argv
[
3
*
i
+
1
],
argv
[
3
*
i
+
2
],
argv
[
3
*
i
+
3
]
);
}
if
(
ret
==
SPUREMD_SUCCESS
)
{
ret
=
simulate
(
handle
);
}
}
if
(
ret
==
SPUREMD_SUCCESS
)
{
ret
=
cleanup
(
handle
);
...
...
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