From 1062513f7ecb912a50aef9559270a8218c0bacde Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 19 Jun 2015 12:33:51 +0200 Subject: Compile asdf only if FFTW is available --- libcrystfel/src/asdf.h | 60 ++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 56 insertions(+), 4 deletions(-) (limited to 'libcrystfel/src/asdf.h') diff --git a/libcrystfel/src/asdf.h b/libcrystfel/src/asdf.h index 402636d1..2c070d79 100644 --- a/libcrystfel/src/asdf.h +++ b/libcrystfel/src/asdf.h @@ -1,4 +1,32 @@ - +/* + * asdf.h + * + * Alexandra's Superior Direction Finder, or + * Algorithm Similar to DirAx, FFT-based + * + * Copyright © 2014-2015 Deutsches Elektronen-Synchrotron DESY, + * a research centre of the Helmholtz Association. + * + * Authors: + * 2014-2015 Alexandra Tolstikova + * 2015 Thomas White + * + * This file is part of CrystFEL. + * + * CrystFEL is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * CrystFEL is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with CrystFEL. If not, see . + * + */ #ifndef ASDF_H #define ASDF_H @@ -13,16 +41,40 @@ extern "C" { #endif +#ifdef HAVE_FFTW + extern int run_asdf(struct image *image, IndexingPrivate *ipriv); extern IndexingPrivate *asdf_prepare(IndexingMethod *indm, - UnitCell *cell, struct detector *det, - float *ltl); + UnitCell *cell, struct detector *det, + float *ltl); extern void asdf_cleanup(IndexingPrivate *pp); +#else /* HAVE_FFTW */ + +int run_asdf(struct image *image, IndexingPrivate *ipriv) +{ +} + + +IndexingPrivate *asdf_prepare(IndexingMethod *indm, + UnitCell *cell, struct detector *det, + float *ltl) +{ + return NULL; +} + +void asdf_cleanup(IndexingPrivate *pp) +{ +} + + +#endif /* HAVE_FFTW */ + + #ifdef __cplusplus } #endif -#endif /* DIRAX_H */ +#endif /* ASDF_H */ -- cgit v1.2.3