diff options
author | Thomas White <taw@physics.org> | 2010-06-03 16:43:22 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2010-06-03 16:43:22 +0200 |
commit | 7d0973929be8086954359f614a7da7dea6c549c7 (patch) | |
tree | b9006b54dbdd2080e9d3cbf73fefd24e5bc840f4 /src/sfac.c | |
parent | 056de872eb5ba91f282b605d4bd425ac855acf11 (diff) |
Configure PDB filename for get_hkl and pattern_sim
Diffstat (limited to 'src/sfac.c')
-rw-r--r-- | src/sfac.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -311,7 +311,7 @@ static void centre_molecule(struct molecule *mol) /* Load PDB file into a memory format suitable for efficient(ish) structure * factor calculation */ -struct molecule *load_molecule() +struct molecule *load_molecule(const char *filename) { struct molecule *mol; FILE *fh; @@ -327,7 +327,7 @@ struct molecule *load_molecule() mol->reflections = NULL; mol->cell = NULL; - fh = fopen("molecule.pdb", "r"); + fh = fopen(filename, "r"); if ( fh == NULL ) { ERROR("Couldn't open PDB file\n"); return NULL; |