Commit 60153df8 authored by Jonathan Lambrechts's avatar Jonathan Lambrechts

ekman

parent ab8fbe7b
Pipeline #2430 failed with stage
in 36 minutes and 31 seconds
import glob
import numpy as np
all=glob.glob("scratch/*/*/vorticity_log")
fo = open("resulttab.txt","w")
n = 0
for fname in all :
txt=open(fname,"r").read().splitlines()
if txt[-1] != "success" :
print(fname)
continue
v = {}
for l in txt :
w = l.split()
if len(w) < 2 :
continue
if w[0] == "geo" or w[0] == "2d" :
v[w[0]] = w[3]
else :
v[w[0]] = w[1]
fo.write(" ".join((v["Ek"],v["C"],v["D"],v["geo"],v["2d"]))+"\n")
n += 1
print(n,len(all))
#!/bin/bash
#SBATCH --job-name=ekman-0.05
#SBATCH --output=ekman.txt
#SBATCH --ntasks 64
#SBATCH --time 24:00:00
#SBATCH --mem-per-cpu=2000
WDIR=$GLOBALSCRATCH/ekman
mkdir -p $WDIR
range="0.05"
#rangew="0e-5 1e-5 2e-5 3e-5 4e-5 5e-5 6e-5 7e-5 8e-5 9e-5 10e-5"
rangew="-10e-5 -8e-5 -6e-5 -4e-5 -2e-5 0e-5 2e-5 4e-5 6e-5 8e-5 10e-5"
for E in $range; do
for C in $rangew; do
for D in $rangew; do
dir=$WDIR/${E}/${C}_${D}
srun -n1 --exclusive bash -c "echo $dir; mkdir -p $dir; cp test.py box2d.msh box2d.geo $dir; cd $dir; python3 test.py $E $C $D &> log" &
done
done
done
wait
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment