SERiF 0.0.1a
3+1D Stellar Structure and Evolution
Loading...
Searching...
No Matches
utilities.cpp File Reference
#include "utilities.h"
#include "mfem.hpp"
#include <memory>

Go to the source code of this file.

Namespaces

namespace  serif
 
namespace  serif::utilities
 

Functions

mfem::SparseMatrix serif::utilities::build_reduced_matrix (const mfem::SparseMatrix &matrix, const mfem::Array< int > &trialEssentialDofs, const mfem::Array< int > &testEssentialDofs)
 
mfem::Vector serif::utilities::build_dof_identification_vector (const mfem::Array< int > &allDofs, const::mfem::Array< int > &highlightDofs)
 Generate a vector of 1s and 0s where 1 elemetns cooresponds to queried dofs. Useful for degugging.
 
mfem::GridFunction serif::utilities::compute_curl (mfem::GridFunction &phi_gf)
 Computes the curl of a given H(div) grid function (e.g., from an RT space).