<commit_before>from simul import *

if __name__ == '__main__':
    # create a new simulation
    s = Simulation(Re=5)

    # initial conditions psi(0) = 0, Omega(0) = 0
    s.psi.initial("null")
    s.omega.initial("null")
    # T_n(t=0) = sin(pi*k*dz) & T_0(t=0) = 1-k*dz
    s.T.initial(lambda n, k: T_0(n,k,s))

    # main loop over time
    while s.step():
        s.T.step()
        s.psi.step()
        s.omega.step()

    del s
        
<commit_msg>Minor modif in main.py<commit_after>from simul import *
import sys

if __name__ == '__main__':
    # create a new simulation
    print("# growth",sys.argv[1])
    s = Simulation(verbose=True, Ra=float(sys.argv[1]), maxiter=10000,
                   NFourier=10, Nz = 100)

    # initial conditions psi(0) = 0, Omega(0) = 0
    s.psi.initial("null")
    s.omega.initial("null")
    # T_n(t=0) = sin(pi*k*dz) & T_0(t=0) = 1-k*dz
    s.T.initial("T")

    # main loop over time
    while s.step():
        s.T.step()
        s.omega.step()
        s.psi.step()

    # remove if debugging !
    del s

{'fraction_non_alphanumeric': 0.16619183285849953, 'fraction_numerical': 0.02849002849002849, 'mean_word_length': 2.283489096573209, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5781471', 'n_tokens_mistral': 438, 'n_tokens_neox': 411, 'n_words': 90}