diff --git a/mcluster_script.sh b/mcluster_script.sh index d6bc0c84813cffa1b4cfd58ec0cdb37724e87a29..834f9bd2cc454f98b364cbf8072d646bbf0aa93a 100755 --- a/mcluster_script.sh +++ b/mcluster_script.sh @@ -1,7 +1,26 @@ #!/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 diff --git a/test.info b/test.info new file mode 100644 index 0000000000000000000000000000000000000000..1de92d60fb5c04b68510356f488efa3c6bf62899 --- /dev/null +++ b/test.info @@ -0,0 +1,60 @@ + +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