include/meltpooldg/cut/cut_norm.hpp Source File

Developer Documentation: include/meltpooldg/cut/cut_norm.hpp Source File
Developer Documentation
cut_norm.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <deal.II/base/vectorization.h>
4
5#include <deal.II/fe/fe_q.h>
6
7#include <deal.II/lac/la_parallel_vector.h>
8
9#include <deal.II/matrix_free/matrix_free.h>
10
11#include <deal.II/non_matching/mapping_info.h>
12
13#include <deal.II/numerics/vector_tools_common.h>
14
15#include <memory>
16#include <vector>
17
18namespace MeltPoolDG::CutUtil
19{
20 using NormType = dealii::VectorTools::NormType;
21
45 template <int dim, typename number>
46 number
48 const dealii::LinearAlgebra::distributed::Vector<number> &solution,
49 const dealii::MatrixFree<dim, number, dealii::VectorizedArray<number>> &matrix_free,
50 const std::vector<
51 std::shared_ptr<dealii::NonMatching::MappingInfo<dim, dim, dealii::VectorizedArray<number>>>>
52 &mapping_info_cells,
53 const bool is_two_phase,
54 const dealii::FE_Q<dim> &reference_element,
55 const unsigned int dof_idx,
56 const unsigned int quad_idx,
57 const NormType norm_type = NormType::L2_norm);
58} // namespace MeltPoolDG::CutUtil
Definition amr.hpp:15
number compute_cut_norm(const dealii::LinearAlgebra::distributed::Vector< number > &solution, const dealii::MatrixFree< dim, number, dealii::VectorizedArray< number > > &matrix_free, const std::vector< std::shared_ptr< dealii::NonMatching::MappingInfo< dim, dim, dealii::VectorizedArray< number > > > > &mapping_info_cells, const bool is_two_phase, const dealii::FE_Q< dim > &reference_element, const unsigned int dof_idx, const unsigned int quad_idx, const NormType norm_type=NormType::L2_norm)
Compute the norm of a solution vector with a non-fitted (cut) domain representation.
Definition cut_norm.cpp:20
dealii::VectorTools::NormType NormType
Definition cut_norm.hpp:20