aboutsummaryrefslogtreecommitdiff
path: root/src/sfac.c
diff options
context:
space:
mode:
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;