From 8d1e6a113003b5446b7c27885535978ea85494b6 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 22 Jan 2010 16:09:22 +0100 Subject: Move scattering factors to a common location --- src/sfac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sfac.c') diff --git a/src/sfac.c b/src/sfac.c index 597c6db4..661a8dfa 100644 --- a/src/sfac.c +++ b/src/sfac.c @@ -46,7 +46,7 @@ static double complex get_f1f2(const char *n, double en) } } - snprintf(filename, 63, "scattering-factors/%s.nff", n); + snprintf(filename, 63, DATADIR"/crystfel/%s.nff", n); fh = fopen(filename, "r"); if ( fh == NULL ) { ERROR("Couldn't open file '%s'\n", filename); @@ -170,7 +170,7 @@ static double get_waas_kirf(const char *n, double s) if ( !found ) { - fh = fopen("scattering-factors/f0_WaasKirf.dat", "r"); + fh = fopen(DATADIR"/crystfel/f0_WaasKirf.dat", "r"); if ( fh == NULL ) { ERROR("Couldn't open f0_WaasKirf.dat\n"); return 0.0; -- cgit v1.2.3