Skip to content

Commit 413e60b

Browse files
committed
comment debug output in relax
1 parent 24d55a5 commit 413e60b

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

src/impl/particles_impl_rlx_dry_distros.ipp

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ namespace libcloudphxx
118118
for (typename opts_init_t<real_t>::rlx_dry_distros_t::const_iterator ddi = opts_init.rlx_dry_distros.begin(); ddi != opts_init.rlx_dry_distros.end(); ++ddi)
119119
{
120120
const auto &kappa(ddi->first);
121-
std::cerr << "rlx kappa: " << kappa << std::endl;
121+
//std::cerr << "rlx kappa: " << kappa << std::endl;
122122
assert(kappa >= 0);
123123
const auto &n_of_lnrd_stp(*(std::get<0>(ddi->second)));
124124

@@ -193,13 +193,13 @@ namespace libcloudphxx
193193

194194
auto new_end = thrust::reduce_by_key(count_k.begin(), count_k.begin() + count_n, count_mom.begin(), hor_sum_k.begin(), hor_sum_count.begin());
195195

196-
std::cerr << "hor_sum_k:" << std::endl;
196+
//std::cerr << "hor_sum_k:" << std::endl;
197197
debug::print(hor_sum_k.begin(), hor_sum_k.end());
198-
std::cerr << "hor_sum_count:" << std::endl;
198+
//std::cerr << "hor_sum_count:" << std::endl;
199199
debug::print(hor_sum_count.begin(), hor_sum_count.end());
200200

201201
int number_of_levels_with_droplets = new_end.first - hor_sum_k.begin(); // number of levels with any SD, not with SD in this size and kappa range
202-
std::cerr << "number_of_levels_with_droplets: " << number_of_levels_with_droplets << std::endl;
202+
//std::cerr << "number_of_levels_with_droplets: " << number_of_levels_with_droplets << std::endl;
203203

204204
assert(number_of_levels_with_droplets <= opts_init.nz);
205205
thrust::copy(hor_sum_count.begin(), hor_sum_count.begin() + number_of_levels_with_droplets, thrust::make_permutation_iterator(hor_sum.begin(), hor_sum_k.begin()));
@@ -232,36 +232,36 @@ namespace libcloudphxx
232232
// set to zero outside of the defined range of altitudes
233233
thrust::replace_if(expected_hor_sum.begin(), expected_hor_sum.begin()+opts_init.nz, zero, arg::_1 < z_min_index || arg::_1 >= z_max_index, real_t(0));
234234

235-
std::cerr << "bin number: " << bin_number ;
236-
std::cerr << " rd_range: (" << std::pow(rd3_min, 1./3.) << ", " << std::pow(rd3_max, 1./3.) ;
237-
std::cerr << " r_center: " << std::exp(bin_lnrd_center) ;
238-
std::cerr << " z_indices: (" << z_min_index << ", " << z_max_index << "), " ;
239-
std::cerr << " expected STP concentration: " << expected_STP_concentration ;
240-
std::cerr << std::endl;
235+
//std::cerr << "bin number: " << bin_number ;
236+
//std::cerr << " rd_range: (" << std::pow(rd3_min, 1./3.) << ", " << std::pow(rd3_max, 1./3.) ;
237+
//std::cerr << " r_center: " << std::exp(bin_lnrd_center) ;
238+
//std::cerr << " z_indices: (" << z_min_index << ", " << z_max_index << "), " ;
239+
//std::cerr << " expected STP concentration: " << expected_STP_concentration ;
240+
//std::cerr << std::endl;
241241

242-
std::cerr << "hor_sum:" << std::endl;
242+
//std::cerr << "hor_sum:" << std::endl;
243243
debug::print(hor_sum);
244244

245-
std::cerr << "expected_hor_sum:" << std::endl;
245+
//std::cerr << "expected_hor_sum:" << std::endl;
246246
debug::print(expected_hor_sum);
247247
// calculate how many CCN are missing
248248
thrust::transform(expected_hor_sum.begin(), expected_hor_sum.end(), hor_sum.begin(), hor_missing.begin(), arg::_1 - arg::_2);
249249
thrust::replace_if(hor_missing.begin(), hor_missing.end(), arg::_1 < 0, 0);
250250

251-
std::cerr << "hor_missing:" << std::endl;
251+
//std::cerr << "hor_missing:" << std::endl;
252252
debug::print(hor_missing);
253253

254254
// set number of SDs to init; create only if concentration is lower than expected with a tolerance
255255
thrust::transform(hor_missing.begin(), hor_missing.end(), expected_hor_sum.begin(), n_SD_to_create.begin(), detail::calc_n_sd_to_create<real_t>(config.rlx_conc_tolerance, opts_init.rlx_sd_per_bin));
256256

257-
std::cerr << "n_SD_to_create:" << std::endl;
257+
//std::cerr << "n_SD_to_create:" << std::endl;
258258
debug::print(n_SD_to_create);
259259

260260
n_part_old = n_part;
261261
n_part_to_init = thrust::reduce(n_SD_to_create.begin(), n_SD_to_create.end());
262262
n_part = n_part_old + n_part_to_init;
263263

264-
std::cerr << "n_part_to_init: " << n_part_to_init << std::endl;
264+
//std::cerr << "n_part_to_init: " << n_part_to_init << std::endl;
265265

266266
// resize arrays set in the bins loop: cell indices and rd3, resize should be cheap, because we allocate a large chunk of memory at the start
267267
ijk.resize(n_part);
@@ -291,7 +291,7 @@ namespace libcloudphxx
291291
using std::min;
292292
#endif
293293

294-
std::cerr << "dt: " << dt << " rlx_timescale: " << opts_init.rlx_timescale << " hor_avg fraction added: " << min(dt / opts_init.rlx_timescale, real_t(1)) << std::endl;
294+
//std::cerr << "dt: " << dt << " rlx_timescale: " << opts_init.rlx_timescale << " hor_avg fraction added: " << min(dt / opts_init.rlx_timescale, real_t(1)) << std::endl;
295295

296296
thrust::for_each(
297297
thrust::make_zip_iterator(thrust::make_tuple(
@@ -362,7 +362,7 @@ namespace libcloudphxx
362362
// NOTE: watch out not to mess up sorting while adding SDs to the bins, because moms_X functions require sorted data...
363363
} // end of the bins loop
364364

365-
std::cerr << "expected_STP_concentration_tot: " << expected_STP_concentration_tot << std::endl;
365+
//std::cerr << "expected_STP_concentration_tot: " << expected_STP_concentration_tot << std::endl;
366366

367367
// init other SD characteristics that don't have to be initialized in the bins loop
368368
n_part_old = n_part_pre_bins_loop;

0 commit comments

Comments
 (0)