From 6a6cb3b4d7f15c234a79ff8421a0ae5c1a1dcb2a Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 19 Sep 2014 16:07:24 +0200 Subject: Introduce CrystFEL unit cell files --- src/get_hkl.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/get_hkl.c') diff --git a/src/get_hkl.c b/src/get_hkl.c index 3da68ef7..72b73041 100644 --- a/src/get_hkl.c +++ b/src/get_hkl.c @@ -421,7 +421,7 @@ int main(int argc, char *argv[]) char *cutoff_str = NULL; double cutiso = 0.0; float cutn1, cutn2, cutn3; - char *pdb = NULL; + char *cellfile = NULL; char *reindex_str = NULL; SymOpList *reindex = NULL; @@ -487,7 +487,7 @@ int main(int argc, char *argv[]) break; case 'p' : - pdb = strdup(optarg); + cellfile = strdup(optarg); break; case 2 : @@ -715,18 +715,18 @@ int main(int argc, char *argv[]) RefListIterator *iter; UnitCell *cell; - if ( pdb == NULL ) { - ERROR("You must provide a PDB file when using " + if ( cellfile == NULL ) { + ERROR("You must provide a unit cell when using " "--cutoff-angstroms.\n"); return 1; } - cell = load_cell_from_pdb(pdb); + cell = load_cell_from_file(cellfile); if ( cell == NULL ) { - ERROR("Failed to load cell from '%s'\n", pdb); + ERROR("Failed to load cell from '%s'\n", cellfile); return 1; } - free(pdb); + free(cellfile); n = reflist_new(); @@ -762,18 +762,18 @@ int main(int argc, char *argv[]) double csx, csy, csz; double as, bs, cs; - if ( pdb == NULL ) { - ERROR("You must provide a PDB file when using " + if ( cellfile == NULL ) { + ERROR("You must provide a unit cell when using " "--cutoff-angstroms.\n"); return 1; } - cell = load_cell_from_pdb(pdb); + cell = load_cell_from_file(cellfile); if ( cell == NULL ) { - ERROR("Failed to load cell from '%s'\n", pdb); + ERROR("Failed to load cell from '%s'\n", cellfile); return 1; } - free(pdb); + free(cellfile); cell_get_reciprocal(cell, &asx, &asy, &asz, &bsx, &bsy, &bsz, -- cgit v1.2.3