aboutsummaryrefslogtreecommitdiff
path: root/src/sfac.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-03-25 16:50:31 +0100
committerThomas White <taw@physics.org>2010-03-25 16:50:31 +0100
commitaa60d83eeaa10040682be0cc3ceb4a33d14bb155 (patch)
tree7e89c064f07926bc891cb3dbed65bde542b74b63 /src/sfac.c
parent40f6ecbc70dcde9e007f4bd6372b4a5e153b693c (diff)
Handle "ATOM" and "HETATM" in PDBs
Diffstat (limited to 'src/sfac.c')
-rw-r--r--src/sfac.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sfac.c b/src/sfac.c
index 3668217f..28fa130b 100644
--- a/src/sfac.c
+++ b/src/sfac.c
@@ -359,7 +359,8 @@ struct molecule *load_molecule()
}
/* Only interested in atoms */
- if ( strncmp(line, "HETATM", 6) != 0 ) continue;
+ if ( (strncmp(line, "HETATM", 6) != 0)
+ && (strncmp(line, "ATOM", 4) != 0) ) continue;
chomp(line);
nbits = assplode(line, " ", &bits, ASSPLODE_NONE);