Processed subhalo data and modified integrator to read and use new data structure
This commit is contained in:
parent
cb66caf6ba
commit
f8eae117dd
4 changed files with 281 additions and 62 deletions
|
|
@ -62,7 +62,7 @@ void Loadtxt::line_to_buf(std::vector<int> cols, std::string line, double *buffe
|
|||
if (col++ == cols[idx]) buffer[idx++] = std::stod(num_as_string);
|
||||
}
|
||||
if (col++ == cols[idx]) buffer[idx++] = std::stod(line);
|
||||
if (idx < n_cols) throw;
|
||||
if (idx < n_cols) throw std::runtime_error("Read fewer columns than expected");
|
||||
}
|
||||
|
||||
// Below is a deomonstration. The file has multiple columns but we are only
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue