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
e768b9bf
Commit
e768b9bf
authored
4 years ago
by
Kurt A. O'Hearn
Browse files
Options
Downloads
Patches
Plain Diff
Tools: fix issue with merge for parse_results command (total line count error).
parent
effb806a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/run_sim.py
+4
-4
4 additions, 4 deletions
tools/run_sim.py
with
4 additions
and
4 deletions
tools/run_sim.py
+
4
−
4
View file @
e768b9bf
...
@@ -537,9 +537,9 @@ restart_freq 0 ! 0: do not output any restart f
...
@@ -537,9 +537,9 @@ restart_freq 0 ! 0: do not output any restart f
except
Exception
:
except
Exception
:
pass
pass
# subtract for header
, footer (total time),
and extra step
# subtract for header and extra step
# (e.g., 100 steps means steps 0 through 100, inclusive)
# (e.g., 100 steps means steps 0 through 100, inclusive)
if
(
line_cnt
-
3
)
==
(
int
(
param
[
'
nsteps
'
])
/
freq_step
):
if
(
line_cnt
-
2
)
==
(
int
(
param
[
'
nsteps
'
])
/
freq_step
):
fout
.
write
(
self
.
__result_body_fmt
.
format
(
path
.
basename
(
self
.
__geo_file
).
split
(
'
.
'
)[
0
],
fout
.
write
(
self
.
__result_body_fmt
.
format
(
path
.
basename
(
self
.
__geo_file
).
split
(
'
.
'
)[
0
],
str
(
reduce
(
mul
,
map
(
int
,
param
[
'
proc_by_dim
'
].
split
(
'
:
'
)),
1
)),
str
(
reduce
(
mul
,
map
(
int
,
param
[
'
proc_by_dim
'
].
split
(
'
:
'
)),
1
)),
param
[
'
nsteps
'
],
param
[
'
cm_solver_pre_comp_type
'
],
param
[
'
nsteps
'
],
param
[
'
cm_solver_pre_comp_type
'
],
...
@@ -630,9 +630,9 @@ restart_freq 0 ! 0: do not output any restart f
...
@@ -630,9 +630,9 @@ restart_freq 0 ! 0: do not output any restart f
except
Exception
:
except
Exception
:
pass
pass
# subtract for header
, footer (total time),
and extra step
# subtract for header and extra step
# (e.g., 100 steps means steps 0 through 100, inclusive)
# (e.g., 100 steps means steps 0 through 100, inclusive)
if
(
line_cnt
-
3
)
==
(
int
(
param
[
'
nsteps
'
])
/
freq_step
):
if
(
line_cnt
-
2
)
==
(
int
(
param
[
'
nsteps
'
])
/
freq_step
):
fout
.
write
(
self
.
__result_body_fmt
.
format
(
path
.
basename
(
self
.
__geo_file
).
split
(
'
.
'
)[
0
],
fout
.
write
(
self
.
__result_body_fmt
.
format
(
path
.
basename
(
self
.
__geo_file
).
split
(
'
.
'
)[
0
],
str
(
reduce
(
mul
,
map
(
int
,
param
[
'
proc_by_dim
'
].
split
(
'
:
'
)),
1
)),
str
(
reduce
(
mul
,
map
(
int
,
param
[
'
proc_by_dim
'
].
split
(
'
:
'
)),
1
)),
param
[
'
nsteps
'
],
param
[
'
cm_solver_pre_comp_type
'
],
param
[
'
nsteps
'
],
param
[
'
cm_solver_pre_comp_type
'
],
...
...
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