aboutsummaryrefslogtreecommitdiff
path: root/src/partial_sim.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/partial_sim.c')
-rw-r--r--src/partial_sim.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/partial_sim.c b/src/partial_sim.c
index ea7be5e0..8fc2fb21 100644
--- a/src/partial_sim.c
+++ b/src/partial_sim.c
@@ -242,6 +242,12 @@ int main(int argc, char *argv[])
}
free(cellfile);
+ if ( !cell_is_sensible(cell) ) {
+ ERROR("Invalid unit cell parameters:\n");
+ cell_print(cell);
+ return 1;
+ }
+
/* Load geometry */
if ( geomfile == NULL ) {
ERROR("You need to give a geometry file.\n");