Skip to content

Commit

Permalink
dump energy.dat and rel.dat on sic runs
Browse files Browse the repository at this point in the history
  • Loading branch information
ntBre committed Jan 6, 2023
1 parent 8559162 commit 4e9ddc8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/coord_type/sic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,13 @@ impl Fitted for Sic {
(Vec<rust_anpass::fc::Fc>, rust_anpass::Bias),
Box<Result<(Spectro, Output), FreqError>>,
> {
let mut efile = std::fs::File::create("energy.dat").unwrap();
let mut rel = std::fs::File::create("rel.dat").unwrap();
let min = energies.iter().cloned().reduce(f64::min).unwrap();
for energy in energies.iter_mut() {
writeln!(efile, "{:20.12}", energy).unwrap();
*energy -= min;
writeln!(rel, "{:20.12}", energy).unwrap();
}
let anpass =
Taylor::to_anpass(taylor, taylor_disps, energies, step_size);
Expand Down

0 comments on commit 4e9ddc8

Please sign in to comment.