Skip to content
Snippets Groups Projects
Commit c589865c authored by Izzard, Robert Dr (Maths & Physics)'s avatar Izzard, Robert Dr (Maths & Physics)
Browse files

add runall script

parent f4a8e4da
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env perl
use strict;
use rob_misc;
foreach my $f (`ls /tmp/c_log-*.dat`)
{
chomp $f;
my $x = slurp($f);
#print $x;
my $args = ($x=~/(--M_1.*)/)[0];
print "ARGS $args\n";
`tbse $args > tbse.out`;
<STDIN>;
}
......@@ -51,7 +51,7 @@
*
* See debug_macros.h for further options.
*/
#define DEBUG 0
#define DEBUG 1
#define FLUSH_LOG
/*
......
......@@ -57,14 +57,14 @@ STELLAR_TYPE1=1
STELLAR_TYPE2=1
# stellar masses (solar units)
M1=20
M2=1
M1=7
M2=.1
# orbit:
# If the period (days) is given, use it.
# If the period is zero, use the separation (in Rsun).
# Eccentricity should be in the range 0.0-1.0.
PER=2000
PER=20000
SEP=0
ECC=0.0
......@@ -801,10 +801,10 @@ GCE_METALLICITY=$METALLICITY
# Set all to 0 for pre-2.20 compatibility mode.
#
############################################################
AGB_CORE_ALGORITHM=1
AGB_RADIUS_ALGORITHM=1
AGB_LUMINOSITY_ALGORITHM=1
AGB_3DUP_ALGORITHM=1
AGB_CORE_ALGORITHM=0
AGB_RADIUS_ALGORITHM=0
AGB_LUMINOSITY_ALGORITHM=0
AGB_3DUP_ALGORITHM=0
# turn on or off third dredge up
THIRD_DUP=1
......
......@@ -43,7 +43,7 @@ sub runsystem
else
{
my $r = `tbse $valgrind --repeat $repeat --random_systems 1 --log_filename /tmp/c_log-$n.dat 2>\&1`;
my $r = `tbse $valgrind --repeat $repeat --random_systems 1 --log_filename /tmp/c_log-$n.dat 2>\&1 | tail -1000`;
my $status = $?;
my $args = ($r=~/(--M_1.*)/g)[$valgrind ? 1 : 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