Updated to last SHARP
This commit is contained in:
parent
23aa450a77
commit
aec35ded1c
3984
external/sharp/configure
vendored
Executable file
3984
external/sharp/configure
vendored
Executable file
File diff suppressed because it is too large
Load Diff
@ -44,7 +44,7 @@ namespace CosmoTool
|
|||||||
template<typename T> struct HealpixJobHelper__ {};
|
template<typename T> struct HealpixJobHelper__ {};
|
||||||
|
|
||||||
template<> struct HealpixJobHelper__<double>
|
template<> struct HealpixJobHelper__<double>
|
||||||
{ enum {val=1}; };
|
{ enum {val=SHARP_DP}; };
|
||||||
|
|
||||||
template<> struct HealpixJobHelper__<float>
|
template<> struct HealpixJobHelper__<float>
|
||||||
{ enum {val=0}; };
|
{ enum {val=0}; };
|
||||||
@ -97,8 +97,8 @@ namespace CosmoTool
|
|||||||
{
|
{
|
||||||
void *aptr=reinterpret_cast<void *>(fourierMap.data()), *mptr=reinterpret_cast<void *>(realMap.data());
|
void *aptr=reinterpret_cast<void *>(fourierMap.data()), *mptr=reinterpret_cast<void *>(realMap.data());
|
||||||
|
|
||||||
sharp_execute (SHARP_MAP2ALM, 0, 0, &aptr, &mptr, ginfo, ainfo, 1,
|
sharp_execute (SHARP_MAP2ALM, 0, &aptr, &mptr, ginfo, ainfo, 1,
|
||||||
HealpixJobHelper__<T>::val,0,0,0);
|
HealpixJobHelper__<T>::val,0,0);
|
||||||
for (int i = 0; i < m_iterate; i++)
|
for (int i = 0; i < m_iterate; i++)
|
||||||
{
|
{
|
||||||
HealpixFourierMap<T> tmp_map(realMap.Nside());
|
HealpixFourierMap<T> tmp_map(realMap.Nside());
|
||||||
@ -106,11 +106,11 @@ namespace CosmoTool
|
|||||||
typename HealpixFourierMap<T>::MapType m0 = tmp_map.eigen();
|
typename HealpixFourierMap<T>::MapType m0 = tmp_map.eigen();
|
||||||
typename HealpixFourierMap<T>::MapType m1 = realMap.eigen();
|
typename HealpixFourierMap<T>::MapType m1 = realMap.eigen();
|
||||||
|
|
||||||
sharp_execute (SHARP_ALM2MAP, 0, 0, &aptr, &tmp_ptr, ginfo, ainfo, 1,
|
sharp_execute (SHARP_ALM2MAP, 0, &aptr, &tmp_ptr, ginfo, ainfo, 1,
|
||||||
HealpixJobHelper__<T>::val,0,0,0);
|
HealpixJobHelper__<T>::val,0,0);
|
||||||
m0 = m1 - m0;
|
m0 = m1 - m0;
|
||||||
sharp_execute (SHARP_MAP2ALM, 0, 1, &aptr, &tmp_ptr, ginfo, ainfo, 1,
|
sharp_execute (SHARP_MAP2ALM, 0, &aptr, &tmp_ptr, ginfo, ainfo, 1,
|
||||||
HealpixJobHelper__<T>::val,0,0,0);
|
HealpixJobHelper__<T>::val | SHARP_ADD,0,0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -118,8 +118,8 @@ namespace CosmoTool
|
|||||||
{
|
{
|
||||||
void *aptr=reinterpret_cast<void *>(fourierMap.data()), *mptr=reinterpret_cast<void *>(realMap.data());
|
void *aptr=reinterpret_cast<void *>(fourierMap.data()), *mptr=reinterpret_cast<void *>(realMap.data());
|
||||||
|
|
||||||
sharp_execute (SHARP_ALM2MAP, 0, 0, &aptr, &mptr, ginfo, ainfo, 1,
|
sharp_execute (SHARP_ALM2MAP, 0, &aptr, &mptr, ginfo, ainfo, 1,
|
||||||
HealpixJobHelper__<T>::val,0,0,0);
|
HealpixJobHelper__<T>::val,0,0);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void analysis_conjugate()
|
virtual void analysis_conjugate()
|
||||||
|
Loading…
Reference in New Issue
Block a user