@@ -67,6 +67,7 @@ int vif_main(int argc, char* argv[]) {
67
67
// Absorption form intergalactic medium (IGM)
68
68
// Valid values: none, constant, madau95, inoue14
69
69
std::string igm = " inoue14" ;
70
+ std::string naive_igm; // [deprecated]
70
71
71
72
72
73
// Debug - testing
@@ -136,7 +137,7 @@ int vif_main(int argc, char* argv[]) {
136
137
verbose, name (tseed, " seed" ), name (tcosmo, " cosmo" ),
137
138
name (input_cat_file, " input_cat" ), selection_band, bands, rfbands, help, list_bands,
138
139
clust_r0, clust_r1, clust_lambda, clust_eta, clust_fclust_mlim, clust_fclust_lom,
139
- clust_fclust_him, clust_urnd_mlim, magdis_tdust, igm
140
+ clust_fclust_him, clust_urnd_mlim, magdis_tdust, igm, naive_igm
140
141
));
141
142
142
143
if (help) {
@@ -263,6 +264,17 @@ int vif_main(int argc, char* argv[]) {
263
264
}
264
265
}
265
266
267
+ if (!naive_igm.empty ()) {
268
+ warning (" the 'naive_igm' option is now deprecated" );
269
+ warning (" please use the 'igm=...' option instead" );
270
+
271
+ if (naive_igm == " 1" ) {
272
+ igm = " constant" ;
273
+ } else {
274
+ igm = " madau95" ;
275
+ }
276
+ }
277
+
266
278
if (igm != " none" && igm != " constant" && igm != " madau95" && igm != " inoue14" ) {
267
279
error (" unknown IGM prescription '" , igm, " '" );
268
280
error (" possible values are: 'none', 'constant', 'madau95', or 'inoue14'" );
0 commit comments