Commit fc441baf authored by Thomas White's avatar Thomas White
Browse files

compare_hkl: Allow no -o parameter

parent 86c55dc5
......@@ -92,11 +92,6 @@ int main(int argc, char *argv[])
}
if ( outfile == NULL ) {
ERROR("You must specify the output filename with -o\n");
return 1;
}
cell = load_cell_from_pdb("molecule.pdb");
ref1 = read_reflections(afile, NULL);
if ( ref1 == NULL ) {
......@@ -127,7 +122,9 @@ int main(int argc, char *argv[])
}
}
write_reflections(outfile, NULL, out, 1, cell);
if ( outfile != NULL ) {
write_reflections(outfile, NULL, out, 1, cell);
}
return 0;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment