Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Does not compile with double precision #38

@rbjorge

Description

@rbjorge

Using double precision by setting FLOATING_PRECISION to something other than 1 in libs/stemtypes_fftw3.h gives the following errors when compiling:

[ 31%] Building CXX object libs/CMakeFiles/qstem_libs.dir/data_containers.cpp.o
QSTEM/libs/data_containers.cpp: In constructor ‘WAVEFUNC::WAVEFUNC(int, int, float, float)’:
QSTEM/libs/data_containers.cpp:41: error: cannot convert ‘double**’ to ‘float**’ in assignment
QSTEM/libs/data_containers.cpp:42: error: cannot convert ‘double**’ to ‘float**’ in assignment
QSTEM/libs/data_containers.cpp:55: error: ‘fftMeasureFlag’ was not declared in this scope
QSTEM/libs/data_containers.cpp: In constructor ‘Detector::Detector(int, int, float, float)’:
QSTEM/libs/data_containers.cpp:124: error: cannot convert ‘double**’ to ‘float**’ in assignment
QSTEM/libs/data_containers.cpp:125: error: cannot convert ‘double**’ to ‘float**’ in assignment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions