#ifndef POLY_IO_H
#define POLY_IO_H

#include "mfem.hpp"
#include <string>

/**
 * @brief Writes the solution to a CSV file.
 * 
 * @param u The GridFunction containing the solution.
 * @param mesh The mesh associated with the solution.
 * @param filename The name of the CSV file to write to.
 */
void write_solution_to_csv(const mfem::GridFunction &u, const mfem::Mesh &mesh, const std::string &filename);

#endif // POLY_IO_H