diff options
author | Thomas White <taw@physics.org> | 2011-09-12 17:31:43 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:37 +0100 |
commit | 1c2e32b7bd576bcb4b249c476373ee697ae92102 (patch) | |
tree | 85d5b587621f7714d203d578bee875e1606a3e1e /src/partial_sim.c | |
parent | 0dc9653457caa13cc1c87833e88afdd7deea6ec5 (diff) |
Check unit cell is sensible
Diffstat (limited to 'src/partial_sim.c')
-rw-r--r-- | src/partial_sim.c | 6 |
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"); |