mirror of
https://codeberg.org/vcbferreira/NuFI_deal.ii
synced 2026-08-12 14:33:18 +02:00
bug identified to be in refinement function, maybe in interpolation step...
This commit is contained in:
@@ -56,8 +56,12 @@
|
||||
#include "nufi/cells.h"
|
||||
#include "nufi/grids.h"
|
||||
#include "nufi/parameters.h"
|
||||
#include "nufi/save_results.h"
|
||||
#include "omp.h"
|
||||
|
||||
void save_space_vector(const std::vector<double> &vals,
|
||||
const std::string &filename, size_t it);
|
||||
|
||||
using namespace dealii;
|
||||
|
||||
// =-=-=-=-= Poisson Solver =-=-=-=-=
|
||||
@@ -432,6 +436,13 @@ template <int dim> void PoissonProblem<dim>::coarse_and_refine_grid(size_t it) {
|
||||
std::string grid_file_name =
|
||||
Parameters::PLOT_DIR + "grid_" + std::to_string(it);
|
||||
|
||||
// std::vector<double> Ex =
|
||||
// sample_electric_potential(Parameters::X_DOMAIN_LEFT,
|
||||
// Parameters::X_DOMAIN_RIGHT,
|
||||
// Parameters::PLOT_NX);
|
||||
//
|
||||
// save_space_vector(Ex, "Ex_after_coarsed", it);
|
||||
|
||||
save_grid_to_file(grid_file_name);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user