28 const std::string& output_file_)
29 : potential(potential_)
41 << std::setw(12) <<
"iteration" <<
' ' 42 << std::setw(16) <<
"rho" <<
' ' 43 << std::setw(16) <<
"perturbation" <<
' ' 44 << std::setw(16) <<
"profile" <<
' ' 45 << std::setw(16) <<
"exact" 62 const int n_grid_points = coord_values.size();
63 for (
int i = 0; i < n_grid_points; ++i) {
66 << std::setw(16) << std::setprecision(8)
67 << std::scientific << coord_values(i) <<
' ' 68 << std::setw(16) << std::setprecision(8)
69 << std::scientific << perturbation_values(i, 0) <<
' ' 70 << std::setw(16) << std::setprecision(8)
71 << std::scientific << numerical_values(i, 0) <<
' ' 72 << std::setw(16) << std::setprecision(8)
73 << std::scientific << exact_values(i, 0) << std::endl;
contains the definition of the Field_profiles clas
const Eigen::VectorXd & get_spatial_grid() const
Get a vector of the grid point coordinates.
void operator()(const Field_profiles &profile, const Field_profiles &perturbation)
Logarithmic_potential potential
Logarithmic_observer(const Logarithmic_potential &potential_, const std::string &output_file_)
Exception indicating generic input/output error.
void write_data(const Field_profiles &, const Field_profiles &, const Field_profiles &)
std::ofstream output_stream
Field_profiles get_profile(const Eigen::VectorXd &) const
Discretized set of field profiles.
const Eigen::MatrixXd & get_field_profiles() const
Get the field profile data in matrix form.