Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
landinjm committed Jan 16, 2025
1 parent 782a625 commit 47919cd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions include/core/matrix_free_operator.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ class matrixFreeOperator

protected:
/**
* \brief User-implemented PDE. TODO
* \brief User-implemented PDE.
*/
void
virtual void
nonexplicit_RHS(variableContainer<dim, degree, number> &variable_list,
const Point<dim, VectorizedArray<number>> &q_point_loc) const;

Expand Down
13 changes: 6 additions & 7 deletions include/core/temp_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,10 @@

#include <core/conditional_ostreams.h>
#include <core/matrix_free_operator.h>
#include <fstream>
#include <iostream>

const unsigned int degree_finite_element = 2;
const unsigned int dimension = 3;
const unsigned int degree = 2;
const unsigned int dimension = 3;

template <int dim>
class LaplaceProblem
Expand Down Expand Up @@ -62,11 +61,11 @@ class LaplaceProblem
MappingQ1<dim> mapping;

AffineConstraints<double> constraints;
using SystemMatrixType = matrixFreeOperator<dim, degree_finite_element, double>;
using SystemMatrixType = matrixFreeOperator<dim, degree, double>;
SystemMatrixType system_matrix;

MGConstrainedDoFs mg_constrained_dofs;
using LevelMatrixType = matrixFreeOperator<dim, degree_finite_element, float>;
using LevelMatrixType = matrixFreeOperator<dim, degree, float>;
MGLevelObject<LevelMatrixType> mg_matrices;

LinearAlgebra::distributed::Vector<double> solution;
Expand All @@ -81,7 +80,7 @@ LaplaceProblem<dim>::LaplaceProblem()
MPI_COMM_WORLD,
Triangulation<dim>::limit_level_difference_at_vertices,
parallel::distributed::Triangulation<dim>::construct_multigrid_hierarchy)
, fe(degree_finite_element)
, fe(degree)
, dof_handler(triangulation)
{}

Expand Down Expand Up @@ -194,7 +193,7 @@ LaplaceProblem<dim>::assemble_rhs()
Timer time;

system_rhs = 0;
FEEvaluation<dim, degree_finite_element> phi(*system_matrix.get_matrix_free());
FEEvaluation<dim, degree> phi(*system_matrix.get_matrix_free());
for (unsigned int cell = 0; cell < system_matrix.get_matrix_free()->n_cell_batches();
++cell)
{
Expand Down

0 comments on commit 47919cd

Please sign in to comment.