From fdb8f8dcffdd9017f51fa1131ac7a520caa1fab4 Mon Sep 17 00:00:00 2001 From: Oliver Hahn Date: Tue, 27 Feb 2024 01:29:15 +0800 Subject: [PATCH] wip --- src/plugins/random_music_wnoise_generator.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/random_music_wnoise_generator.cc b/src/plugins/random_music_wnoise_generator.cc index f1d8113..40b4149 100644 --- a/src/plugins/random_music_wnoise_generator.cc +++ b/src/plugins/random_music_wnoise_generator.cc @@ -136,7 +136,6 @@ void music_wnoise_generator:: gen_topgrid_NGenIC(size_t res, long baseseed) { FFTW_API(destroy_plan)(plan); // copy to array that holds the random numbers - #pragma omp parallel for for (int i = 0; i < (int)res; ++i) for (size_t j = 0; j < res; ++j) @@ -169,6 +168,8 @@ music_wnoise_generator::music_wnoise_generator( unsigned res, unsigned cubes if( bUseNGenIC ){ cubesize_ = res; ncubes_ = 1; + rnums_.push_back(new Meshvar(res, 0, 0, 0)); + cubemap_[0] = 0; // create dummy map index } initialize(); @@ -176,6 +177,7 @@ music_wnoise_generator::music_wnoise_generator( unsigned res, unsigned cubes if( !bUseNGenIC ){ mean = fill_all(); }else{ + music::ilog.Print("Using N-GenIC generator for top grid..."); mean = 0.0; gen_topgrid_NGenIC( res_, baseseed_ ); zeromean = false;