Skip to content
Snippets Groups Projects
Commit f4a8dd67 authored by David Hendriks's avatar David Hendriks
Browse files

updated mcluster script

parent 5258e2e1
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
# TODO:
# rename the files
# Check if dir exists.
MCLUSTER_CONFIG_DIR='/vol/ph/astro_code/dhendriks/work_dir/mcluster'
MCLUSTER_EXECUTABLE='/vol/ph/astro_code/dhendriks/mcluster/mcluster'
NAME_RUN='test'
$MCLUSTER_EXECUTABLE -C0 -o $MCLUSTER_CONFIG_DIR/$NAME_RUN | tee $MCLUSTER_CONFIG_DIR/$NAME_RUN.summary
# Store settings for mcluster in here.
MCLUSTER_COMMANDS="-C0 -o"
$MCLUSTER_EXECUTABLE $MCLUSTER_COMMANDS $MCLUSTER_CONFIG_DIR/$NAME_RUN | tee $MCLUSTER_CONFIG_DIR/$NAME_RUN.summary
# Write command to file
echo "$MCLUSTER_EXECUTABLE $MCLUSTER_COMMANDS $MCLUSTER_CONFIG_DIR/$NAME_RUN | tee $MCLUSTER_CONFIG_DIR/$NAME_RUN.summary" > $MCLUSTER_CONFIG_DIR/command.txt
# Rename fïles:
if [ -f "$MCLUSTER_CONFIG_DIR/$NAME_RUN.input.fort.10" ]; then
mv -f $MCLUSTER_CONFIG_DIR/$NAME_RUN.input.fort.10 $MCLUSTER_CONFIG_DIR/fort.10
fi
if [ -f "$MCLUSTER_CONFIG_DIR/$NAME_RUN.input.fort.12" ]; then
mv -f $MCLUSTER_CONFIG_DIR/$NAME_RUN.input.fort.12 $MCLUSTER_CONFIG_DIR/fort.12
fi
\ No newline at end of file
McLuster model generated: Wed May 15 16:44:11 2019
N = 0
Mcl = 1000
profile = 0
W0 = 5
S = 0
D = 3
Q = 0.5
Rh = 0.8
gammas = 2 0 2
a = 1
Rmax = 100
tcrit = 100
tf = 3
RG = 8500 0 0
VG = 0 220 0
mfunc = 1
single_mass = 1
mlow = 0.08
mup = 100
alpha = -1.35 -2.35 -2.7 0 0 0 0 0 0 0
mlim = 0.08 0.5 4 100 0 0 0 0 0 0 0
alpha_L3 = 2.3
beta_L3 = 1.4
mu_L3 = 0.2
weidner = 0
mloss = 3
remnant = 1
epoch = 0
Z = 0.02
prantzos = 0
nbin = 0
fbin = 0
pairing = 3
msort = 5
adis = 3
OBperiods = 2
amin = 0.0001
amax = 0.01
eigen = 2
BSE = 0
extmass = 0
extrad = 0
extdecay = 0
extstart = 0
code = 3
seed = 35051
dtadj = 1
dtout = 1
dtplot = 1
gpu = 0
regupdate = 0
etaupdate = 0
esc = 2
units = 1
match = 1
symmetry = 1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment