Commit 161c3c9b authored by Leon Pyka's avatar Leon Pyka
Browse files

procuctive run offset 1

parent 1af136ef
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -3,14 +3,14 @@ import numpy as np
import mechnet as mn
from multiprocessing import Pool
from functools import partial
sys.path.append(".")
sys.path.append("/home/lpyka/hierarchical_interface")
from lib.push_data import push_data_to 

def get_parametercollection(seed, offset):
    par = mn.ParameterCollection()
    nx = 8 # needs to == el**h
    nx = 64 # needs to == el**h
    ny = nx
    nz = 5 + offset # need to be >=  h +2 + o_set (+2 bc bound cond)    
    nz = 8 + offset # need to be >=  h +2 + o_set (+2 bc bound cond)    
    n = nx*ny*nz
    par.set_N(n)
    par.set_Nx(nx)
@@ -70,9 +70,9 @@ def run_a_simulation_fuse(seed, offset):
if __name__=="__main__":
    list_of_seeds =  []
    offset = 1
    for seed in range(1000, 1010):
    for seed in range(1000, 1050):
        list_of_seeds.append(seed) 
    with Pool(10) as p:
    with Pool(50) as p:
        results = p.map(partial(run_a_simulation_fuse, offset=offset), list_of_seeds)
 #   for data in results:
 #       mn.datman.save_simulation_output(data[0], data[1], data[2], data[3], targetdirectory="./", suffix="", overwritemode=False)