aboutsummaryrefslogtreecommitdiff
path: root/src/cell.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-08-13 17:35:23 +0200
committerThomas White <taw@physics.org>2012-02-22 15:26:55 +0100
commit320875aea5bce5d1896a79083d9021ddbbfa9919 (patch)
tree6799576e9e0236bbb545c267b3c1c7335d0b1f60 /src/cell.c
parent5baa5111851f9fcb355312b0615a7543bcfeaa37 (diff)
facetron: Add pre-refinement
Diffstat (limited to 'src/cell.c')
-rw-r--r--src/cell.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/cell.c b/src/cell.c
index 79261249..cc252b70 100644
--- a/src/cell.c
+++ b/src/cell.c
@@ -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,