Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
VTK
VTK
Commits
e929907f
Commit
e929907f
authored
Jul 06, 2016
by
Utkarsh Ayachit
⛰
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Style fixes for vtkPDBReader.
parent
42d0faa4
Pipeline
#18632
passed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
IO/Geometry/vtkPDBReader.cxx
IO/Geometry/vtkPDBReader.cxx
+5
-4
No files found.
IO/Geometry/vtkPDBReader.cxx
View file @
e929907f
...
...
@@ -70,7 +70,6 @@ void vtkPDBReader::ReadSpecificMolecule(FILE* fp)
sscanf
(
&
linebuf
[
0
],
"%6s"
,
c
);
std
::
string
command
=
c
;
StdStringToUpper
(
command
);
if
(
command
==
"ATOM"
||
command
==
"HETATM"
)
{
sscanf
(
&
linebuf
[
12
],
"%4s"
,
dum1
);
...
...
@@ -78,11 +77,13 @@ void vtkPDBReader::ReadSpecificMolecule(FILE* fp)
chain
=
linebuf
[
21
];
sscanf
(
&
linebuf
[
22
],
"%d"
,
&
resi
);
sscanf
(
&
linebuf
[
30
],
"%8f%8f%8f"
,
x
,
x
+
1
,
x
+
2
);
if
(
strlen
(
linebuf
)
>
55
)
sscanf
(
&
linebuf
[
76
],
"%2s"
,
elem
);
if
(
strnlen
(
linebuf
,
80
)
>=
78
)
{
sscanf
(
&
linebuf
[
76
],
"%2s"
,
elem
);
}
if
(
elem
[
0
]
==
'\0'
)
{
// if element symbol was not specified, just use the "Atom name".
strncpy
(
elem
,
dum1
,
2
);
}
...
...
Robert Maynard
@robertmaynard
mentioned in commit
5bb0ed14
·
Jul 07, 2016
mentioned in commit
5bb0ed14
mentioned in commit 5bb0ed140b50e429df6efe246c1699fdb9cd64cb
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment