<commit_before><commit_msg>Add limter tests<commit_after>#include "limiters.h"

// const int num_eqn, const int num_waves,
//                     const real* wave_left, const real* wave_right,
//                     real (*limiter_func)(real),
//                     real* wave, real* s

#include <iostream>

int main(int argc, char const *argv[])
{
    // Setup test limiter call
    const int num_eqn = 1;
    const int num_waves = 1;

    // State variables
    real wave_right[num_eqn * num_waves];
    real wave_left[num_eqn * num_waves];
    real wave[num_eqn * num_waves];
    real s[num_waves];

    for (int i=0; i < num_eqn; i++)
    {
        for (int m=0; m < num_waves; m++)
        {
            wave_right[i + m * num_waves] = 1.0;
            wave[i + m * num_waves] = 0.5;
            wave_left[i + m * num_waves] = 0.0;
            s[m] = 1.0;
        }
    }

    for (int i=0; i < num_eqn; i++)
        for (int m=0; m < num_waves; m++)
            std::cout << wave[i + m * num_waves] << "\n";

    limiter(1, 1, wave_left, wave_right, beamwarming_limiter, wave, s);

    for (int i=0; i < num_eqn; i++)
        for (int m=0; m < num_waves; m++)
            std::cout << wave[i + m * num_waves] << "\n";

    return 0;
}
{'fraction_non_alphanumeric': 0.14746172441579372, 'fraction_numerical': 0.015310233682514102, 'mean_word_length': 1.9223529411764706, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 4, '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': '7084740', 'n_tokens_mistral': 476, 'n_tokens_neox': 443, 'n_words': 124}