diff options
Diffstat (limited to 'libcrystfel/src')
-rw-r--r-- | libcrystfel/src/asdf.c | 30 | ||||
-rw-r--r-- | libcrystfel/src/asdf.h | 60 |
2 files changed, 86 insertions, 4 deletions
diff --git a/libcrystfel/src/asdf.c b/libcrystfel/src/asdf.c index 345bd32c..b5436f7f 100644 --- a/libcrystfel/src/asdf.c +++ b/libcrystfel/src/asdf.c @@ -1,3 +1,33 @@ +/* + * asdf.c + * + * 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 <alexandra.tolstikova@desy.de> + * 2015 Thomas White <taw@physics.org> + * + * 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 <http://www.gnu.org/licenses/>. + * + */ + #include <stdlib.h> #include <stdio.h> #include <math.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 <alexandra.tolstikova@desy.de> + * 2015 Thomas White <taw@physics.org> + * + * 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 <http://www.gnu.org/licenses/>. + * + */ #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 */ |