diff options
author | Thomas White <taw@physics.org> | 2010-08-13 17:35:23 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:26:55 +0100 |
commit | 320875aea5bce5d1896a79083d9021ddbbfa9919 (patch) | |
tree | 6799576e9e0236bbb545c267b3c1c7335d0b1f60 /src/cell.c | |
parent | 5baa5111851f9fcb355312b0615a7543bcfeaa37 (diff) |
facetron: Add pre-refinement
Diffstat (limited to 'src/cell.c')
-rw-r--r-- | src/cell.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -179,6 +179,21 @@ UnitCell *cell_new_from_cell(UnitCell *orig) } +void cell_set_reciprocal(UnitCell *cell, + double asx, double asy, double asz, + double bsx, double bsy, double bsz, + double csx, double csy, double csz) +{ + if ( cell == NULL ) return; + + cell->axs = asx; cell->ays = asy; cell->azs = asz; + cell->bxs = bsx; cell->bys = bsy; cell->bzs = bsz; + cell->cxs = csx; cell->cys = csy; cell->czs = csz; + + cell->rep = CELL_REP_RECIP; +} + + /************************* Getter helper functions ****************************/ static int cell_crystallographic_to_cartesian(UnitCell *cell, |