Skip to content

Commit

Permalink
nassau: Don't forget to save s = 1 differentials
Browse files Browse the repository at this point in the history
  • Loading branch information
dalcde committed Mar 3, 2022
1 parent a9551f0 commit c5450aa
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions ext/src/nassau.rs
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,19 @@ impl Resolution {
self.differential(s).add_generators_from_rows(t, xs);

end();

if let Some(dir) = self.save_dir.as_ref() {
let mut f = self
.save_file(SaveKind::NassauDifferential, s, t)
.create_file(dir.clone());
f.write_u64::<LittleEndian>(num_new_gens as u64).unwrap();
f.write_u64::<LittleEndian>(target_dim as u64).unwrap();

for n in 0..num_new_gens {
self.differential(s).output(t, n).to_bytes(&mut f).unwrap();
}
}

return;
}

Expand Down

0 comments on commit c5450aa

Please sign in to comment.