aboutsummaryrefslogtreecommitdiff
path: root/src/sfac.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-01-22 16:09:22 +0100
committerThomas White <taw@physics.org>2010-01-22 16:09:22 +0100
commit8d1e6a113003b5446b7c27885535978ea85494b6 (patch)
treeaf3a9fa2aa56a773d0a1326ad9dacac811377864 /src/sfac.c
parent75d30a3f2a7d8484575f5b6ba6ed07587dc19f1e (diff)
Move scattering factors to a common location
Diffstat (limited to 'src/sfac.c')
-rw-r--r--src/sfac.c4
1 files changed, 2 insertions, 2 deletions
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;