Merge remote branch 'origin/master'

Conflicts:
	mpimain.cpp
This commit is contained in:
Cotton Seed 2012-08-04 16:24:09 -04:00
commit 07d8513d5e

View File

@ -110,26 +110,38 @@ slave ()
sprintf (buf, "/scratch/network/cseed/incoming/K%d_%d.dat.gz", sprintf (buf, "/scratch/network/cseed/incoming/K%d_%d.dat.gz",
desc.i, desc.j); desc.i, desc.j);
// desc = knot_desc (knot_desc::ROLFSEN, 3, 1); struct stat stat_buf;
if (stat (buf, &stat_buf) != 0)
{
if (errno == ENOENT)
{
knot_diagram kd = desc.diagram ();
knot_diagram kd = desc.diagram (); cube<Z2> c (kd);
mod_map<Z2> d = c.compute_d (1, 0, 0, 0, 0);
cube<Z2> c (kd); chain_complex_simplifier<Z2> s (c.khC, d, 1);
mod_map<Z2> d = c.compute_d (1, 0, 0, 0, 0); assert (s.new_d == 0);
chain_complex_simplifier<Z2> s (c.khC, d, 1); steenrod_square sq (c, d, s);
assert (s.new_d == 0); mod_map<Z2> sq1 = sq.sq1 ();
mod_map<Z2> sq2 = sq.sq2 ();
steenrod_square sq (c, d, s);
mod_map<Z2> sq1 = sq.sq1 (); assert (sq1.compose (sq1) == 0);
mod_map<Z2> sq2 = sq.sq2 (); assert (sq2.compose (sq2) + sq1.compose (sq2).compose (sq1) == 0);
assert (sq1.compose (sq1) == 0); gzfile_writer w (buf);
assert (sq2.compose (sq2) + sq1.compose (sq2).compose (sq1) == 0); write (w, sq1);
write (w, sq2);
file_writer w (buf); }
write (w, sq1); else
write (w, sq2); {
stderror ("stat: %s", buf);
exit (EXIT_FAILURE);
}
}
else
printf ("skip %s: exists.\n", buf);
send_int (0, 0); send_int (0, 0);
} }