diff options
author | Thomas White <taw@physics.org> | 2010-01-22 16:09:22 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2010-01-22 16:09:22 +0100 |
commit | 8d1e6a113003b5446b7c27885535978ea85494b6 (patch) | |
tree | af3a9fa2aa56a773d0a1326ad9dacac811377864 /src | |
parent | 75d30a3f2a7d8484575f5b6ba6ed07587dc19f1e (diff) |
Move scattering factors to a common location
Diffstat (limited to 'src')
-rw-r--r-- | src/sfac.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |