MIDAPACK - MIcrowave Data Analysis PACKage
1.1b
Parallel software tools for high performance CMB DA analysis
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Groups
Pages
toeplitz_params.c
Go to the documentation of this file.
1
57
#include "
toeplitz.h
"
58
59
60
//r1.1 - Frederic Dauvergne (APC)
61
//This is some routines to set the flag strategy parameters
62
63
//todo:
64
//- add some routines to estimate the best choice strategy when automatic
65
//parameters are choosen.
66
67
//=========================================================================
68
70
73
int
flag_stgy_init_auto
(
Flag
*flag_stgy)
74
{
75
static
const
Flag
z = {0};
76
*flag_stgy = z;
77
78
flag_stgy->
flag_fftw
=FLAG_FFTW;
79
// flag_stgy->flag_verbose=FLAG_VERBOSE;
80
81
return
0;
82
}
83
84
85
//=========================================================================
86
88
91
int
flag_stgy_init_zeros
(
Flag
*flag_stgy)
92
{
93
static
const
Flag
z = {0};
94
*flag_stgy = z;
95
96
return
0;
97
}
98
99
100
//=========================================================================
101
103
106
int
flag_stgy_init_defined
(
Flag
*flag_stgy)
107
{
108
109
flag_stgy->
flag_bs
=FLAG_BS;
//0:auto 1:fixed 2:zero 3:3lambda 4:4lambda 5:formula2
110
flag_stgy->
flag_nfft
=FLAG_NFFT;
//0:auto 1:fixed 2:numthreads 3:fftwthreads
111
flag_stgy->
flag_fftw
=FLAG_FFTW;
112
flag_stgy->
flag_no_rshp
=FLAG_NO_RSHP;
//0:auto 1:yes 1:no
113
flag_stgy->
flag_nofft
=FLAG_NOFFT;
//0:auto 1:yes 1:no
114
flag_stgy->
flag_blockingcomm
=FLAG_BLOCKINGCOMM;
//0:auto 1:noblocking 2:blocking 3:blocking_nooptim
115
flag_stgy->
fixed_nfft
=FIXED_NFFT;
//fixed init value for nfft
116
flag_stgy->
fixed_bs
=FIXED_BS;
//fixed init value for blockside
117
flag_stgy->
flag_verbose
=FLAG_VERBOSE;
118
flag_stgy->
flag_skip_build_gappy_blocks
=FLAG_SKIP_BUILD_GAPPY_BLOCKS;
119
flag_stgy->
flag_param_distmin_fixed
=FLAG_PARAM_DISTMIN_FIXED;
120
flag_stgy->
flag_precompute_lvl
=FLAG_PRECOMPUTE_LVL;
121
return
0;
122
}
123
124
125
//=========================================================================
126
128
131
int
print_flag_stgy_init
(
Flag
flag_stgy)
132
{
133
134
FILE *file;
135
file = stdout;
136
137
fprintf(file,
"flag_bs=%d\n"
, flag_stgy.
flag_bs
);
138
fprintf(file,
"flag_nfft=%d\n"
, flag_stgy.
flag_nfft
);
139
fprintf(file,
"flag_fftw=%d\n"
, flag_stgy.
flag_fftw
);
140
fprintf(file,
"flag_no_rshp=%d\n"
, flag_stgy.
flag_no_rshp
);
141
fprintf(file,
"flag_nofft=%d\n"
, flag_stgy.
flag_nofft
);
142
fprintf(file,
"flag_blockingcomm=%d\n"
, flag_stgy.
flag_blockingcomm
);
143
fprintf(file,
"fixed_nfft=%d\n"
, flag_stgy.
fixed_nfft
);
144
fprintf(file,
"fixed_bs=%d\n"
, flag_stgy.
fixed_bs
);
145
fprintf(file,
"flag_verbose=%d\n"
, flag_stgy.
flag_verbose
);
146
fprintf(file,
"flag_skip_build_gappy_blocks=%d\n"
, flag_stgy.
flag_skip_build_gappy_blocks
);
147
fprintf(file,
"flag_param_distmin_fixed=%d\n"
, flag_stgy.
flag_param_distmin_fixed
);
148
fprintf(file,
"flag_precompute_lvl=%d\n"
, flag_stgy.
flag_precompute_lvl
);
149
150
return
0;
151
}
152
153
154
src
toeplitz
toeplitz_params.c
Generated on Wed Jul 10 2013 14:51:21 for MIDAPACK - MIcrowave Data Analysis PACKage by
1.8.1.1