aboutsummaryrefslogtreecommitdiff
path: root/src/sfac.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-06-03 16:43:22 +0200
committerThomas White <taw@physics.org>2010-06-03 16:43:22 +0200
commit7d0973929be8086954359f614a7da7dea6c549c7 (patch)
treeb9006b54dbdd2080e9d3cbf73fefd24e5bc840f4 /src/sfac.c
parent056de872eb5ba91f282b605d4bd425ac855acf11 (diff)
Configure PDB filename for get_hkl and pattern_sim
Diffstat (limited to 'src/sfac.c')
-rw-r--r--src/sfac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sfac.c b/src/sfac.c
index 62c1e76e..aa7b3bf6 100644
--- a/src/sfac.c
+++ b/src/sfac.c
@@ -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;