<commit_before>#include "sn_sweeper_dd.hpp"

namespace mocc { namespace sn {
    void SnSweeper_DD::sweep( int group ) {
        // Store the transport cross section somewhere useful
        for( auto &xsr: *xs_mesh_ ) {
            real_t xstr = xsr.xsmactr()[group];
            for( auto &ireg: xsr.reg() ) {
                xstr_[ireg] = xstr;
            }
        }

        flux_1g_ = flux_[ std::slice(n_reg_*group, n_reg_, 1) ];

        // Perform inner iterations
        for( size_t inner=0; inner<n_inner_; inner++ ) {
            // Set the source (add upscatter and divide by 4PI)
            source_->self_scatter( group, flux_1g_, q_ );
            if( inner == n_inner_-1 && coarse_data_ ) {
                // Wipe out the existing currents
                coarse_data_->current.col( group ) = 0.0;
                this->sweep_1g<sn::Current, CellWorker_DD>( group,
                        cell_worker_ );
std::cout << coarse_data_->current.col( group ) << std::endl << std::endl;
            } else {
                this->sweep_1g<sn::NoCurrent, CellWorker_DD>( group,
                        cell_worker_ );
            }
        }
        flux_[ std::slice(n_reg_*group, n_reg_, 1) ] = flux_1g_;

        return;
    }
} }
<commit_msg>Remove print statement for DD currents<commit_after>#include "sn_sweeper_dd.hpp"

namespace mocc { namespace sn {
    void SnSweeper_DD::sweep( int group ) {
        // Store the transport cross section somewhere useful
        for( auto &xsr: *xs_mesh_ ) {
            real_t xstr = xsr.xsmactr()[group];
            for( auto &ireg: xsr.reg() ) {
                xstr_[ireg] = xstr;
            }
        }

        flux_1g_ = flux_[ std::slice(n_reg_*group, n_reg_, 1) ];

        // Perform inner iterations
        for( size_t inner=0; inner<n_inner_; inner++ ) {
            // Set the source (add upscatter and divide by 4PI)
            source_->self_scatter( group, flux_1g_, q_ );
            if( inner == n_inner_-1 && coarse_data_ ) {
                // Wipe out the existing currents
                coarse_data_->current.col( group ) = 0.0;
                this->sweep_1g<sn::Current, CellWorker_DD>( group,
                        cell_worker_ );
            } else {
                this->sweep_1g<sn::NoCurrent, CellWorker_DD>( group,
                        cell_worker_ );
            }
        }
        flux_[ std::slice(n_reg_*group, n_reg_, 1) ] = flux_1g_;

        return;
    }
} }

{'fraction_non_alphanumeric': 0.11678832116788321, 'fraction_numerical': 0.009732360097323601, 'mean_word_length': 1.70801317233809, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 16, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7025056', 'n_tokens_mistral': 807, 'n_tokens_neox': 761, 'n_words': 176}